Spaces:
Sleeping
Sleeping
import { | |
BaseEntity, | |
Column, | |
CreateDateColumn, | |
DeleteDateColumn, | |
Entity, | |
OneToMany, | |
PrimaryColumn, | |
Relation, | |
} from 'typeorm'; | |
import { BranchMenuEntity } from './branch-menu.entity.js'; | |
import { MenuItemType } from '../common/enums/MenuItemType.enum.js'; | |
'menu_items') | (|
export class MenuItemEntity extends BaseEntity { | |
() | |
id: string; | |
() | |
item_name: string; | |
nullable: true }) | ({|
image_url: string; | |
default: 0 }) | ({|
item_type: number; | |
() | |
description: string; | |
() | |
price: number; | |
() => BranchMenuEntity, (a) => a.menu_item) | (|
branch_menus: Relation<BranchMenuEntity>[]; | |
() | |
create_at: Date; | |
() | |
delete_at: Date; | |
} | |