You've already forked golang-base-project
17 lines
291 B
Go
17 lines
291 B
Go
![]() |
// 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
|
||
|
}
|