AwaitingConfirmation
)
+type UserRole string
+
+const RoleUser UserRole = "user"
+const RoleAdmin UserRole = "admin"
+
type User struct {
Id int64
- Email string `sql:",unique,notnull"`
- PasswordHash string `sql:",notnull"`
+ Role UserRole
+ Email string
+ PasswordHash string
OtpSecret string
IsOtpSetup bool
Status UserStatus