
id : int(11)
|

table_id : int(11)
|

user_id : int(11)
|

client_id : int(11)
|

total : decimal(10,2)
|

status : enum('draft','pending','preparing','ready','paid','cancelled')
|

payment_method : varchar(30)
|

payment_detail : text
|

amount_paid : decimal(10,2)
|

change_amount : decimal(10,2)
|

order_type : enum('local','takeout','delivery')
|

delivery_fee : decimal(10,2)
|

client_name : varchar(100)
|

client_phone : varchar(20)
|

client_address : text
|

created_at : timestamp
|

updated_at : timestamp
|

tip_amount : decimal(10,2)
|

tip_percentage : int(11)
|

is_hotel : tinyint(1)
|

deduct_delivery : tinyint(1)
|

cash_session_id : int(11)
|

external_id : varchar(50)
|

client_email : varchar(100)
|

driver_name : varchar(100)
|

web_payment_method : varchar(20)
|

nequi_proof_image : varchar(255)
|

web_neighborhood : varchar(100)
|

discount_amount : decimal(10,2)
|

discount_percentage : decimal(5,2)
|

discount_scope : varchar(20)
|

client_identification : varchar(50)
|