Files
old-backend/models/device.go

24 lines
484 B
Go
Raw Normal View History

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