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"`
|
|
|
|
Username string `gorm:"unique;not null" json:"username,omitempty"`
|
|
|
|
Password string `gorm:"not null" json:"password,omitempty"`
|
|
|
|
Roles string `gorm:"not null;default:''" json:"roles,omitempty"`
|
2022-10-03 15:07:08 +08:00
|
|
|
}
|