feat(api): add initial schema migration

This commit is contained in:
Tuan-Dat Tran
2026-02-20 17:08:09 +01:00
parent 7bcea886f1
commit 3b0d98f15c

View File

@@ -0,0 +1,11 @@
export async function up(knex) {
await knex.schema.createTable('cv_data', (table) => {
table.integer('id').primary();
table.text('data').notNullable();
table.datetime('updated_at').defaultTo(knex.fn.now());
});
}
export async function down(knex) {
await knex.schema.dropTableIfExists('cv_data');
}