28 lines
510 B
TypeScript
28 lines
510 B
TypeScript
|
import { CollectionOptions } from '@nocobase/database';
|
||
|
|
||
|
export default {
|
||
|
name: 'rolesResourcesActions',
|
||
|
fields: [
|
||
|
{
|
||
|
type: 'belongsTo',
|
||
|
name: 'resource',
|
||
|
foreignKey: 'rolesResourceId',
|
||
|
target: 'rolesResources',
|
||
|
},
|
||
|
{
|
||
|
type: 'string',
|
||
|
name: 'name',
|
||
|
},
|
||
|
{
|
||
|
type: 'json',
|
||
|
name: 'fields',
|
||
|
defaultValue: [],
|
||
|
},
|
||
|
{
|
||
|
type: 'belongsTo',
|
||
|
name: 'scope',
|
||
|
target: 'rolesResourcesScopes',
|
||
|
},
|
||
|
],
|
||
|
} as CollectionOptions;
|