add more fields to device data
This commit is contained in:
parent
a6746c0562
commit
9e5d8ebe9c
8
model.go
8
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 {
|
||||||
|
@ -60,7 +64,7 @@ type HeaderData struct {
|
||||||
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