feat: update subscription and service entities with enhancements

- Update message enum for better error handling
- Enhance service creation DTO with new fields
- Modify danak-service entity structure
- Update subscription DTOs and entities
- Improve user subscription entity model
This commit is contained in:
mahyargdz
2025-08-19 09:32:25 +03:30
parent 72b1edbe25
commit 43a3714284
5 changed files with 21 additions and 6 deletions
@@ -37,10 +37,17 @@ export class CreateServiceDto {
@IsOptional()
@IsNotEmpty({ message: ServiceMessage.PAGE_TITLE_REQUIRED })
@IsString({ message: ServiceMessage.PAGE_TITLE_STRING })
@Length(3, 1500, { message: ServiceMessage.PAGE_TITLE_LENGTH })
@Length(3, 500, { message: ServiceMessage.PAGE_TITLE_LENGTH })
@ApiProperty({ description: "The page title of the service", example: "Service Page Title" })
pageTitle?: string;
@IsOptional()
@IsNotEmpty({ message: ServiceMessage.PAGE_DESCRIPTION_REQUIRED })
@IsString({ message: ServiceMessage.PAGE_DESCRIPTION_STRING })
@Length(10, 500, { message: ServiceMessage.PAGE_DESCRIPTION_LENGTH })
@ApiProperty({ description: "The page description of the service", example: "Service Page Description" })
pageDescription?: string;
@IsNotEmpty({ message: ServiceMessage.DESCRIPTION_REQUIRED })
@IsString({ message: ServiceMessage.DESCRIPTION_STRING })
@Length(10, 500, { message: ServiceMessage.DESCRIPTION_LENGTH })