micro-document/internel/model/press_releases.go

22 lines
713 B
Go
Raw Normal View History

2025-06-11 02:11:17 +00:00
package model
2025-06-11 05:54:38 +00:00
import "gorm.io/gorm"
type PressReleases struct {
gorm.Model
2025-06-11 08:17:27 +00:00
Title string `gorm:"type:varchar(100);uniqueIndex:press_releases_unique"`
Sort uint `gorm:"not null"`
Content string `gorm:"type:longtext"`
Attachment string `gorm:"type:varchar(1024)"`
Display int `gorm:"comment:状态 1不展示 2 展示"`
2025-06-12 06:35:00 +00:00
Summary string `gorm:"type:text;comment:摘要"`
2025-06-11 08:17:27 +00:00
Status int `gorm:"comment:状态 1下架 2 上架"`
Operator string `gorm:"type:varchar(100)"`
OperatorID uint `gorm:"column:operator_id"`
AttachmentName string `gorm:"type:varchar(1024)"`
2025-06-11 05:54:38 +00:00
}
func (*PressReleases) TableName() string {
return "press_releases"
}