add bg type
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-22 11:36:05 +03:30
parent d357dcd224
commit 7ce2ddfe5d
4 changed files with 68 additions and 0 deletions
@@ -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;