inital commit

This commit is contained in:
chikovanreuden
2025-10-20 02:05:08 +02:00
commit 2fb5f48a54
19 changed files with 601 additions and 0 deletions

13
app/sql.ts Normal file
View File

@@ -0,0 +1,13 @@
import { Database } from "bun:sqlite";
import * as path from "node:path";
import { Event } from "./component/event";
export const db_filename = "77th_eventntfy.db";
export const db_filepath = path.join("data", "db", db_filename);
console.log(db_filepath);
// const db_file = Bun.file(db_filepath);
export const db = new Database(db_filepath);
export function init () {
Event.createTable(db);
}