fonchain-container/cmd/model/containerBox.go
2024-07-02 11:56:53 +08:00

26 lines
1.1 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Package model -----------------------------
// @file : containerBox.go
// @author : JJXu
// @contact : wavingbear@163.com
// @time : 2024/7/1 下午3:02
// -------------------------------------------
package model
type ContainerBox struct {
Model
ContainerUid string `gorm:"column:container_uid;comment:容器编号"`
BoxName string `gorm:"column:box_name;comment:箱子名称"`
Profundity string `gorm:"column:profundity;comment:孔深单位cm"`
//ArtworkUid string `gorm:"column:artwork_uid;comment:艺术品编号"` //这个应该关联画筒
RelPin []*BoxRelPin `gorm:"foreignKey:BoxId;references:id"`
Tags []*Tag `gorm:"many2many:box_tag_rel;"`
Enable int `gorm:"column:enable;default:1;comment:是否启用 1=启用中 2=未启用"`
OperationTime string `gorm:"column:operation_time;comment:操作时间"`
OperatorName string `gorm:"column:operator_name;comment:操作人"`
OperatorAccount string `gorm:"column:operator_account;comment:操作人账号"`
}
func (b ContainerBox) TableName() string {
return "container_box"
}