package user import ( "git.oblat.lv/alex/triggerssmith/internal/acl" "gorm.io/gorm" ) type User struct { ID int64 `gorm:"primaryKey"` Username string `gorm:"uniqueIndex;not null"` Email string `gorm:"uniqueIndex;not null"` Password string `gorm:"not null"` Roles []acl.Role `gorm:"many2many:user_roles"` DeletedAt gorm.DeletedAt `gorm:"index"` }