Add initial project structure with database setup, logging, and workflow management

This commit is contained in:
2026-08-14 11:36:54 +07:00
commit 5dc992a517
21 changed files with 2080 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import knex from "knex";
import config from "./knexfile.js";
export const db = knex(config);
/**
* Apply pending migrations. Call once before registering workflows.
*/
export async function migrate() {
await db.migrate.latest();
}