micro-document/internel/model/governance.go

19 lines
666 B
Go
Raw Normal View History

2025-06-11 02:11:17 +00:00
package model
import "gorm.io/gorm"
type Governance struct {
gorm.Model
2025-06-11 08:17:27 +00:00
Title string `gorm:"type:varchar(100);uniqueIndex:governance_unique;not null"`
Attachment string `gorm:"type:varchar(1024);not null;default:'';comment:附件链接"`
AttachmentName string `gorm:"type:varchar(1024);not null;default:'';comment:附件文件名"`
Sort int `gorm:"comment:排序"`
Status int `gorm:"comment:状态 1下架 2 上架"`
Operator string `gorm:"type:varchar(50);comment:操作人"`
OperatorID int `gorm:"column:operator_id;comment:操作人Id"`
2025-06-11 02:11:17 +00:00
}
func (*Governance) TableName() string {
return "governance"
}