picgo/model/upload.go

14 lines
370 B
Go
Raw Normal View History

2024-07-12 20:32:33 +08:00
package model
// Upload cdn访问域名
type Upload struct {
BaseModel
FileKey string `gorm:"size:64;unique;not null;column:filekey;comment:'文件路径'" json:"fileKey"`
Remark string `gorm:"size:64;column:remark;comment:'备注'" json:"remark"`
}
// TableName sets the custom table name for the User model.
func (Upload) TableName() string {
return "upload"
}