update: add slug field to the danak service entity

This commit is contained in:
mahyargdz
2025-05-04 11:31:53 +03:30
parent 721968ed2e
commit 8fe1d398a6
9 changed files with 55 additions and 24 deletions
@@ -103,4 +103,11 @@ export class CreateServiceDto {
@IsUrl({ protocols: ["http", "https"], require_protocol: true }, { message: ServiceMessage.COVER_URL_SHOULD_BE_URL })
@ApiProperty({ description: "The cover url of the service", example: "https://example.com/cover.png" })
coverUrl?: string;
@IsOptional()
@IsNotEmpty({ message: ServiceMessage.SLUG_REQUIRED })
@IsString({ message: ServiceMessage.SLUG_STRING })
@Length(3, 150, { message: ServiceMessage.SLUG_LENGTH })
@ApiProperty({ description: "The slug of the service", example: "service-slug" })
slug?: string;
}