first commit

This commit is contained in:
William Bouzourène 2024-12-20 19:58:37 +01:00
commit 7cec3bb263
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
27 changed files with 597 additions and 0 deletions

17
models/users.go Normal file
View file

@ -0,0 +1,17 @@
package models
import (
"database/sql"
"gorm.io/gorm"
)
type User struct {
gorm.Model
Name string
Email string
Password string
TotpSercet sql.NullString
DisabledAt sql.NullTime
IsAdmin bool
}