tachybase_todo/packages/plugin-ui-schema-storage/src/collections/uiSchemaServerHooks.ts
2022-02-11 09:43:45 +08:00

25 lines
516 B
TypeScript

import { CollectionOptions } from '@nocobase/database';
export default {
name: 'uiSchemaServerHooks',
model: 'ServerHookModel',
// autoGenId: false,
timestamps: false,
fields: [
{ type: 'belongsTo', name: 'uiSchema', target: 'ui_schemas', foreignKey: 'uid' },
{ type: 'string', name: 'type' },
{
type: 'string',
name: 'collection',
},
{
type: 'array',
name: 'fields',
},
{
type: 'string',
name: 'method',
},
],
} as CollectionOptions;