@varaos/db 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varaos/db",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "files": [
@@ -0,0 +1,12 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - A unique constraint covering the columns `[referralCode]` on the table `WaitList` will be added. If there are existing duplicate values, this will fail.
5
+
6
+ */
7
+ -- AlterTable
8
+ ALTER TABLE "public"."WaitList" ADD COLUMN "referralCode" TEXT,
9
+ ADD COLUMN "referredBy" TEXT;
10
+
11
+ -- CreateIndex
12
+ CREATE UNIQUE INDEX "WaitList_referralCode_key" ON "public"."WaitList"("referralCode");
@@ -266,6 +266,9 @@ model WaitList {
266
266
  useCase String?
267
267
  consentToUpdates Boolean
268
268
 
269
+ referralCode String? @unique // the code this user can share
270
+ referredBy String? // stores the referral code of the person who invited them
271
+
269
272
  createdAt DateTime @default(now())
270
273
  updatedAt DateTime @updatedAt
271
274
  }