mc-client-updater-server/pkg/dao/entity/user.go

11 lines
261 B
Go
Raw Permalink Normal View History

2022-10-03 15:07:08 +08:00
package entity
import "gorm.io/gorm"
type User struct {
2022-10-04 00:36:01 +08:00
gorm.Model `json:"model"`
2024-01-07 15:13:35 +08:00
Username string `gorm:"unique;not null" json:"username"`
Password string `gorm:"not null" json:"password"`
Roles string `gorm:"not null;default:''" json:"roles"`
2022-10-03 15:07:08 +08:00
}