add more fields to device data

This commit is contained in:
Nam Huynh 2021-08-21 19:49:54 +07:00
parent a6746c0562
commit 9e5d8ebe9c
1 changed files with 11 additions and 7 deletions

View File

@ -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"`
} }