I am batman

This commit is contained in:
2026-07-12 20:26:16 -04:00
commit 5a3a6357cf
37 changed files with 2938 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package models
import (
"time"
"gorm.io/gorm"
)
type User struct {
gorm.Model
Email string `gorm:"uniqueIndex;not null"`
Password string `gorm:"not null"`
Name string
Role string `gorm:"default:User"`
Active bool `gorm:"default:true"`
Username string `gorm:"uniqueIndex"`
Address string
PhoneNumber string
ProfilePhoto []byte `gorm:"type:bytea"`
ClientID *uint
Client *Client
VerificationToken string `json:"-"`
ResetToken string `json:"-"`
ResetTokenExpiry time.Time `json:"-"`
}