feat: add front page stock movements
This commit is contained in:
@@ -5,13 +5,13 @@ import (
|
||||
)
|
||||
|
||||
type StockMovement struct {
|
||||
ID uint `json:"id" gorm:"primaryKey"`
|
||||
ItemID uint `json:"item_id"`
|
||||
Item Item `json:"item" gorm:"foreignKey:ItemID"`
|
||||
Type string `json:"type"`
|
||||
Quantity float64 `json:"quantity"`
|
||||
Reason string `json:"reason" gorm:"not null"`
|
||||
OrderID *uint `json:"order_id"`
|
||||
Comment string `json:"comment"`
|
||||
CreatedAt time.Time
|
||||
ID uint `json:"id" gorm:"primaryKey"`
|
||||
ItemID uint `json:"item_id"`
|
||||
Item Item `json:"item" gorm:"foreignKey:ItemID"`
|
||||
Type string `json:"type"`
|
||||
Quantity float64 `json:"quantity"`
|
||||
Reason string `json:"reason" gorm:"not null"`
|
||||
OrderID *uint `json:"order_id"`
|
||||
Comment string `json:"comment"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user