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

12 lines
240 B
Go
Raw Normal View History

2022-10-03 15:07:08 +08:00
package entity
import "gorm.io/gorm"
type User struct {
gorm.Model
Username string `gorm:"unique;not null"`
Password string `gorm:"not null"`
Instance string `gorm:"not null;default:''"`
Role string `gorm:"not null;default:0"`
}