add hero schema
This commit is contained in:
7
server/db/hero.ts
Normal file
7
server/db/hero.ts
Normal 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),
|
||||
}))
|
||||
Reference in New Issue
Block a user