careerty-prism 1.0.26 → 1.0.28
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,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the `mncategorytransltion` table. If the table is not empty, all the data it contains will be lost.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- DropForeignKey
|
|
8
|
+
ALTER TABLE `mncategorytransltion` DROP FOREIGN KEY `MnCategoryTransltion_categoryId_fkey`;
|
|
9
|
+
|
|
10
|
+
-- DropTable
|
|
11
|
+
DROP TABLE `mncategorytransltion`;
|
|
12
|
+
|
|
13
|
+
-- CreateTable
|
|
14
|
+
CREATE TABLE `MnCategoryTranslation` (
|
|
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 `MnCategoryTranslation` ADD CONSTRAINT `MnCategoryTranslation_categoryId_fkey` FOREIGN KEY (`categoryId`) REFERENCES `MnCategory`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- Added the required column `categoryId` to the `MnProgram` table without a default value. This is not possible if the table is not empty.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE `mnprogram` ADD COLUMN `categoryId` INTEGER NOT NULL;
|
|
9
|
+
|
|
10
|
+
-- AddForeignKey
|
|
11
|
+
ALTER TABLE `MnProgram` ADD CONSTRAINT `MnProgram_categoryId_fkey` FOREIGN KEY (`categoryId`) REFERENCES `MnCategory`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
package/prisma/schema.prisma
CHANGED
|
@@ -568,18 +568,19 @@ model MentorAvailablitySlot {
|
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
model MnCategory {
|
|
571
|
-
id Int
|
|
571
|
+
id Int @id @default(autoincrement())
|
|
572
572
|
name String
|
|
573
|
-
description String
|
|
573
|
+
description String @db.LongText
|
|
574
574
|
icon String
|
|
575
|
-
status Boolean
|
|
576
|
-
permalink String
|
|
577
|
-
isDeleted Boolean
|
|
578
|
-
translations
|
|
575
|
+
status Boolean @default(false)
|
|
576
|
+
permalink String @unique
|
|
577
|
+
isDeleted Boolean @default(false)
|
|
578
|
+
translations MnCategoryTranslation[]
|
|
579
579
|
Mentor Mentor[]
|
|
580
|
+
MnProgram MnProgram[]
|
|
580
581
|
}
|
|
581
582
|
|
|
582
|
-
model
|
|
583
|
+
model MnCategoryTranslation {
|
|
583
584
|
id Int @id @default(autoincrement())
|
|
584
585
|
key String
|
|
585
586
|
value String
|
|
@@ -648,6 +649,7 @@ model MnProgram {
|
|
|
648
649
|
description String @db.LongText
|
|
649
650
|
status Boolean @default(false)
|
|
650
651
|
MnProgramType MnProgramType
|
|
652
|
+
categoryId Int
|
|
651
653
|
folder String
|
|
652
654
|
meetCount Int
|
|
653
655
|
thumbnailId Int
|
|
@@ -657,8 +659,9 @@ model MnProgram {
|
|
|
657
659
|
permalink String @unique
|
|
658
660
|
createdAt DateTime @default(now())
|
|
659
661
|
updatedAt DateTime @updatedAt
|
|
660
|
-
|
|
662
|
+
Category MnCategory @relation(fields: [categoryId], references: [id])
|
|
661
663
|
Thumbnail Upload @relation(fields: [thumbnailId], references: [id])
|
|
664
|
+
MnProgramMentor MnProgramMentor[]
|
|
662
665
|
MnProgramRequest MnProgramRequest[]
|
|
663
666
|
MnProgramPreparation MnProgramPreparation[]
|
|
664
667
|
translations MnProgramTranslation[]
|