@optimatech88/titomeet-shared-lib 1.0.33 → 1.0.35
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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
-- AlterEnum
|
|
2
|
+
-- This migration adds more than one value to an enum.
|
|
3
|
+
-- With PostgreSQL versions 11 and earlier, this is not possible
|
|
4
|
+
-- in a single migration. This can be worked around by creating
|
|
5
|
+
-- multiple migrations, each migration adding only one value to
|
|
6
|
+
-- the enum.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
ALTER TYPE "NotificationType" ADD VALUE 'EVENT_VALIDATION';
|
|
10
|
+
ALTER TYPE "NotificationType" ADD VALUE 'EVENT_REJECTION';
|
|
11
|
+
ALTER TYPE "NotificationType" ADD VALUE 'EVENT_ASSIGNMENT';
|
|
12
|
+
ALTER TYPE "NotificationType" ADD VALUE 'EVENT_ASSIGNMENT_APPROVAL';
|
|
13
|
+
ALTER TYPE "NotificationType" ADD VALUE 'EVENT_ASSIGNMENT_REJECTION';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
-- CreateTable
|
|
2
|
+
CREATE TABLE "Newsletter" (
|
|
3
|
+
"id" TEXT NOT NULL,
|
|
4
|
+
"email" TEXT NOT NULL,
|
|
5
|
+
"unsubscribedAt" TIMESTAMP(3),
|
|
6
|
+
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
7
|
+
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
8
|
+
|
|
9
|
+
CONSTRAINT "Newsletter_pkey" PRIMARY KEY ("id")
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
-- CreateIndex
|
|
13
|
+
CREATE UNIQUE INDEX "Newsletter_email_key" ON "Newsletter"("email");
|
package/prisma/schema.prisma
CHANGED
|
@@ -301,6 +301,11 @@ enum NotificationType {
|
|
|
301
301
|
NEW_MESSAGE
|
|
302
302
|
EVENT_REMINDER
|
|
303
303
|
EVENT_PARTICIPATION_CONFIRMATION
|
|
304
|
+
EVENT_VALIDATION
|
|
305
|
+
EVENT_REJECTION
|
|
306
|
+
EVENT_ASSIGNMENT
|
|
307
|
+
EVENT_ASSIGNMENT_APPROVAL
|
|
308
|
+
EVENT_ASSIGNMENT_REJECTION
|
|
304
309
|
}
|
|
305
310
|
|
|
306
311
|
enum ProviderStatus {
|
|
@@ -322,3 +327,13 @@ enum PaymentStatus {
|
|
|
322
327
|
FAILED
|
|
323
328
|
REFUNDED
|
|
324
329
|
}
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
model Newsletter {
|
|
333
|
+
id String @id @default(cuid())
|
|
334
|
+
email String @unique
|
|
335
|
+
unsubscribedAt DateTime?
|
|
336
|
+
|
|
337
|
+
createdAt DateTime @default(now())
|
|
338
|
+
updatedAt DateTime @updatedAt
|
|
339
|
+
}
|