Files
sheetless-server/src/models/user.go
T
2026-07-02 22:40:23 +02:00

18 lines
511 B
Go

package models
import (
"time"
"github.com/google/uuid"
"gorm.io/gorm"
)
type User struct {
Uuid uuid.UUID `json:"uuid" gorm:"type:uuid;primaryKey"`
Username string `json:"username" gorm:"unique;not null"`
HashedPassword string `json:"-" gorm:"column:password;not null"` // Don't include in JSON responses
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
}