feat(db): add lobbies and lobby_players tables + model
This commit is contained in:
parent
a7be7152cc
commit
47a68c0315
8 changed files with 1310 additions and 10 deletions
|
|
@ -3,11 +3,12 @@ import { drizzle } from "drizzle-orm/node-postgres";
|
|||
import { resolve } from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
import { dirname } from "path";
|
||||
import * as schema from "./db/schema.js";
|
||||
|
||||
config({
|
||||
path: resolve(dirname(fileURLToPath(import.meta.url)), "../../../.env"),
|
||||
});
|
||||
|
||||
export const db = drizzle(process.env["DATABASE_URL"]!);
|
||||
export const db = drizzle(process.env["DATABASE_URL"]!, { schema });
|
||||
|
||||
export * from "./models/termModel.js";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue