create player schema
This commit is contained in:
7
server/db/player.ts
Normal file
7
server/db/player.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { dndSchema } from "./schema";
|
||||
|
||||
export const player = dndSchema.table("players", (t) => ({
|
||||
id: t.uuid().primaryKey(),
|
||||
name: t.varchar().notNull(),
|
||||
created_at: t.timestamp().defaultNow()
|
||||
}))
|
||||
3
server/db/schema.ts
Normal file
3
server/db/schema.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { pgSchema } from "drizzle-orm/pg-core"
|
||||
|
||||
export const dndSchema = pgSchema("dnd")
|
||||
Reference in New Issue
Block a user