
id : int(11)
|

order_number : varchar(50)
|

customer_id : int(11)
|

order_date : date
|

due_date : date
|

total_amount : decimal(15,2)
|

discount_amount : decimal(15,2)
|

discount_type : enum('nominal','percentage')
|

discount_percent : decimal(5,2)
|

tax_amount : decimal(15,2)
|

paid_amount : decimal(15,2)
|

status : enum('draft','confirmed','processing','shipped','delivered','cancelled')
|

payment_type : enum('cash','credit')
|

payment_status : enum('unpaid','partial','paid')
|

paid_date : datetime
|

notes : text
|

created_by : int(11)
|

created_at : timestamp
|

updated_at : timestamp
|