This commit is contained in:
@@ -2,6 +2,11 @@ import { ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsOptional, IsString } from 'class-validator';
|
||||
|
||||
export class UpdateRestaurantBgDto {
|
||||
@ApiPropertyOptional({ example: 'image', description: 'نوع پسزمینه' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
bgType?: string;
|
||||
|
||||
@ApiPropertyOptional({ example: 'https://cdn.example.com/backgrounds/wood.jpg', description: 'آدرس تصویر پسزمینه' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
|
||||
@@ -109,6 +109,9 @@ export class Restaurant extends BaseEntity {
|
||||
@Property({ nullable: true })
|
||||
subscriptionStartDate?: Date;
|
||||
|
||||
@Property({ nullable: true })
|
||||
bgType?: string;
|
||||
|
||||
@Property({ nullable: true })
|
||||
bgUrl?: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user