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
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/lib/pq"
|
||||
)
|
||||
|
||||
// Device ...
|
||||
type Device struct {
|
||||
|
@ -60,7 +64,7 @@ type HeaderData struct {
|
|||
type StaffPermissions struct {
|
||||
ID string `db:"id"`
|
||||
Name string `db:"name"`
|
||||
Permissions []string `db:"permissions"`
|
||||
Permissions pq.StringArray `db:"permissions"`
|
||||
AccountType string `db:"account_type"`
|
||||
Active bool `db:"active"`
|
||||
DeviceID string `db:"device_id"`
|
||||
|
|
Loading…
Reference in New Issue