| id |
int(11)
|
|
|
|
| order_number |
varchar(50)
|
utf8mb4_general_ci
|
|
|
| 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')
|
utf8mb4_general_ci
|
|
|
| discount_percent |
decimal(5,2)
|
|
|
|
| tax_amount |
decimal(15,2)
|
|
|
|
| paid_amount |
decimal(15,2)
|
|
|
|
| status |
enum('draft', 'confirmed', 'processing', 'shipped', 'delivered', 'cancelled')
|
utf8mb4_general_ci
|
|
|
| payment_type |
enum('cash', 'credit')
|
utf8mb4_general_ci
|
|
|
| payment_status |
enum('unpaid', 'partial', 'paid')
|
utf8mb4_general_ci
|
|
|
| paid_date |
datetime
|
|
|
|
| notes |
text
|
utf8mb4_general_ci
|
|
|
| created_by |
int(11)
|
|
|
|
| created_at |
timestamp
|
|
|
|
| updated_at |
timestamp
|
|
|
|