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