30 lines
426 B
Go
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
|
|
}
|