Spaces:
Sleeping
Sleeping
import { | |
BaseEntity, | |
Column, | |
Entity, | |
JoinColumn, | |
ManyToOne, | |
PrimaryGeneratedColumn, | |
Relation, | |
} from 'typeorm'; | |
import { BranchMenuEntity } from './branch-menu.entity.js'; | |
import { OrderEntity } from './order.entity.js'; | |
'order_items') | (|
export class OrderItemEntity extends BaseEntity { | |
() | |
id: number; | |
() | |
order_id: number; | |
() => OrderEntity, (a) => a.order_items) | (|
name: 'order_id' }) | ({|
order: Relation<OrderEntity>; | |
() | |
branch_menu_id: string; | |
() => BranchMenuEntity) | (|
name: 'branch_menu_id' }) | ({|
branch_menu: Relation<BranchMenuEntity>; | |
() | |
quantity: number; | |
() | |
price: number; | |
} | |