Files
omnex/control-plane/api/internal/auth/models.go
T
Nuxgrid a33582aca7
ci-api / test (push) Failing after 37m16s
fix: fixup telegram column
2026-07-29 09:43:17 +02:00

16 lines
581 B
Go

package auth
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" 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"`
ExpiredAt time.Time `json:"expired_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}