@optimatech88/titomeet-shared-lib 1.0.32 → 1.0.34
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,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `mediaType` on the `Message` table. All the data in the column will be lost.
|
|
5
|
+
- You are about to drop the column `mediaUrl` on the `Message` table. All the data in the column will be lost.
|
|
6
|
+
|
|
7
|
+
*/
|
|
8
|
+
-- AlterTable
|
|
9
|
+
ALTER TABLE "Message" DROP COLUMN "mediaType",
|
|
10
|
+
DROP COLUMN "mediaUrl",
|
|
11
|
+
ADD COLUMN "files" JSONB;
|
|
@@ -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';
|
package/prisma/schema.prisma
CHANGED
|
@@ -145,9 +145,8 @@ model Message {
|
|
|
145
145
|
senderId String
|
|
146
146
|
createdAt DateTime @default(now())
|
|
147
147
|
updatedAt DateTime @updatedAt
|
|
148
|
-
|
|
148
|
+
files Json?
|
|
149
149
|
text String
|
|
150
|
-
mediaType MediaType?
|
|
151
150
|
chat Chat @relation(fields: [chatId], references: [id])
|
|
152
151
|
sender User @relation(fields: [senderId], references: [id])
|
|
153
152
|
}
|
|
@@ -302,6 +301,11 @@ enum NotificationType {
|
|
|
302
301
|
NEW_MESSAGE
|
|
303
302
|
EVENT_REMINDER
|
|
304
303
|
EVENT_PARTICIPATION_CONFIRMATION
|
|
304
|
+
EVENT_VALIDATION
|
|
305
|
+
EVENT_REJECTION
|
|
306
|
+
EVENT_ASSIGNMENT
|
|
307
|
+
EVENT_ASSIGNMENT_APPROVAL
|
|
308
|
+
EVENT_ASSIGNMENT_REJECTION
|
|
305
309
|
}
|
|
306
310
|
|
|
307
311
|
enum ProviderStatus {
|