import { CollectionOptions } from '@nocobase/database'; export default { namespace: 'ui-schema-storage.uiSchemas', duplicator: 'required', name: 'uiSchemas', title: '字段配置', autoGenId: false, timestamps: false, repository: 'UiSchemaRepository', model: 'UiSchemaModel', magicAttribute: 'schema', fields: [ { type: 'uid', name: 'x-uid', primaryKey: true, }, { type: 'string', name: 'name', }, { type: 'hasMany', name: 'serverHooks', target: 'uiSchemaServerHooks', foreignKey: 'uid', }, { type: 'json', name: 'schema', defaultValue: {}, }, ], } as CollectionOptions;