From f9a85e051289397f734b48a6556eba9b42a771de Mon Sep 17 00:00:00 2001 From: Boby Tiwari Date: Sat, 23 Nov 2024 11:23:55 +0530 Subject: [PATCH] Update drizzle-orm.md (#1744) --- pages/sessions/basic-api/drizzle-orm.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/sessions/basic-api/drizzle-orm.md b/pages/sessions/basic-api/drizzle-orm.md index 137217c80..fa43a3dde 100644 --- a/pages/sessions/basic-api/drizzle-orm.md +++ b/pages/sessions/basic-api/drizzle-orm.md @@ -52,11 +52,11 @@ import type { InferSelectModel } from "drizzle-orm"; const pool = new pg.Pool(); const db = drizzle(pool); -const userTable = pgTable("user", { +export const userTable = pgTable("user", { id: serial("id").primaryKey() }); -const sessionTable = pgTable("session", { +export const sessionTable = pgTable("session", { id: text("id").primaryKey(), userId: integer("user_id") .notNull() @@ -83,11 +83,11 @@ import type { InferSelectModel } from "drizzle-orm"; const sqliteDB = sqlite(":memory:"); const db = drizzle(sqliteDB); -const userTable = sqliteTable("user", { +export const userTable = sqliteTable("user", { id: integer("id").primaryKey() }); -const sessionTable = sqliteTable("session", { +export const sessionTable = sqliteTable("session", { id: text("id").primaryKey(), userId: integer("user_id") .notNull()