Added devices and companies models

This commit is contained in:
Nedim
2023-09-06 11:58:33 +02:00
parent 8bbfa53d42
commit 40c6366608
10 changed files with 116 additions and 21 deletions

20
models/device.go Normal file
View File

@@ -0,0 +1,20 @@
package models
import "github.com/jinzhu/gorm"
type Device struct {
gorm.Model
DeviceName string
DeviceConfiguration string `gorm:"type:json"`
CompanyID uint
}
func (Device)Update() (bool, error) {
return false, nil
}
func (Device)Create() (bool, error) {
return false, nil
}
func (Device)Delete() (bool, error) {
return false, nil
}