26 lines
508 B
TypeScript
26 lines
508 B
TypeScript
|
import { TableOptions } from '@nocobase/database';
|
||
|
|
||
|
export default {
|
||
|
name: 'actions_permissions',
|
||
|
title: '表操作权限',
|
||
|
developerMode: true,
|
||
|
internal: true,
|
||
|
fields: [
|
||
|
{
|
||
|
comment: '程序操作名称("list", "create" 等)',
|
||
|
type: 'string',
|
||
|
name: 'name',
|
||
|
},
|
||
|
{
|
||
|
comment: '操作范围',
|
||
|
type: 'belongsTo',
|
||
|
name: 'scope',
|
||
|
target: 'actions_scopes'
|
||
|
},
|
||
|
{
|
||
|
type: 'belongsTo',
|
||
|
name: 'permission',
|
||
|
},
|
||
|
],
|
||
|
} as TableOptions;
|