|
id
|
bigint(20) unsigned
|
|
|
|
|
order_no
|
varchar(40)
|
|
|
|
|
user_id
|
int(10) unsigned
|
|
|
|
|
shift_id
|
bigint(20) unsigned
|
|
|
|
|
waiter_user_id
|
int(10) unsigned
|
|
|
|
|
table_id
|
int(10) unsigned
|
|
|
|
|
order_type
|
enum
|
-- |
|
takeaway
|
|
payment_method
|
enum
|
-- |
|
cash
|
|
subtotal
|
decimal(14,2)
|
|
|
|
|
discount
|
decimal(14,2)
|
|
|
0.00
|
|
total
|
decimal(14,2)
|
|
|
|
|
cogs
|
decimal(14,4)
|
|
|
0.0000
|
|
gross_profit
|
decimal(14,4)
|
|
|
0.0000
|
|
status
|
enum
|
-- |
|
completed
|
|
note
|
varchar(500)
|
|
|
|
|
created_at
|
datetime
|
|
|
2026-12-06 11:30:42.000000
|
|
completed_at
|
datetime
|
|
|
|