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

32 lines
522 B
TypeScript
Raw Normal View History

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;