2023-09-06 11:58:33 +02:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import "github.com/jinzhu/gorm"
|
|
|
|
|
|
|
|
|
|
type Device struct {
|
|
|
|
|
gorm.Model
|
|
|
|
|
DeviceName string
|
2023-09-13 21:54:43 +02:00
|
|
|
IMEI string `json:"imei"`
|
|
|
|
|
IMSI string `json:"imsi"`
|
2023-09-06 11:58:33 +02:00
|
|
|
DeviceConfiguration string `gorm:"type:json"`
|
|
|
|
|
CompanyID uint
|
2023-09-12 18:28:18 +02:00
|
|
|
DeviceInfos []DeviceInfo
|
2023-09-06 11:58:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (Device)Update() (bool, error) {
|
|
|
|
|
return false, nil
|
|
|
|
|
}
|
|
|
|
|
func (Device)Create() (bool, error) {
|
|
|
|
|
return false, nil
|
|
|
|
|
}
|
|
|
|
|
func (Device)Delete() (bool, error) {
|
|
|
|
|
return false, nil
|
|
|
|
|
}
|