Files
old-backend/models/user.go

32 lines
667 B
Go
Raw Normal View History

package models
2023-10-06 10:47:26 +02:00
import (
"database/sql"
"time"
"github.com/jinzhu/gorm"
)
type User struct {
gorm.Model
2023-10-06 10:47:26 +02:00
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"`
}
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
}