|
id
|
int(11)
|
|
|
|
|
order_number
|
varchar(50)
|
|
|
|
|
supplier_id
|
int(11)
|
|
|
|
|
order_date
|
date
|
|
|
|
|
due_date
|
date
|
|
|
|
|
total_amount
|
decimal(15,2)
|
|
|
0.00
|
|
discount_amount
|
decimal(15,2)
|
|
|
0.00
|
|
tax_amount
|
decimal(15,2)
|
|
|
0.00
|
|
paid_amount
|
decimal(15,2)
|
|
|
0.00
|
|
status
|
enum
|
-- |
|
draft
|
|
notes
|
text
|
|
|
|
|
created_by
|
int(11)
|
|
|
|
|
created_at
|
timestamp
|
|
|
current_timestamp()
|
|
updated_at
|
timestamp
|
|
|
current_timestamp()
|