update food entity

This commit is contained in:
2026-02-08 09:09:21 +03:30
parent 8af4936ed0
commit 6be6a66079
8 changed files with 2 additions and 270 deletions
-16
View File
@@ -4,7 +4,6 @@ import { BaseEntity } from '../../../common/entities/base.entity';
import { Restaurant } from '../../../modules/restaurants/entities/restaurant.entity';
import { Review } from 'src/modules/review/entities/review.entity';
import { Inventory } from 'src/modules/inventory/entities/inventory.entity';
import { MealType } from '../interface/food.interface';
import { Favorite } from './favorite.entity';
@Entity({ tableName: 'foods' })
@@ -45,27 +44,12 @@ export class Food extends BaseEntity {
@Property({ type: 'int', nullable: true })
order?: number;
@Property({ type: 'int', nullable: true })
prepareTime?: number; // in minutes
@Property({ type: 'jsonb', default: [] })
weekDays: number[] = [0, 1, 2, 3, 4, 5, 6];
@Property({ type: 'jsonb', default: [] })
mealTypes: MealType[] = [];
@Property({ type: 'boolean', default: true })
isActive: boolean = true;
@Property({ type: 'json', nullable: true })
images?: string[];
@Property({ type: 'boolean', default: false })
inPlaceServe: boolean = false;
@Property({ type: 'boolean', default: false })
pickupServe: boolean = false;
@Property({ type: 'float', default: null })
score?: number | null = null;