Spaces:
Sleeping
Sleeping
import { | |
BaseEntity, | |
Column, | |
Entity, | |
ManyToOne, | |
OneToMany, | |
PrimaryColumn, | |
Relation, | |
} from 'typeorm'; | |
import { BranchMenuEntity } from './branch-menu.entity.js'; | |
'menu_items') | (|
export class MenuItemEntity extends BaseEntity { | |
() | |
id: string; | |
() | |
item_name: string; | |
nullable: true }) | ({|
image_url: string; | |
nullable: true }) | ({|
item_group_id: string; | |
() | |
description: string; | |
() | |
price: number; | |
() => BranchMenuEntity, (a) => a.menu_item) | (|
branch_menus: Relation<BranchMenuEntity>[]; | |
type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }) | ({|
create_at: Date; | |
} | |