package auth import "time" // BaseModel contains common fields for all models type BaseModel struct { ID uint `gorm:"primaryKey"` CreatedAt time.Time UpdatedAt time.Time } // UserSession represents a user session type UserSession struct { BaseModel UserID uint `gorm:"index"` Token string `gorm:"size:255;not null;uniqueIndex"` ExpiresAt time.Time `gorm:"not null"` }