|
id
|
int(11)
|
|
|
|
|
table_id
|
int(11)
|
|
|
|
|
user_id
|
int(11)
|
|
|
|
|
client_id
|
int(11)
|
|
|
Browse foreign values
|
|
total
|
decimal(10,2)
|
|
|
0.00
|
|
status
|
enum
|
-- |
|
pending
|
|
payment_method
|
varchar(30)
|
|
|
|
|
payment_detail
|
text
|
|
|
|
|
amount_paid
|
decimal(10,2)
|
|
|
0.00
|
|
change_amount
|
decimal(10,2)
|
|
|
0.00
|
|
order_type
|
enum
|
-- |
|
local
|
|
delivery_fee
|
decimal(10,2)
|
|
|
0.00
|
|
client_name
|
varchar(100)
|
|
|
|
|
client_phone
|
varchar(20)
|
|
|
|
|
client_address
|
text
|
|
|
|
|
created_at
|
timestamp
|
|
|
current_timestamp()
|
|
updated_at
|
timestamp
|
|
|
current_timestamp()
|
|
cash_session_id
|
int(11)
|
|
|
|
|
external_id
|
varchar(50)
|
|
|
|
|
is_hotel
|
tinyint(1)
|
|
|
0
|
|
deduct_delivery
|
tinyint(1)
|
|
|
1
|
|
tip_amount
|
decimal(10,2)
|
|
|
0.00
|
|
tip_percentage
|
int(11)
|
|
|
0
|