2023-09-06 11:58:33 +02:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import "github.com/jinzhu/gorm"
|
|
|
|
|
|
|
|
|
|
type Company struct {
|
|
|
|
|
gorm.Model
|
2023-09-18 12:27:40 +02:00
|
|
|
Name string
|
2023-09-27 19:20:44 +02:00
|
|
|
Address string
|
|
|
|
|
Email string
|
|
|
|
|
Phone string
|
2023-09-06 11:58:33 +02:00
|
|
|
Users []User
|
|
|
|
|
Devices []Device
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-03 18:26:57 +02:00
|
|
|
type CompanyShortResponse struct {
|
|
|
|
|
ID int
|
|
|
|
|
Name string
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-06 11:58:33 +02:00
|
|
|
|
2023-09-18 12:27:40 +02:00
|
|
|
func (Company) Update() (bool, error) {
|
2023-09-06 11:58:33 +02:00
|
|
|
return false, nil
|
|
|
|
|
}
|
2023-09-18 12:27:40 +02:00
|
|
|
func (Company) Create() (bool, error) {
|
2023-09-06 11:58:33 +02:00
|
|
|
return false, nil
|
|
|
|
|
}
|
2023-09-18 12:27:40 +02:00
|
|
|
func (Company) Delete() (bool, error) {
|
2023-09-06 11:58:33 +02:00
|
|
|
return false, nil
|
|
|
|
|
}
|