200 lines
5.8 KiB
JSON
200 lines
5.8 KiB
JSON
{
|
|
"namespaces": [
|
|
"public"
|
|
],
|
|
"name": "public",
|
|
"tables": [
|
|
{
|
|
"columns": {
|
|
"workflow_id": {
|
|
"name": "workflow_id",
|
|
"type": "text",
|
|
"unsigned": false,
|
|
"autoincrement": false,
|
|
"primary": false,
|
|
"nullable": false,
|
|
"mappedType": "text"
|
|
},
|
|
"transaction_id": {
|
|
"name": "transaction_id",
|
|
"type": "text",
|
|
"unsigned": false,
|
|
"autoincrement": false,
|
|
"primary": false,
|
|
"nullable": false,
|
|
"mappedType": "text"
|
|
},
|
|
"run_id": {
|
|
"name": "run_id",
|
|
"type": "text",
|
|
"unsigned": false,
|
|
"autoincrement": false,
|
|
"primary": false,
|
|
"nullable": false,
|
|
"mappedType": "text"
|
|
},
|
|
"id": {
|
|
"name": "id",
|
|
"type": "text",
|
|
"unsigned": false,
|
|
"autoincrement": false,
|
|
"primary": false,
|
|
"nullable": false,
|
|
"mappedType": "text"
|
|
},
|
|
"execution": {
|
|
"name": "execution",
|
|
"type": "jsonb",
|
|
"unsigned": false,
|
|
"autoincrement": false,
|
|
"primary": false,
|
|
"nullable": true,
|
|
"mappedType": "json"
|
|
},
|
|
"context": {
|
|
"name": "context",
|
|
"type": "jsonb",
|
|
"unsigned": false,
|
|
"autoincrement": false,
|
|
"primary": false,
|
|
"nullable": true,
|
|
"mappedType": "json"
|
|
},
|
|
"state": {
|
|
"name": "state",
|
|
"type": "text",
|
|
"unsigned": false,
|
|
"autoincrement": false,
|
|
"primary": false,
|
|
"nullable": false,
|
|
"enumItems": [
|
|
"not_started",
|
|
"invoking",
|
|
"waiting_to_compensate",
|
|
"compensating",
|
|
"done",
|
|
"reverted",
|
|
"failed"
|
|
],
|
|
"mappedType": "enum"
|
|
},
|
|
"retention_time": {
|
|
"name": "retention_time",
|
|
"type": "integer",
|
|
"unsigned": false,
|
|
"autoincrement": false,
|
|
"primary": false,
|
|
"nullable": true,
|
|
"mappedType": "integer"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamptz",
|
|
"unsigned": false,
|
|
"autoincrement": false,
|
|
"primary": false,
|
|
"nullable": false,
|
|
"length": 6,
|
|
"default": "now()",
|
|
"mappedType": "datetime"
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamptz",
|
|
"unsigned": false,
|
|
"autoincrement": false,
|
|
"primary": false,
|
|
"nullable": false,
|
|
"length": 6,
|
|
"default": "now()",
|
|
"mappedType": "datetime"
|
|
},
|
|
"deleted_at": {
|
|
"name": "deleted_at",
|
|
"type": "timestamptz",
|
|
"unsigned": false,
|
|
"autoincrement": false,
|
|
"primary": false,
|
|
"nullable": true,
|
|
"length": 6,
|
|
"mappedType": "datetime"
|
|
}
|
|
},
|
|
"name": "workflow_execution",
|
|
"schema": "public",
|
|
"indexes": [
|
|
{
|
|
"keyName": "IDX_workflow_execution_deleted_at",
|
|
"columnNames": [],
|
|
"composite": false,
|
|
"constraint": false,
|
|
"primary": false,
|
|
"unique": false,
|
|
"expression": "CREATE INDEX IF NOT EXISTS \"IDX_workflow_execution_deleted_at\" ON \"workflow_execution\" (deleted_at) WHERE deleted_at IS NULL"
|
|
},
|
|
{
|
|
"keyName": "IDX_workflow_execution_id",
|
|
"columnNames": [],
|
|
"composite": false,
|
|
"constraint": false,
|
|
"primary": false,
|
|
"unique": false,
|
|
"expression": "CREATE INDEX IF NOT EXISTS \"IDX_workflow_execution_id\" ON \"workflow_execution\" (id) WHERE deleted_at IS NULL"
|
|
},
|
|
{
|
|
"keyName": "IDX_workflow_execution_workflow_id",
|
|
"columnNames": [],
|
|
"composite": false,
|
|
"constraint": false,
|
|
"primary": false,
|
|
"unique": false,
|
|
"expression": "CREATE INDEX IF NOT EXISTS \"IDX_workflow_execution_workflow_id\" ON \"workflow_execution\" (workflow_id) WHERE deleted_at IS NULL"
|
|
},
|
|
{
|
|
"keyName": "IDX_workflow_execution_transaction_id",
|
|
"columnNames": [],
|
|
"composite": false,
|
|
"constraint": false,
|
|
"primary": false,
|
|
"unique": false,
|
|
"expression": "CREATE INDEX IF NOT EXISTS \"IDX_workflow_execution_transaction_id\" ON \"workflow_execution\" (transaction_id) WHERE deleted_at IS NULL"
|
|
},
|
|
{
|
|
"keyName": "IDX_workflow_execution_workflow_id_transaction_id_run_id_unique",
|
|
"columnNames": [],
|
|
"composite": false,
|
|
"constraint": false,
|
|
"primary": false,
|
|
"unique": false,
|
|
"expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_workflow_execution_workflow_id_transaction_id_run_id_unique\" ON \"workflow_execution\" (workflow_id, transaction_id, run_id) WHERE deleted_at IS NULL"
|
|
},
|
|
{
|
|
"keyName": "IDX_workflow_execution_state",
|
|
"columnNames": [],
|
|
"composite": false,
|
|
"constraint": false,
|
|
"primary": false,
|
|
"unique": false,
|
|
"expression": "CREATE INDEX IF NOT EXISTS \"IDX_workflow_execution_state\" ON \"workflow_execution\" (state) WHERE deleted_at IS NULL"
|
|
},
|
|
{
|
|
"keyName": "workflow_execution_pkey",
|
|
"columnNames": [
|
|
"workflow_id",
|
|
"transaction_id",
|
|
"run_id"
|
|
],
|
|
"composite": true,
|
|
"constraint": true,
|
|
"primary": true,
|
|
"unique": true
|
|
}
|
|
],
|
|
"checks": [],
|
|
"foreignKeys": {},
|
|
"nativeEnums": {}
|
|
}
|
|
],
|
|
"nativeEnums": {}
|
|
}
|