create player schema

This commit is contained in:
2026-06-14 17:42:57 +02:00
parent cac033588e
commit 6f6ec92c5d
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")