Archived
Template
1
0

Initial commit

This commit is contained in:
uberswe
2021-12-12 14:56:13 +01:00
commit 0511f8fbca
1627 changed files with 773292 additions and 0 deletions

16
models/user.go Normal file
View 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
}