uuid used
This commit is contained in:
+12
-8
@@ -10,13 +10,17 @@
|
||||
|
||||
package descr
|
||||
|
||||
import (
|
||||
"mstore/pkg/auxuuid"
|
||||
)
|
||||
|
||||
type Grant struct {
|
||||
ID string `json:"id" db:"id"`
|
||||
AccountID string `json:"accountID" db:"account_id"`
|
||||
Right string `json:"right" db:"right"`
|
||||
Pattern string `json:"pattern" db:"pattern"`
|
||||
CreatedAt string `json:"createdAt" db:"created_at"`
|
||||
UpdatedAt string `json:"updatedAt" db:"updated_at"`
|
||||
CreatedBy string `json:"createdBy" db:"created_by"`
|
||||
UpdatedBy string `json:"updatedBy" db:"updated_by"`
|
||||
ID auxuuid.UUID `json:"id" db:"id"`
|
||||
AccountID auxuuid.UUID `json:"accountID" db:"account_id"`
|
||||
Right string `json:"right" db:"right"`
|
||||
Pattern string `json:"pattern" db:"pattern"`
|
||||
CreatedAt string `json:"createdAt" db:"created_at"`
|
||||
UpdatedAt string `json:"updatedAt" db:"updated_at"`
|
||||
CreatedBy auxuuid.UUID `json:"createdBy" db:"created_by"`
|
||||
UpdatedBy auxuuid.UUID `json:"updatedBy" db:"updated_by"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user