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 }