25 lines
1.4 KiB
Go
25 lines
1.4 KiB
Go
package models
|
|
|
|
// OutboundOrderLocationLog 出库单库位变更记录表
|
|
type OutboundOrderLocationLog struct {
|
|
ID int64 `json:"id" gorm:"primarykey;comment:记录ID"`
|
|
OutOrderID int64 `json:"out_order_id" gorm:"not null;default:0;index;comment:出库单ID"`
|
|
OutOrderItemID int64 `json:"out_order_item_id" gorm:"not null;default:0;index;comment:出库单明细ID"`
|
|
ProductID int64 `json:"product_id" gorm:"not null;default:0;comment:商品ID"`
|
|
OldLocationID int64 `json:"old_location_id" gorm:"not null;default:0;comment:原库位ID"`
|
|
NewLocationID int64 `json:"new_location_id" gorm:"not null;default:0;comment:新库位ID"`
|
|
BatchNo string `json:"batch_no" gorm:"size:100;not null;default:'';comment:批次号"`
|
|
Operator string `json:"operator" gorm:"size:100;not null;default:'';comment:操作员"`
|
|
OperatorID int64 `json:"operator_id" gorm:"not null;default:0;comment:操作员ID"`
|
|
Remark string `json:"remark" gorm:"size:255;not null;default:'';comment:备注"`
|
|
CreatedAt int64 `json:"created_at" gorm:"type:bigint;not null;default:0;comment:创建时间戳(秒)"`
|
|
}
|
|
|
|
func (OutboundOrderLocationLog) TableName() string {
|
|
return "outbound_order_location_log"
|
|
}
|
|
|
|
func (OutboundOrderLocationLog) TableOptions() string {
|
|
return "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='出库单库位变更记录表'"
|
|
}
|