careerty-prism 1.0.22 → 1.0.24

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.22",
3
+ "version": "1.0.24",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,43 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - Added the required column `categoryId` to the `Mentor` table without a default value. This is not possible if the table is not empty.
5
+ - Added the required column `MnProgramType` to the `MnProgram` table without a default value. This is not possible if the table is not empty.
6
+
7
+ */
8
+ -- AlterTable
9
+ ALTER TABLE `mentor` ADD COLUMN `categoryId` INTEGER NOT NULL;
10
+
11
+ -- AlterTable
12
+ ALTER TABLE `mnprogram` ADD COLUMN `MnProgramType` ENUM('GROUP', 'PRIVATE') NOT NULL;
13
+
14
+ -- CreateTable
15
+ CREATE TABLE `MnCategory` (
16
+ `id` INTEGER NOT NULL AUTO_INCREMENT,
17
+ `name` VARCHAR(191) NOT NULL,
18
+ `description` LONGTEXT NOT NULL,
19
+ `icon` VARCHAR(191) NOT NULL,
20
+ `status` BOOLEAN NOT NULL DEFAULT false,
21
+ `permalink` VARCHAR(191) NOT NULL,
22
+ `isDeleted` BOOLEAN NOT NULL DEFAULT false,
23
+
24
+ UNIQUE INDEX `MnCategory_permalink_key`(`permalink`),
25
+ PRIMARY KEY (`id`)
26
+ ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
27
+
28
+ -- CreateTable
29
+ CREATE TABLE `MnCategoryTranlstion` (
30
+ `id` INTEGER NOT NULL AUTO_INCREMENT,
31
+ `key` VARCHAR(191) NOT NULL,
32
+ `value` VARCHAR(191) NOT NULL,
33
+ `lang` VARCHAR(191) NOT NULL,
34
+ `categoryId` INTEGER NOT NULL,
35
+
36
+ PRIMARY KEY (`id`)
37
+ ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
38
+
39
+ -- AddForeignKey
40
+ ALTER TABLE `Mentor` ADD CONSTRAINT `Mentor_categoryId_fkey` FOREIGN KEY (`categoryId`) REFERENCES `MnCategory`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
41
+
42
+ -- AddForeignKey
43
+ ALTER TABLE `MnCategoryTranlstion` ADD CONSTRAINT `MnCategoryTranlstion_categoryId_fkey` FOREIGN KEY (`categoryId`) REFERENCES `MnCategory`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
@@ -0,0 +1,25 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the `mncategorytranlstion` table. If the table is not empty, all the data it contains will be lost.
5
+
6
+ */
7
+ -- DropForeignKey
8
+ ALTER TABLE `mncategorytranlstion` DROP FOREIGN KEY `MnCategoryTranlstion_categoryId_fkey`;
9
+
10
+ -- DropTable
11
+ DROP TABLE `mncategorytranlstion`;
12
+
13
+ -- CreateTable
14
+ CREATE TABLE `MnCategoryTransltion` (
15
+ `id` INTEGER NOT NULL AUTO_INCREMENT,
16
+ `key` VARCHAR(191) NOT NULL,
17
+ `value` VARCHAR(191) NOT NULL,
18
+ `lang` VARCHAR(191) NOT NULL,
19
+ `categoryId` INTEGER NOT NULL,
20
+
21
+ PRIMARY KEY (`id`)
22
+ ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
23
+
24
+ -- AddForeignKey
25
+ ALTER TABLE `MnCategoryTransltion` ADD CONSTRAINT `MnCategoryTransltion_categoryId_fkey` FOREIGN KEY (`categoryId`) REFERENCES `MnCategory`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
@@ -568,18 +568,18 @@ model MentorAvailablitySlot {
568
568
  }
569
569
 
570
570
  model MnCategory {
571
- id Int @id @default(autoincrement())
572
- name String
573
- description String @db.LongText
574
- icon String
575
- status Boolean @default(false)
576
- permalink String @unique
577
- isDeleted Boolean @default(false)
578
- MnCategoryTranlstion MnCategoryTranlstion[]
579
- Mentor Mentor[]
571
+ id Int @id @default(autoincrement())
572
+ name String
573
+ description String @db.LongText
574
+ icon String
575
+ status Boolean @default(false)
576
+ permalink String @unique
577
+ isDeleted Boolean @default(false)
578
+ translations MnCategoryTransltion[]
579
+ Mentor Mentor[]
580
580
  }
581
581
 
582
- model MnCategoryTranlstion {
582
+ model MnCategoryTransltion {
583
583
  id Int @id @default(autoincrement())
584
584
  key String
585
585
  value String