Spaces:
Sleeping
Sleeping
import { | |
BaseEntity, | |
Column, | |
Entity, | |
ManyToOne, | |
OneToMany, | |
PrimaryGeneratedColumn, | |
Relation, | |
} from 'typeorm'; | |
import { BranchEntity } from './branch.entity.js'; | |
import { MenuItemEntity } from './menu-item.entity.js'; | |
'branch_menu') | (|
export class BranchMenuEntity extends BaseEntity { | |
'uuid') | (|
id: string; | |
() | |
branch_id: string; | |
() | |
menu_id: string; | |
() | |
description: string; | |
() | |
is_open: boolean; | |
() => BranchEntity, (a) => a.menu_items) | (|
branch: Relation<BranchEntity>; | |
() => MenuItemEntity, (a) => a.branch_menus) | (|
menu_item: Relation<MenuItemEntity>; | |
} | |