Files
DnDHeroPage/server/db/hero.ts
2026-06-14 18:07:35 +02:00

8 lines
223 B
TypeScript

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),
}))