careerty-prism 1.0.37 → 1.0.39

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.37",
3
+ "version": "1.0.39",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,11 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `categoryId` on the `Mentor` table. All the data in the column will be lost.
5
+
6
+ */
7
+ -- DropForeignKey
8
+ ALTER TABLE `Mentor` DROP FOREIGN KEY `Mentor_categoryId_fkey`;
9
+
10
+ -- AlterTable
11
+ ALTER TABLE `Mentor` DROP COLUMN `categoryId`;
@@ -0,0 +1,8 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - The values [PRIVATE] on the enum `MnProgram_type` will be removed. If these variants are still used in the database, this will fail.
5
+
6
+ */
7
+ -- AlterTable
8
+ ALTER TABLE `MnProgram` MODIFY `type` ENUM('GROUP', 'ONE_TO_ONE') NOT NULL;
@@ -79,7 +79,7 @@ enum ApprovalRequestState {
79
79
 
80
80
  enum MnProgramType {
81
81
  GROUP
82
- PRIVATE
82
+ ONE_TO_ONE
83
83
  }
84
84
 
85
85
  model Config {
@@ -551,22 +551,17 @@ model Mentor {
551
551
  isFeatured Boolean @default(false)
552
552
  thumbnailId Int
553
553
  userId Int
554
- categoryId Int
555
554
  createdAt DateTime @default(now())
556
555
  updatedAt DateTime @updatedAt
557
556
  user User @relation(fields: [userId], references: [id])
558
557
  thumbnail Upload @relation(fields: [thumbnailId], references: [id])
559
- Category MnCategory @relation(fields: [categoryId], references: [id])
560
558
  MnProgramMentor MnProgramMentor[]
561
559
  MentorAvailablity MentorAvailablity[]
562
560
  UserFavoriteMentor UserFavoriteMentor[]
563
561
  MentorAchievement MentorAchievement[]
564
562
  MentorReview MentorReview[]
565
563
  MentorLanguage MentorLanguage[]
566
- MentorCertificate MentorCertificate[]
567
- // MentorAchivement MentorAchivement[]
568
- // MnProgramMeet MnProgramMeet[]
569
-
564
+ MentorCertificate MentorCertificate[]
570
565
  MnProgramReservation MnProgramReservation[]
571
566
  }
572
567
 
@@ -647,8 +642,6 @@ model MnCategory {
647
642
  permalink String @unique
648
643
  isDeleted Boolean @default(false)
649
644
  translations MnCategoryTranslation[]
650
- Mentor Mentor[]
651
-
652
645
  MnProgramCategory MnProgramCategory[]
653
646
  }
654
647