8 lines
223 B
TypeScript
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),
|
|
}))
|