import { CollectionOptions } from '@nocobase/database'; export default { namespace: 'workflow', duplicator: 'optional', name: 'jobs', fields: [ { type: 'belongsTo', name: 'execution' }, { type: 'belongsTo', name: 'node', target: 'flow_nodes' }, { type: 'belongsTo', name: 'upstream', target: 'jobs' }, { type: 'integer', name: 'status' }, { type: 'jsonb', name: 'result' } ] } as CollectionOptions;