careerty-prism 1.0.78 → 1.0.80

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": "careerty-prism",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,15 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `isCanceled` on the `MnReservation` table. All the data in the column will be lost.
5
+ - You are about to drop the column `isCompleted` on the `MnReservation` table. All the data in the column will be lost.
6
+ - You are about to drop the column `isInProgress` on the `MnReservation` table. All the data in the column will be lost.
7
+ - You are about to drop the column `isPending` on the `MnReservation` table. All the data in the column will be lost.
8
+
9
+ */
10
+ -- AlterTable
11
+ ALTER TABLE `MnReservation` DROP COLUMN `isCanceled`,
12
+ DROP COLUMN `isCompleted`,
13
+ DROP COLUMN `isInProgress`,
14
+ DROP COLUMN `isPending`,
15
+ ADD COLUMN `status` ENUM('PENDING', 'INPROGRESS', 'ISCOMPLETED', 'ISCANCELED') NOT NULL DEFAULT 'PENDING';
@@ -0,0 +1,8 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - The values [ISCOMPLETED,ISCANCELED] on the enum `MnReservation_status` will be removed. If these variants are still used in the database, this will fail.
5
+
6
+ */
7
+ -- AlterTable
8
+ ALTER TABLE `MnReservation` MODIFY `status` ENUM('PENDING', 'INPROGRESS', 'COMPLETED', 'CANCELED') NOT NULL DEFAULT 'PENDING';
@@ -108,6 +108,13 @@ enum MnReservationMessageType {
108
108
  EMOJI
109
109
  }
110
110
 
111
+ enum MnReservationStatus {
112
+ PENDING
113
+ INPROGRESS
114
+ COMPLETED
115
+ CANCELED
116
+ }
117
+
111
118
  model Config {
112
119
  id Int @id @default(autoincrement())
113
120
  configName String @unique
@@ -798,10 +805,7 @@ model MnProgramSessionPrepareation {
798
805
 
799
806
  model MnReservation {
800
807
  id Int @id @default(autoincrement())
801
- isPending Boolean @default(true)
802
- isInProgress Boolean @default(false)
803
- isCompleted Boolean @default(false)
804
- isCanceled Boolean @default(false)
808
+ status MnReservationStatus @default(PENDING)
805
809
  userId Int
806
810
  mentorId Int
807
811
  mnProgramId Int