| id |
char(36)
|
utf8mb4_unicode_ci
|
|
|
| order_number |
varchar(20)
|
utf8mb4_unicode_ci
|
|
|
| customer_id |
char(36)
|
utf8mb4_unicode_ci
|
|
Browse foreign values
|
| restaurant_id |
char(36)
|
utf8mb4_unicode_ci
|
|
Browse foreign values
|
| driver_id |
char(36)
|
utf8mb4_unicode_ci
|
|
Browse foreign values
|
| status |
enum('pending', 'confirmed', 'preparing', 'ready', 'picked_up', 'en_route', 'delivered', 'cancelled', 'refunded')
|
utf8mb4_unicode_ci
|
|
|
| subtotal |
decimal(10,2)
|
|
|
|
| delivery_fee |
decimal(10,2)
|
|
|
|
| tax |
decimal(10,2)
|
|
|
|
| discount |
decimal(10,2)
|
|
|
|
| total_amount |
decimal(10,2)
|
|
|
|
| payment_method |
enum('card', 'cod', 'wallet')
|
utf8mb4_unicode_ci
|
|
|
| payment_status |
enum('pending', 'paid', 'failed', 'refunded')
|
utf8mb4_unicode_ci
|
|
|
| delivery_address |
text
|
utf8mb4_unicode_ci
|
|
|
| delivery_lat |
decimal(10,8)
|
|
|
|
| delivery_lng |
decimal(11,8)
|
|
|
|
| customer_notes |
text
|
utf8mb4_unicode_ci
|
|
|
| driver_notes |
text
|
utf8mb4_unicode_ci
|
|
|
| scheduled_time |
timestamp
|
|
|
|
| confirmed_at |
timestamp
|
|
|
|
| ready_at |
timestamp
|
|
|
|
| picked_up_at |
timestamp
|
|
|
|
| delivered_at |
timestamp
|
|
|
|
| cancelled_at |
timestamp
|
|
|
|
| cancellation_reason |
text
|
utf8mb4_unicode_ci
|
|
|
| created_at |
timestamp
|
|
|
|