Compare commits

...

1 Commits

Author SHA1 Message Date
6f6ec92c5d create player schema 2026-06-14 17:42:57 +02:00
2 changed files with 10 additions and 0 deletions

7
server/db/player.ts Normal file
View File

@@ -0,0 +1,7 @@
import { pgTable } from "drizzle-orm/pg-core";
export const player = pgTable("players", (t) => ({
id: t.uuid().primaryKey(),
name: t.varchar().notNull(),
created_at: t.timestamp().defaultNow()
}))

3
server/db/schema.ts Normal file
View File

@@ -0,0 +1,3 @@
import { pgSchema } from "drizzle-orm/pg-core"
export const dndSchema = pgSchema("dnd")