picgo/model/domin.go

14 lines
356 B
Go
Raw Permalink Normal View History

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