add hero schema

This commit is contained in:
2026-06-14 18:07:35 +02:00
parent 545a8d7273
commit 3127a07612
4 changed files with 155 additions and 27 deletions

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

@@ -0,0 +1,7 @@
import { player } from "./player";
import { dndSchema } from "./schema";
export const hero = dndSchema.table("heros", (t) => ({
id: t.uuid().primaryKey(),
player_id: t.uuid().notNull().references(() => player.id),
}))