Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
215 changes: 213 additions & 2 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@types/cors": "^2.8.19",
"@types/express": "^5.0.3",
"@types/jsonwebtoken": "^9.0.10",
"@types/multer": "^2.2.0",
"@types/node": "^24.13.2",
"concurrently": "^9.2.0",
"nodemon": "^3.1.14",
Expand All @@ -27,12 +28,15 @@
"@prisma/client": "^6.19.3",
"@socket.io/admin-ui": "^0.5.1",
"@socket.io/redis-streams-adapter": "^0.3.1",
"cloudinary": "^1.41.3",
"cors": "^2.8.5",
"dotenv": "^17.4.2",
"express": "^5.1.0",
"ioredis": "^5.11.1",
"jsonwebtoken": "^9.0.3",
"kafkajs": "^2.2.4",
"multer": "^2.2.0",
"multer-storage-cloudinary": "^4.0.0",
"prisma": "^6.19.3",
"socket.io": "^4.8.3"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
Warnings:

- You are about to drop the column `file` on the `chats` table. All the data in the column will be lost.

*/
-- AlterTable
ALTER TABLE "chats" DROP COLUMN "file",
ADD COLUMN "fileType" TEXT,
ADD COLUMN "fileUrl" TEXT;
3 changes: 2 additions & 1 deletion backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ model Chats {
group_id String @db.Uuid
message String?
name String
file String?
fileUrl String?
fileType String?
created_at DateTime @default(now())

@@index([created_at])
Expand Down
Loading