I am batman

This commit is contained in:
2026-06-20 11:07:01 -04:00
commit 013d01358c
52 changed files with 7615 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
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"`
}