diff --git a/control-plane/api/internal/auth/models.go b/control-plane/api/internal/auth/models.go index b3e42a4..9773aa3 100644 --- a/control-plane/api/internal/auth/models.go +++ b/control-plane/api/internal/auth/models.go @@ -5,7 +5,7 @@ import "time" type User struct { ID string `gorm:"type:uuid;primaryKey" json:"id"` 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:"-"` Role Role `gorm:"size:20;not null" json:"role"` TypeAbo string `gorm:"type:varchar(35);default:demo" json:"type_abonnement"`