Files
hk4e/service/annie-user/entity/db/user_entity.go
2022-11-20 15:38:00 +08:00

13 lines
274 B
Go

package db
type User struct {
Uid uint64 `gorm:"column:uid;primary_key;auto_increment"`
Username string `gorm:"column:username"`
Password string `gorm:"column:password"`
IsAdmin bool `gorm:"column:is_admin"`
}
func (User) TableName() string {
return "user"
}