You've already forked golang-base-project
Initial commit
This commit is contained in:
16
models/user.go
Normal file
16
models/user.go
Normal file
@ -0,0 +1,16 @@
|
||||
// Package models defines all the database models for the application
|
||||
package models
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
gorm.Model
|
||||
Email string
|
||||
Password string
|
||||
ActivatedAt *time.Time
|
||||
Tokens []Token `gorm:"polymorphic:Model;"`
|
||||
Sessions []Session
|
||||
}
|
Reference in New Issue
Block a user