careerty-prism 1.0.26 → 1.0.27
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;
|
package/prisma/schema.prisma
CHANGED
|
@@ -575,11 +575,11 @@ model MnCategory {
|
|
|
575
575
|
status Boolean @default(false)
|
|
576
576
|
permalink String @unique
|
|
577
577
|
isDeleted Boolean @default(false)
|
|
578
|
-
translations
|
|
578
|
+
translations MnCategoryTranslation[]
|
|
579
579
|
Mentor Mentor[]
|
|
580
580
|
}
|
|
581
581
|
|
|
582
|
-
model
|
|
582
|
+
model MnCategoryTranslation {
|
|
583
583
|
id Int @id @default(autoincrement())
|
|
584
584
|
key String
|
|
585
585
|
value String
|