tlm-login-server/internal/models/database.go

16 lines
206 B
Go

package models
import (
"gorm.io/gorm"
"time"
)
var DB *gorm.DB
type User struct {
gorm.Model
Username string
Email string
PasswordHash []byte `gorm:"size:60"`
LastLoginAt time.Time
}