@@ -5,7 +5,7 @@ import "time"
|
|||||||
type User struct {
|
type User struct {
|
||||||
ID string `gorm:"type:uuid;primaryKey" json:"id"`
|
ID string `gorm:"type:uuid;primaryKey" json:"id"`
|
||||||
Username string `gorm:"uniqueIndex;size:64;not null" json:"username"`
|
Username string `gorm:"uniqueIndex;size:64;not null" json:"username"`
|
||||||
Telegram *string `gorm:"size:120;not null" json:"telegram"`
|
Telegram *string `gorm:"size:120" json:"telegram"`
|
||||||
PasswordHash string `gorm:"not null" json:"-"`
|
PasswordHash string `gorm:"not null" json:"-"`
|
||||||
Role Role `gorm:"size:20;not null" json:"role"`
|
Role Role `gorm:"size:20;not null" json:"role"`
|
||||||
TypeAbo string `gorm:"type:varchar(35);default:demo" json:"type_abonnement"`
|
TypeAbo string `gorm:"type:varchar(35);default:demo" json:"type_abonnement"`
|
||||||
|
|||||||
Reference in New Issue
Block a user