tachybase_todo/packages/plugins/workflow/src/server/collections/jobs.ts

30 lines
471 B
TypeScript
Raw Normal View History

import { CollectionOptions } from '@nocobase/database';
export default {
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;