26 lines
931 B
Go
26 lines
931 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/plugin/soft_delete"
|
|
)
|
|
|
|
type AnnualReport struct {
|
|
ID uint `gorm:"primarykey"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
DeletedAt soft_delete.DeletedAt
|
|
FileName string `gorm:"column:file_name;type:varchar(100);not null;default:'';comment:文件名称"`
|
|
Date string `gorm:"column:date;type:varchar(100);not null;default:'';comment:日期"`
|
|
FileUrl string `gorm:"column:file_url;type:varchar(100);not null;default:'';comment:访问地址"`
|
|
Status int32 `gorm:"column:status;type:int;not null;default:2;comment:状态:1上架 2 下架"`
|
|
Sort int32 `gorm:"column:sort;type:int;not null;default:1;comment:排序"`
|
|
Operator string `gorm:"column:operator;type:varchar(100);not null;default:'';comment:操作人"`
|
|
OperatorID int32 `gorm:"column:operator_id;comment:操作人Id"`
|
|
}
|
|
|
|
func (*AnnualReport) TableName() string {
|
|
return "annual_report"
|
|
}
|