package models

import "time"

type SaUser struct {
	ID           uint   `gorm:"primaryKey"`
	Identity     string `gorm:"type:char(36);uniqueIndex"`
	Email        string `gorm:"uniqueIndex;not null"`
	DisplayName  string `gorm:"not null"`
	PasswordHash string `gorm:"not null"`
	Role         string `gorm:"not null;default:user"`
	CreatedAt    time.Time
	UpdatedAt    time.Time
}

func (SaUser) TableName() string {
	return "sa_users"
}
