add more fields to device data
This commit is contained in:
parent
a6746c0562
commit
9e5d8ebe9c
18
model.go
18
model.go
|
@ -1,6 +1,10 @@
|
||||||
package devicemngt
|
package devicemngt
|
||||||
|
|
||||||
import "time"
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/lib/pq"
|
||||||
|
)
|
||||||
|
|
||||||
// Device ...
|
// Device ...
|
||||||
type Device struct {
|
type Device struct {
|
||||||
|
@ -58,10 +62,10 @@ type HeaderData struct {
|
||||||
|
|
||||||
// StaffPermissions ...
|
// StaffPermissions ...
|
||||||
type StaffPermissions struct {
|
type StaffPermissions struct {
|
||||||
ID string `db:"id"`
|
ID string `db:"id"`
|
||||||
Name string `db:"name"`
|
Name string `db:"name"`
|
||||||
Permissions []string `db:"permissions"`
|
Permissions pq.StringArray `db:"permissions"`
|
||||||
AccountType string `db:"account_type"`
|
AccountType string `db:"account_type"`
|
||||||
Active bool `db:"active"`
|
Active bool `db:"active"`
|
||||||
DeviceID string `db:"device_id"`
|
DeviceID string `db:"device_id"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue