right type used

This commit is contained in:
2026-02-20 15:29:26 +02:00
parent 1c8f6f142c
commit 09f2125a4e
14 changed files with 121 additions and 138 deletions
+10 -9
View File
@@ -11,16 +11,17 @@
package descr
import (
"mstore/pkg/auxuuid"
"mstore/pkg/terms"
"mstore/pkg/uuid"
)
type Grant struct {
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"`
ID uuid.UUID `json:"id" db:"id"`
AccountID uuid.UUID `json:"accountID" db:"account_id"`
Right terms.Right `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 uuid.UUID `json:"createdBy" db:"created_by"`
UpdatedBy uuid.UUID `json:"updatedBy" db:"updated_by"`
}