Compare commits
2 Commits
c848e3f63f
...
0f1f05a655
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f1f05a655 | |||
| 6fef0de888 |
@ -6,12 +6,12 @@ type InventoryDetail struct {
|
||||
WarehouseID int64 `json:"warehouse_id" gorm:"not null;default:0;index;comment:仓库ID"` // 仓库ID
|
||||
LocationID int64 `json:"location_id" gorm:"not null;default:0;uniqueIndex:uk_location_product_batch;index;comment:库位ID"` // 库位ID
|
||||
ProductID int64 `json:"product_id" gorm:"not null;default:0;uniqueIndex:uk_location_product_batch;index;comment:商品ID"` // 商品ID
|
||||
BatchNo string `json:"batch_no" gorm:"size:100;not null;default:'';uniqueIndex:uk_location_product_batch;index;comment:批次号"` //
|
||||
ProductionDate int64 `json:"production_date" gorm:"not null;default:0;comment:生产日期时间戳(秒)"`
|
||||
ExpiryDate int64 `json:"expiry_date" gorm:"not null;default:0;index;comment:失效日期时间戳(秒)"`
|
||||
Quantity int64 `json:"quantity" gorm:"not null;default:0;comment:当前数量(最小单位)"`
|
||||
LockedQuantity int64 `json:"locked_quantity" gorm:"not null;default:0;comment:锁定数量"`
|
||||
AvailableQuantity int64 `json:"available_quantity" gorm:"->;comment:可用数量"`
|
||||
BatchNo string `json:"batch_no" gorm:"size:100;not null;default:'';uniqueIndex:uk_location_product_batch;index;comment:批次号"` // 批次号
|
||||
ProductionDate int64 `json:"production_date" gorm:"not null;default:0;comment:生产日期时间戳(秒)"` // 生产日期时间戳(秒)
|
||||
ExpiryDate int64 `json:"expiry_date" gorm:"not null;default:0;index;comment:失效日期时间戳(秒)"` // 失效日期时间戳(秒)
|
||||
Quantity int64 `json:"quantity" gorm:"not null;default:0;comment:当前数量(最小单位)"` // 当前数量(最小单位)
|
||||
LockedQuantity int64 `json:"locked_quantity" gorm:"not null;default:0;comment:锁定数量"` // 锁定数量
|
||||
AvailableQuantity int64 `json:"available_quantity" gorm:"->;comment:可用数量"` // 可用数量
|
||||
CreatedAt int64 `json:"created_at" gorm:"type:bigint;not null;default:0;comment:创建时间戳(秒)"`
|
||||
UpdatedAt int64 `json:"updated_at" gorm:"type:bigint;not null;default:0;comment:更新时间戳(秒)"`
|
||||
IsDel int8 `json:"is_del" gorm:"type:tinyint(1);not null;default:0;comment:逻辑删除标记(0:未删除,1:已删除)"`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user