You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
396 B

package models
type User struct {
// body
Password string `gorm:"type:varchar(255)" json:"password"`
Name string `gorm:"type:varchar(255);uniqueIndex;" json:"name"`
ShowName string `gorm:"type:varchar(255)" json:"showName"`
Order int `gorm:"" json:"order"`
State bool `gorm:"" json:"state"`
// basic models
Model
// associations
Contents []Content `json:"contents"`
}