49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
import:
|
|
- github.com/cortezaproject/corteza-server/pkg/flag/types
|
|
|
|
types:
|
|
type: types.Flag
|
|
|
|
fields:
|
|
- { field: Kind, isPrimaryKey: true }
|
|
- { field: ResourceID, isPrimaryKey: true }
|
|
- { field: OwnedBy, isPrimaryKey: true }
|
|
|
|
- { field: Name, isPrimaryKey: true, lookupFilterPreprocessor: lower }
|
|
- { field: Active }
|
|
|
|
|
|
lookups:
|
|
- fields: [ Kind, ResourceID, Name ]
|
|
uniqueConstraintCheck: true
|
|
description: |-
|
|
Flag lookup by kind, resource, name
|
|
|
|
- fields: [ Kind, ResourceID ]
|
|
uniqueConstraintCheck: true
|
|
description: |-
|
|
Flag lookup by kind, resource
|
|
|
|
- fields: [ Kind, ResourceID, OwnedBy ]
|
|
uniqueConstraintCheck: true
|
|
description: |-
|
|
Flag lookup by kind, resource, owner
|
|
|
|
- fields: [ Kind, ResourceID, OwnedBy, Name ]
|
|
uniqueConstraintCheck: true
|
|
description: |-
|
|
Flag lookup by kind, resource, owner, name
|
|
|
|
search:
|
|
enablePaging: false
|
|
enableSorting: false
|
|
enableFilterCheckFunction: false
|
|
|
|
upsert:
|
|
enable: true
|
|
|
|
rdbms:
|
|
alias: flg
|
|
table: flags
|
|
customFilterConverter: true
|