| uuid | char(36) |
|
|
|
| tenant_uuid | char(36) |
|
|
|
| document_number | varchar(100) |
|
|
|
| product_uuid | char(36) |
|
|
|
| warehouse_uuid | char(36) |
|
|
|
| product_name_snapshot | varchar(255) |
|
|
|
| product_sku_snapshot | varchar(100) |
|
|
|
| product_unit_snapshot | varchar(50) |
|
|
pcs
|
| warehouse_name_snapshot | varchar(255) |
|
|
|
| warehouse_code_snapshot | varchar(50) |
|
|
|
| type | enum | -- |
|
|
| quantity | int(11) |
|
|
|
| unit_price | decimal(10,2) |
|
|
|
| total_amount | decimal(12,2) |
|
|
|
| supplier_name | varchar(255) |
|
|
|
| customer_name | varchar(255) |
|
|
|
| notes | text |
|
|
|
| is_processed | tinyint(1) |
|
|
0
|
| processed_at | timestamp |
|
|
|
| operation_date | timestamp |
|
|
current_timestamp()
|
| reason | varchar(255) |
|
|
|
| user_uuid | char(36) |
|
|
|
| created_at | timestamp |
|
|
current_timestamp()
|
| updated_at | timestamp |
|
|
current_timestamp()
|