Files
old-backend/models/user.go
2023-10-09 08:33:51 +02:00

32 lines
667 B
Go

package models
import (
"database/sql"
"time"
"github.com/jinzhu/gorm"
)
type User struct {
gorm.Model
ID uint `json:"id" gorm:"primaryKey"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt sql.NullTime `json:"deletedAt" gorm:"index"`
Username string `json:"username"`
Password string `json:"password"`
Email string `json:"email"`
Avatar string `json:"avatar"`
CompanyID uint `json:"companyId"`
}
func (User) Update() (bool, error) {
return false, nil
}
func (User) Create() (bool, error) {
return false, nil
}
func (User) Delete() (bool, error) {
return false, nil
}