Files
ReSendit/internal/user/model.go
2026-03-21 03:12:13 +01:00

12 lines
271 B
Go

package user
import "gorm.io/gorm"
type User struct {
gorm.Model
Username string `gorm:"uniqueIndex;not null"`
PasswordHash string `gorm:"not null"`
Role string `gorm:"not null"`
ForceChangePassword bool `gorm:"default:false"`
}