diff --git a/bun.lockb b/bun.lockb index e15651a..2927758 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 73e32ca..8d727df 100644 --- a/package.json +++ b/package.json @@ -21,10 +21,10 @@ "dependencies": { "@hono/zod-openapi": "^0.16.4", "@scalar/hono-api-reference": "^0.5.158", - "drizzle-orm": "^0.35.3", + "drizzle-orm": "^0.36.0", "drizzle-zod": "^0.5.1", - "hono": "^4.6.8", - "hono-pino": "^0.3.0", + "hono": "^4.6.9", + "hono-pino": "^0.5.1", "pino": "^9.5.0", "postgres": "^3.4.5", "zod": "^3.23.8" diff --git a/src/db/schema/user.schema.ts b/src/db/schema/user.schema.ts index 11bdbfb..8cf97d2 100644 --- a/src/db/schema/user.schema.ts +++ b/src/db/schema/user.schema.ts @@ -36,9 +36,7 @@ const userSchema = pgTable( .notNull() .defaultNow(), }, - table => ({ - emailUniqueIndex: uniqueIndex().on(lower(table.email)), - }), + table => [uniqueIndex().on(lower(table.email))], ); // Schema for selecting a user - can be used to validate API responses