2022-01-28 00:25:26 +08:00
|
|
|
import { CollectionOptions } from '@nocobase/database';
|
2022-01-09 22:22:26 +08:00
|
|
|
|
|
|
|
export default {
|
2023-02-13 09:57:03 +08:00
|
|
|
namespace: 'workflow',
|
|
|
|
duplicator: 'optional',
|
2022-01-09 22:22:26 +08:00
|
|
|
name: 'jobs',
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
type: 'belongsTo',
|
2022-06-20 23:29:21 +08:00
|
|
|
name: 'execution'
|
2022-01-09 22:22:26 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'belongsTo',
|
|
|
|
name: 'node',
|
2022-06-20 23:29:21 +08:00
|
|
|
target: 'flow_nodes'
|
2022-01-09 22:22:26 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'belongsTo',
|
|
|
|
name: 'upstream',
|
2022-06-20 23:29:21 +08:00
|
|
|
target: 'jobs'
|
2022-01-09 22:22:26 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'integer',
|
2022-06-20 23:29:21 +08:00
|
|
|
name: 'status'
|
2022-01-09 22:22:26 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'jsonb',
|
2022-06-20 23:29:21 +08:00
|
|
|
name: 'result'
|
|
|
|
}
|
2022-01-09 22:22:26 +08:00
|
|
|
]
|
2022-01-28 00:25:26 +08:00
|
|
|
} as CollectionOptions;
|