add device manager

This commit is contained in:
SowinskiBraeden committed 2022-09-28 13:10:44 -07:00
1 parent aaab06e14c
commit f2f8b94c33
2 files changed
+162 -5

No files matched your search

+5 -5
View File
@@ -2,13 +2,13 @@ package models
// Device holds the structure for the device collection in mongo
type Device struct {
ID string `json:"_id" bson:"_id"` // MongoDB ID
Details DeviceDetails `json:"device" bson:"device"` // Details
ID string `json:"_id" bson:"_id"` // MongoDB ID
Details DeviceDetails `json:"details" bson:"details"` // Details
}
// Device holds the structure for the Device collection in mongo
type DeviceDetails struct {
Type string `json:"Type" bson:"Type"` // eg. Laptop, Ipdad, etc
Code string `json:"Code" bson:"Code"` // eg. SULH-LAP-01
Parent string `json:"Parent" bson:"Parent"` // Parent cow Mongo ID
Type string `json:"type" bson:"type"` // eg. Laptop, Ipdad, etc
Name string `json:"name" bson:"name"` // eg. SULH-LAP-01
Parent string `json:"parent" bson:"parent"` // Parent cow Mongo ID
}