|
id
|
int(11)
|
|
|
|
|
tenant_id
|
int(11)
|
|
|
|
|
product_id
|
int(11)
|
|
|
|
|
product_name
|
varchar(100)
|
|
|
|
|
unit_id
|
int(11)
|
|
|
|
|
unit_name
|
varchar(50)
|
|
|
|
|
movement_type
|
enum
|
-- |
|
|
|
quantity_before
|
decimal(12,3)
|
|
|
0.000
|
|
quantity_change
|
decimal(12,3)
|
|
|
0.000
|
|
quantity_after
|
decimal(12,3)
|
|
|
0.000
|
|
reference_type
|
enum
|
-- |
|
|
|
reference_id
|
int(11)
|
|
|
|
|
transaction_item_id
|
int(11)
|
|
|
|
|
warehouse_id
|
int(11)
|
|
|
1
|
|
notes
|
text
|
|
|
|
|
created_at
|
timestamp
|
|
|
current_timestamp()
|
|
updated_at
|
timestamp
|
|
|
current_timestamp()
|