Files
old-backend/models/company.go
2023-10-04 12:10:46 +02:00

30 lines
426 B
Go

package models
import "github.com/jinzhu/gorm"
type Company struct {
gorm.Model
Name string
Address string
Email string
Phone string
Users []User
Devices []Device
}
type CompanyShortResponse struct {
ID int
Name string
}
func (Company) Update() (bool, error) {
return false, nil
}
func (Company) Create() (bool, error) {
return false, nil
}
func (Company) Delete() (bool, error) {
return false, nil
}