Fixed qor admin companies users

This commit is contained in:
Nedim
2023-11-13 18:03:16 +01:00
parent 8f365557a8
commit 515134dde5
5 changed files with 18 additions and 11 deletions

View File

@@ -2,13 +2,15 @@ package models
type User struct {
BaseModel
Username string `json:"username"`
Password string `json:"password"`
Email string `json:"email"`
Avatar string `json:"avatar"`
IsActive bool `json:"isActive" gorm:"default:false"`
CompanyID uint `json:"companyId"`
LoginAttempts int `gorm:"default:0"`
Username string `json:"username"`
Password string `json:"password"`
Email string `json:"email"`
Avatar string `json:"avatar"`
IsActive bool `json:"isActive" gorm:"default:false"`
// CompanyID uint `json:"companyId"`
// Company Company
Companies []Company `gorm:"many2many:user_companies;"`
LoginAttempts int `gorm:"default:0"`
}
type ResetPasswordRequest struct {