careerty-prism 1.0.77 → 1.0.78
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,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `reservationId` on the `MnReservationChat` table. All the data in the column will be lost.
|
|
5
|
+
- Added the required column `mnReservationId` to the `MnReservationChat` table without a default value. This is not possible if the table is not empty.
|
|
6
|
+
|
|
7
|
+
*/
|
|
8
|
+
-- DropForeignKey
|
|
9
|
+
ALTER TABLE `MnReservationChat` DROP FOREIGN KEY `MnReservationChat_reservationId_fkey`;
|
|
10
|
+
|
|
11
|
+
-- AlterTable
|
|
12
|
+
ALTER TABLE `MnReservation` ADD COLUMN `chatId` INTEGER NULL;
|
|
13
|
+
|
|
14
|
+
-- AlterTable
|
|
15
|
+
ALTER TABLE `MnReservationChat` DROP COLUMN `reservationId`,
|
|
16
|
+
ADD COLUMN `mnReservationId` INTEGER NOT NULL;
|
|
17
|
+
|
|
18
|
+
-- AddForeignKey
|
|
19
|
+
ALTER TABLE `MnReservation` ADD CONSTRAINT `MnReservation_chatId_fkey` FOREIGN KEY (`chatId`) REFERENCES `MnReservationChat`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
package/prisma/schema.prisma
CHANGED
|
@@ -806,6 +806,7 @@ model MnReservation {
|
|
|
806
806
|
mentorId Int
|
|
807
807
|
mnProgramId Int
|
|
808
808
|
orderId Int?
|
|
809
|
+
chatId Int?
|
|
809
810
|
permalink String @unique
|
|
810
811
|
createdAt DateTime @default(now())
|
|
811
812
|
updatedAt DateTime @updatedAt
|
|
@@ -814,7 +815,7 @@ model MnReservation {
|
|
|
814
815
|
MnProgram MnProgram @relation(fields: [mnProgramId], references: [id])
|
|
815
816
|
MnReservationSession MnReservationSession[]
|
|
816
817
|
Order Order? @relation(fields: [orderId], references: [id])
|
|
817
|
-
MnReservationChat MnReservationChat[]
|
|
818
|
+
MnReservationChat MnReservationChat? @relation(fields: [chatId], references: [id])
|
|
818
819
|
}
|
|
819
820
|
|
|
820
821
|
model MnReservationSession {
|
|
@@ -831,13 +832,12 @@ model MnReservationSession {
|
|
|
831
832
|
}
|
|
832
833
|
|
|
833
834
|
model MnReservationChat {
|
|
834
|
-
id
|
|
835
|
-
status
|
|
836
|
-
permalink
|
|
837
|
-
|
|
838
|
-
mnReservation MnReservation @relation(fields: [reservationId], references: [id])
|
|
839
|
-
|
|
835
|
+
id Int @id @default(autoincrement())
|
|
836
|
+
status MnReservationChatStatus @default(PENDING)
|
|
837
|
+
permalink String @unique
|
|
838
|
+
mnReservationId Int
|
|
840
839
|
MnReservationChatMessage MnReservationChatMessage[]
|
|
840
|
+
MnReservation MnReservation[]
|
|
841
841
|
}
|
|
842
842
|
|
|
843
843
|
model MnReservationChatMessage {
|