Files
old-backend/models/user.go
2023-11-06 11:22:51 +01:00

31 lines
693 B
Go

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"`
}
type ResetPasswordRequest struct {
Email string `json:"email"`
}
type UpdatePasswordRequest struct {
Password string `json:"password"`
Token string `json:"token"`
}
func (User) Update() (bool, error) {
return false, nil
}
func (User) Create() (bool, error) {
return false, nil
}
func (User) Delete() (bool, error) {
return false, nil
}