feat: Create template model

This commit is contained in:
Faruk AYDIN
2025-02-17 14:48:25 +01:00
parent 3fa677f3d0
commit 2e279d4709
4 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
export async function up(knex) {
return knex.schema.createTable('templates', (table) => {
table.uuid('id').primary().defaultTo(knex.raw('gen_random_uuid()'));
table.string('name');
table.jsonb('flow_data');
table.timestamps(true, true);
});
}
export async function down(knex) {
return knex.schema.dropTable('templates');
}