From faca97f1ae1ba870673347f98557191fcd5c123a Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sun, 22 Jun 2025 13:21:03 +0200 Subject: add upstash rate limiting --- apps/web/src/lib/db/schema.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/web/src/lib/db/schema.ts') diff --git a/apps/web/src/lib/db/schema.ts b/apps/web/src/lib/db/schema.ts index 02df5d4a..7c38724a 100644 --- a/apps/web/src/lib/db/schema.ts +++ b/apps/web/src/lib/db/schema.ts @@ -59,3 +59,11 @@ export const verifications = pgTable("verifications", { () => /* @__PURE__ */ new Date() ), }).enableRLS(); + +export const waitlist = pgTable("waitlist", { + id: text("id").primaryKey(), + email: text("email").notNull().unique(), + createdAt: timestamp("created_at") + .$defaultFn(() => /* @__PURE__ */ new Date()) + .notNull(), +}).enableRLS(); -- cgit v1.3.1