@optimatech88/titomeet-shared-lib 1.0.32 → 1.0.33
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;
|
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
|
}
|