Files
2026-06-20 11:07:01 -04:00

24 lines
539 B
Go

package models
import (
"time"
"gorm.io/gorm"
)
type Auth struct {
gorm.Model
Username string `gorm:"uniqueIndex;not null"`
Email string `gorm:"uniqueIndex;not null"`
Password string `gorm:"not null"`
VerificationToken string `json:"-"`
ResetToken string `json:"-"`
ResetTokenExpiry time.Time `json:"-"`
Role string `gorm:"type:varchar(50);default:user" json:"role,omitempty"`
}
type Test struct {
gorm.Model
Content string `gorm:"type:text;not null"`
}