feat: Create execution step model

This commit is contained in:
Faruk AYDIN
2022-02-19 13:16:39 +03:00
committed by Ömer Faruk Aydın
parent 82e1f345d4
commit b6494ea1c4
2 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { Knex } from 'knex';
export async function up(knex: Knex): Promise<void> {
return knex.schema.createTable('execution_steps', (table) => {
table.increments('id');
table.integer('execution_id').references('id').inTable('executions');
table.integer('step_id').references('id').inTable('steps');
table.string('status');
table.text('data_in');
table.text('data_out');
table.timestamps(true, true);
});
}
export async function down(knex: Knex): Promise<void> {
return knex.schema.dropTable('execution_steps');
}