Files
old-backend/models/user.go

30 lines
628 B
Go
Raw Normal View History

package models
type User struct {
2023-10-13 11:48:14 +02:00
BaseModel
2023-10-06 10:47:26 +02:00
Username string `json:"username"`
Password string `json:"password"`
Email string `json:"email"`
Avatar string `json:"avatar"`
2023-10-30 19:21:43 +01:00
IsActive bool `json:"isActive" gorm:"default:false"`
2023-10-06 10:47:26 +02:00
CompanyID uint `json:"companyId"`
}
2023-10-30 19:21:43 +01:00
type ResetPasswordRequest struct {
Email string `json:"email"`
}
type UpdatePasswordRequest struct {
Password string `json:"password"`
Token string `json:"token"`
}
2023-09-18 12:27:40 +02:00
func (User) Update() (bool, error) {
return false, nil
}
2023-09-18 12:27:40 +02:00
func (User) Create() (bool, error) {
return false, nil
}
2023-09-18 12:27:40 +02:00
func (User) Delete() (bool, error) {
return false, nil
}