first commit
This commit is contained in:
commit
3d986c4ee2
27 changed files with 597 additions and 0 deletions
17
models/users.go
Normal file
17
models/users.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue