Remove unused builder.ts
This commit is contained in:
parent
3cb5f91d3b
commit
4cbdda401a
|
@ -1,39 +0,0 @@
|
|||
import { DenoSqliteDialect, Kysely, Sqlite } from '@/deps.ts';
|
||||
|
||||
interface Tables {
|
||||
events: EventsTable;
|
||||
tags: TagsTable;
|
||||
users: UsersTable;
|
||||
}
|
||||
|
||||
interface EventsTable {
|
||||
id: string;
|
||||
kind: number;
|
||||
pubkey: string;
|
||||
content: string;
|
||||
created_at: number;
|
||||
tags: string;
|
||||
sig: string;
|
||||
}
|
||||
|
||||
interface TagsTable {
|
||||
tag: string;
|
||||
value_1: string | null;
|
||||
value_2: string | null;
|
||||
value_3: string | null;
|
||||
event_id: string;
|
||||
}
|
||||
|
||||
interface UsersTable {
|
||||
pubkey: string;
|
||||
username: string;
|
||||
inserted_at: Date;
|
||||
}
|
||||
|
||||
const builder = new Kysely<Tables>({
|
||||
dialect: new DenoSqliteDialect({
|
||||
database: new Sqlite('data/db.sqlite3'),
|
||||
}),
|
||||
});
|
||||
|
||||
export { builder };
|
Loading…
Reference in New Issue