careerty-prism 1.0.27 → 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,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,15 +568,16 @@ 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
|
|
575
|
+
status Boolean @default(false)
|
|
576
|
+
permalink String @unique
|
|
577
|
+
isDeleted Boolean @default(false)
|
|
578
578
|
translations MnCategoryTranslation[]
|
|
579
579
|
Mentor Mentor[]
|
|
580
|
+
MnProgram MnProgram[]
|
|
580
581
|
}
|
|
581
582
|
|
|
582
583
|
model MnCategoryTranslation {
|
|
@@ -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[]
|