@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimatech88/titomeet-shared-lib",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -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;
@@ -145,9 +145,8 @@ model Message {
145
145
  senderId String
146
146
  createdAt DateTime @default(now())
147
147
  updatedAt DateTime @updatedAt
148
- mediaUrl String?
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
  }