careerty-prism 1.0.36 → 1.0.37
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/others/seeder.ts +8 -8
- package/package.json +1 -1
- package/prisma/migrations/20241113171040_/migration.sql +85 -0
- package/prisma/migrations/20241113171428_/migration.sql +8 -0
- package/prisma/migrations/20241113181612_y/migration.sql +18 -0
- package/prisma/migrations/20241126185004_11_27/migration.sql +133 -0
- package/prisma/migrations/20241126185426_11_27/migration.sql +44 -0
- package/prisma/schema.prisma +231 -155
package/others/seeder.ts
CHANGED
|
@@ -397,17 +397,17 @@ async function mentorshipAchievements(tx: any) {
|
|
|
397
397
|
data:[
|
|
398
398
|
{
|
|
399
399
|
name:'10 mentorship hours',
|
|
400
|
-
|
|
400
|
+
score:'0.01',
|
|
401
401
|
thumbnailId:thumbnail.id,
|
|
402
402
|
},
|
|
403
403
|
{
|
|
404
404
|
name:'100 mentorship hours',
|
|
405
|
-
|
|
405
|
+
score:'0.10',
|
|
406
406
|
thumbnailId:thumbnail.id,
|
|
407
407
|
},
|
|
408
408
|
{
|
|
409
409
|
name:'1000 mentorship hours',
|
|
410
|
-
|
|
410
|
+
score:'1.00',
|
|
411
411
|
thumbnailId:thumbnail.id,
|
|
412
412
|
}
|
|
413
413
|
]
|
|
@@ -509,6 +509,7 @@ async function mentors(tx :any) {
|
|
|
509
509
|
thumbnailId: thumbnail.id,
|
|
510
510
|
userId: user.id,
|
|
511
511
|
status:true,
|
|
512
|
+
|
|
512
513
|
}
|
|
513
514
|
});
|
|
514
515
|
|
|
@@ -529,13 +530,12 @@ async function mentors(tx :any) {
|
|
|
529
530
|
}
|
|
530
531
|
}
|
|
531
532
|
})
|
|
532
|
-
});
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
achivements.forEach(async (achivement: { id: any; }) => {
|
|
533
|
+
});
|
|
534
|
+
const achievements = await tx.mentorshipAchievement.findMany({});
|
|
535
|
+
achievements.forEach(async (achievement: { id: any; }) => {
|
|
536
536
|
await tx.mentorAchievement.create({
|
|
537
537
|
data:{
|
|
538
|
-
|
|
538
|
+
achievementId:achievement.id,
|
|
539
539
|
mentorId:mentor.id
|
|
540
540
|
}
|
|
541
541
|
})
|
package/package.json
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `points` on the `MentorshipAchievement` table. All the data in the column will be lost.
|
|
5
|
+
- Added the required column `is_featured` to the `Mentor` table without a default value. This is not possible if the table is not empty.
|
|
6
|
+
- Added the required column `score` to the `MentorshipAchievement` table without a default value. This is not possible if the table is not empty.
|
|
7
|
+
|
|
8
|
+
*/
|
|
9
|
+
-- AlterTable
|
|
10
|
+
ALTER TABLE `Mentor` ADD COLUMN `isFeatured` BOOLEAN NOT NULL DEFAULT false,
|
|
11
|
+
ADD COLUMN `is_featured` BOOLEAN NOT NULL;
|
|
12
|
+
|
|
13
|
+
-- AlterTable
|
|
14
|
+
ALTER TABLE `MentorshipAchievement` DROP COLUMN `points`,
|
|
15
|
+
ADD COLUMN `score` VARCHAR(191) NOT NULL;
|
|
16
|
+
|
|
17
|
+
-- CreateTable
|
|
18
|
+
CREATE TABLE `MentorLanguage` (
|
|
19
|
+
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
20
|
+
`languageId` INTEGER NOT NULL,
|
|
21
|
+
`mentorId` INTEGER NOT NULL,
|
|
22
|
+
|
|
23
|
+
PRIMARY KEY (`id`)
|
|
24
|
+
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
25
|
+
|
|
26
|
+
-- CreateTable
|
|
27
|
+
CREATE TABLE `MentorReview` (
|
|
28
|
+
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
29
|
+
`description` VARCHAR(191) NOT NULL,
|
|
30
|
+
`rating` INTEGER NOT NULL,
|
|
31
|
+
`userId` INTEGER NOT NULL,
|
|
32
|
+
`mentorId` INTEGER NOT NULL,
|
|
33
|
+
|
|
34
|
+
PRIMARY KEY (`id`)
|
|
35
|
+
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
36
|
+
|
|
37
|
+
-- CreateTable
|
|
38
|
+
CREATE TABLE `MentorCertificate` (
|
|
39
|
+
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
40
|
+
`mentorId` INTEGER NOT NULL,
|
|
41
|
+
`name` VARCHAR(191) NOT NULL,
|
|
42
|
+
`description` VARCHAR(191) NULL,
|
|
43
|
+
`link` VARCHAR(191) NULL,
|
|
44
|
+
|
|
45
|
+
PRIMARY KEY (`id`)
|
|
46
|
+
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
47
|
+
|
|
48
|
+
-- CreateTable
|
|
49
|
+
CREATE TABLE `LanguageRepo` (
|
|
50
|
+
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
51
|
+
`name` VARCHAR(191) NOT NULL,
|
|
52
|
+
`status` BOOLEAN NOT NULL DEFAULT false,
|
|
53
|
+
`isDeleted` BOOLEAN NOT NULL DEFAULT false,
|
|
54
|
+
|
|
55
|
+
PRIMARY KEY (`id`)
|
|
56
|
+
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
57
|
+
|
|
58
|
+
-- CreateTable
|
|
59
|
+
CREATE TABLE `LanguageRepoTranslation` (
|
|
60
|
+
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
61
|
+
`key` VARCHAR(191) NOT NULL,
|
|
62
|
+
`value` VARCHAR(191) NOT NULL,
|
|
63
|
+
`lang` VARCHAR(191) NOT NULL,
|
|
64
|
+
`langRepoId` INTEGER NOT NULL,
|
|
65
|
+
|
|
66
|
+
PRIMARY KEY (`id`)
|
|
67
|
+
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
68
|
+
|
|
69
|
+
-- AddForeignKey
|
|
70
|
+
ALTER TABLE `MentorLanguage` ADD CONSTRAINT `MentorLanguage_languageId_fkey` FOREIGN KEY (`languageId`) REFERENCES `LanguageRepo`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
71
|
+
|
|
72
|
+
-- AddForeignKey
|
|
73
|
+
ALTER TABLE `MentorLanguage` ADD CONSTRAINT `MentorLanguage_mentorId_fkey` FOREIGN KEY (`mentorId`) REFERENCES `Mentor`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
74
|
+
|
|
75
|
+
-- AddForeignKey
|
|
76
|
+
ALTER TABLE `MentorReview` ADD CONSTRAINT `MentorReview_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `User`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
77
|
+
|
|
78
|
+
-- AddForeignKey
|
|
79
|
+
ALTER TABLE `MentorReview` ADD CONSTRAINT `MentorReview_mentorId_fkey` FOREIGN KEY (`mentorId`) REFERENCES `Mentor`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
80
|
+
|
|
81
|
+
-- AddForeignKey
|
|
82
|
+
ALTER TABLE `MentorCertificate` ADD CONSTRAINT `MentorCertificate_mentorId_fkey` FOREIGN KEY (`mentorId`) REFERENCES `Mentor`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
83
|
+
|
|
84
|
+
-- AddForeignKey
|
|
85
|
+
ALTER TABLE `LanguageRepoTranslation` ADD CONSTRAINT `LanguageRepoTranslation_langRepoId_fkey` FOREIGN KEY (`langRepoId`) REFERENCES `LanguageRepo`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `achivementId` on the `MentorAchievement` table. All the data in the column will be lost.
|
|
5
|
+
- You are about to drop the column `uploadId` on the `MentorAchievement` table. All the data in the column will be lost.
|
|
6
|
+
- Added the required column `achievementId` to the `MentorAchievement` table without a default value. This is not possible if the table is not empty.
|
|
7
|
+
|
|
8
|
+
*/
|
|
9
|
+
-- DropForeignKey
|
|
10
|
+
ALTER TABLE `MentorAchievement` DROP FOREIGN KEY `MentorAchievement_achivementId_fkey`;
|
|
11
|
+
|
|
12
|
+
-- AlterTable
|
|
13
|
+
ALTER TABLE `MentorAchievement` DROP COLUMN `achivementId`,
|
|
14
|
+
DROP COLUMN `uploadId`,
|
|
15
|
+
ADD COLUMN `achievementId` INTEGER NOT NULL;
|
|
16
|
+
|
|
17
|
+
-- AddForeignKey
|
|
18
|
+
ALTER TABLE `MentorAchievement` ADD CONSTRAINT `MentorAchievement_achievementId_fkey` FOREIGN KEY (`achievementId`) REFERENCES `MentorshipAchievement`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `categoryId` on the `MnProgram` table. All the data in the column will be lost.
|
|
5
|
+
- You are about to drop the `MnProgramPreparation` table. If the table is not empty, all the data it contains will be lost.
|
|
6
|
+
- You are about to drop the `MnProgramPreparationAttachment` table. If the table is not empty, all the data it contains will be lost.
|
|
7
|
+
- You are about to drop the `MnProgramRequest` table. If the table is not empty, all the data it contains will be lost.
|
|
8
|
+
- You are about to drop the `MnProgramRequestAvailablity` table. If the table is not empty, all the data it contains will be lost.
|
|
9
|
+
- You are about to drop the `MnProgramRequestAvailablitySlot` table. If the table is not empty, all the data it contains will be lost.
|
|
10
|
+
- You are about to drop the `MnProgramRequestLecture` table. If the table is not empty, all the data it contains will be lost.
|
|
11
|
+
- You are about to drop the `MnProgramRequestLectureSession` table. If the table is not empty, all the data it contains will be lost.
|
|
12
|
+
- You are about to drop the `MnProgramRequestLectureSessionAttachment` table. If the table is not empty, all the data it contains will be lost.
|
|
13
|
+
|
|
14
|
+
*/
|
|
15
|
+
-- DropForeignKey
|
|
16
|
+
ALTER TABLE `MnProgram` DROP FOREIGN KEY `MnProgram_categoryId_fkey`;
|
|
17
|
+
|
|
18
|
+
-- DropForeignKey
|
|
19
|
+
ALTER TABLE `MnProgramPreparation` DROP FOREIGN KEY `MnProgramPreparation_mnProgramId_fkey`;
|
|
20
|
+
|
|
21
|
+
-- DropForeignKey
|
|
22
|
+
ALTER TABLE `MnProgramPreparationAttachment` DROP FOREIGN KEY `MnProgramPreparationAttachment_attachmentId_fkey`;
|
|
23
|
+
|
|
24
|
+
-- DropForeignKey
|
|
25
|
+
ALTER TABLE `MnProgramPreparationAttachment` DROP FOREIGN KEY `MnProgramPreparationAttachment_mnProgramPreparationId_fkey`;
|
|
26
|
+
|
|
27
|
+
-- DropForeignKey
|
|
28
|
+
ALTER TABLE `MnProgramRequest` DROP FOREIGN KEY `MnProgramRequest_mentorId_fkey`;
|
|
29
|
+
|
|
30
|
+
-- DropForeignKey
|
|
31
|
+
ALTER TABLE `MnProgramRequest` DROP FOREIGN KEY `MnProgramRequest_mnProgramId_fkey`;
|
|
32
|
+
|
|
33
|
+
-- DropForeignKey
|
|
34
|
+
ALTER TABLE `MnProgramRequest` DROP FOREIGN KEY `MnProgramRequest_orderId_fkey`;
|
|
35
|
+
|
|
36
|
+
-- DropForeignKey
|
|
37
|
+
ALTER TABLE `MnProgramRequest` DROP FOREIGN KEY `MnProgramRequest_userId_fkey`;
|
|
38
|
+
|
|
39
|
+
-- DropForeignKey
|
|
40
|
+
ALTER TABLE `MnProgramRequestAvailablity` DROP FOREIGN KEY `MnProgramRequestAvailablity_mnProgramRequestId_fkey`;
|
|
41
|
+
|
|
42
|
+
-- DropForeignKey
|
|
43
|
+
ALTER TABLE `MnProgramRequestAvailablitySlot` DROP FOREIGN KEY `MnProgramRequestAvailablitySlot_mnProgramRequestAvailablity_fkey`;
|
|
44
|
+
|
|
45
|
+
-- DropForeignKey
|
|
46
|
+
ALTER TABLE `MnProgramRequestLecture` DROP FOREIGN KEY `MnProgramRequestLecture_mnProgramRequestId_fkey`;
|
|
47
|
+
|
|
48
|
+
-- DropForeignKey
|
|
49
|
+
ALTER TABLE `MnProgramRequestLectureSession` DROP FOREIGN KEY `MnProgramRequestLectureSession_mnProgramRequestAvailablityS_fkey`;
|
|
50
|
+
|
|
51
|
+
-- DropForeignKey
|
|
52
|
+
ALTER TABLE `MnProgramRequestLectureSession` DROP FOREIGN KEY `MnProgramRequestLectureSession_mnProgramRequestLectureId_fkey`;
|
|
53
|
+
|
|
54
|
+
-- DropForeignKey
|
|
55
|
+
ALTER TABLE `MnProgramRequestLectureSessionAttachment` DROP FOREIGN KEY `MnProgramRequestLectureSessionAttachment_mnProgramRequestLe_fkey`;
|
|
56
|
+
|
|
57
|
+
-- DropForeignKey
|
|
58
|
+
ALTER TABLE `MnProgramRequestLectureSessionAttachment` DROP FOREIGN KEY `MnProgramRequestLectureSessionAttachment_uploadId_fkey`;
|
|
59
|
+
|
|
60
|
+
-- AlterTable
|
|
61
|
+
ALTER TABLE `MnProgram` DROP COLUMN `categoryId`;
|
|
62
|
+
|
|
63
|
+
-- DropTable
|
|
64
|
+
DROP TABLE `MnProgramPreparation`;
|
|
65
|
+
|
|
66
|
+
-- DropTable
|
|
67
|
+
DROP TABLE `MnProgramPreparationAttachment`;
|
|
68
|
+
|
|
69
|
+
-- DropTable
|
|
70
|
+
DROP TABLE `MnProgramRequest`;
|
|
71
|
+
|
|
72
|
+
-- DropTable
|
|
73
|
+
DROP TABLE `MnProgramRequestAvailablity`;
|
|
74
|
+
|
|
75
|
+
-- DropTable
|
|
76
|
+
DROP TABLE `MnProgramRequestAvailablitySlot`;
|
|
77
|
+
|
|
78
|
+
-- DropTable
|
|
79
|
+
DROP TABLE `MnProgramRequestLecture`;
|
|
80
|
+
|
|
81
|
+
-- DropTable
|
|
82
|
+
DROP TABLE `MnProgramRequestLectureSession`;
|
|
83
|
+
|
|
84
|
+
-- DropTable
|
|
85
|
+
DROP TABLE `MnProgramRequestLectureSessionAttachment`;
|
|
86
|
+
|
|
87
|
+
-- CreateTable
|
|
88
|
+
CREATE TABLE `MnProgramCategory` (
|
|
89
|
+
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
90
|
+
`categoryId` INTEGER NOT NULL,
|
|
91
|
+
`mnProgramId` INTEGER NOT NULL,
|
|
92
|
+
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
93
|
+
`updatedAt` DATETIME(3) NOT NULL,
|
|
94
|
+
|
|
95
|
+
PRIMARY KEY (`id`)
|
|
96
|
+
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
97
|
+
|
|
98
|
+
-- CreateTable
|
|
99
|
+
CREATE TABLE `MnProgramReservation` (
|
|
100
|
+
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
101
|
+
`isPending` BOOLEAN NOT NULL DEFAULT false,
|
|
102
|
+
`isInProgress` BOOLEAN NOT NULL DEFAULT false,
|
|
103
|
+
`isCompleted` BOOLEAN NOT NULL DEFAULT false,
|
|
104
|
+
`isCanceled` BOOLEAN NOT NULL DEFAULT false,
|
|
105
|
+
`userId` INTEGER NOT NULL,
|
|
106
|
+
`mentorId` INTEGER NULL,
|
|
107
|
+
`mnProgramId` INTEGER NOT NULL,
|
|
108
|
+
`orderId` INTEGER NOT NULL,
|
|
109
|
+
`permalink` VARCHAR(191) NOT NULL,
|
|
110
|
+
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
111
|
+
`updatedAt` DATETIME(3) NOT NULL,
|
|
112
|
+
|
|
113
|
+
UNIQUE INDEX `MnProgramReservation_permalink_key`(`permalink`),
|
|
114
|
+
PRIMARY KEY (`id`)
|
|
115
|
+
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
116
|
+
|
|
117
|
+
-- AddForeignKey
|
|
118
|
+
ALTER TABLE `MnProgramCategory` ADD CONSTRAINT `MnProgramCategory_categoryId_fkey` FOREIGN KEY (`categoryId`) REFERENCES `MnCategory`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
119
|
+
|
|
120
|
+
-- AddForeignKey
|
|
121
|
+
ALTER TABLE `MnProgramCategory` ADD CONSTRAINT `MnProgramCategory_mnProgramId_fkey` FOREIGN KEY (`mnProgramId`) REFERENCES `MnProgram`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
122
|
+
|
|
123
|
+
-- AddForeignKey
|
|
124
|
+
ALTER TABLE `MnProgramReservation` ADD CONSTRAINT `MnProgramReservation_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `User`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
125
|
+
|
|
126
|
+
-- AddForeignKey
|
|
127
|
+
ALTER TABLE `MnProgramReservation` ADD CONSTRAINT `MnProgramReservation_mentorId_fkey` FOREIGN KEY (`mentorId`) REFERENCES `Mentor`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
128
|
+
|
|
129
|
+
-- AddForeignKey
|
|
130
|
+
ALTER TABLE `MnProgramReservation` ADD CONSTRAINT `MnProgramReservation_mnProgramId_fkey` FOREIGN KEY (`mnProgramId`) REFERENCES `MnProgram`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
131
|
+
|
|
132
|
+
-- AddForeignKey
|
|
133
|
+
ALTER TABLE `MnProgramReservation` ADD CONSTRAINT `MnProgramReservation_orderId_fkey` FOREIGN KEY (`orderId`) REFERENCES `Order`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the `Service` table. If the table is not empty, all the data it contains will be lost.
|
|
5
|
+
- You are about to drop the `ServiceMentor` table. If the table is not empty, all the data it contains will be lost.
|
|
6
|
+
- You are about to drop the `ServiceRequest` table. If the table is not empty, all the data it contains will be lost.
|
|
7
|
+
- You are about to drop the `ServiceTranlstion` table. If the table is not empty, all the data it contains will be lost.
|
|
8
|
+
|
|
9
|
+
*/
|
|
10
|
+
-- DropForeignKey
|
|
11
|
+
ALTER TABLE `Service` DROP FOREIGN KEY `Service_thumbnailId_fkey`;
|
|
12
|
+
|
|
13
|
+
-- DropForeignKey
|
|
14
|
+
ALTER TABLE `ServiceMentor` DROP FOREIGN KEY `ServiceMentor_mentorId_fkey`;
|
|
15
|
+
|
|
16
|
+
-- DropForeignKey
|
|
17
|
+
ALTER TABLE `ServiceMentor` DROP FOREIGN KEY `ServiceMentor_serviceId_fkey`;
|
|
18
|
+
|
|
19
|
+
-- DropForeignKey
|
|
20
|
+
ALTER TABLE `ServiceRequest` DROP FOREIGN KEY `ServiceRequest_mentorId_fkey`;
|
|
21
|
+
|
|
22
|
+
-- DropForeignKey
|
|
23
|
+
ALTER TABLE `ServiceRequest` DROP FOREIGN KEY `ServiceRequest_orderId_fkey`;
|
|
24
|
+
|
|
25
|
+
-- DropForeignKey
|
|
26
|
+
ALTER TABLE `ServiceRequest` DROP FOREIGN KEY `ServiceRequest_serviceId_fkey`;
|
|
27
|
+
|
|
28
|
+
-- DropForeignKey
|
|
29
|
+
ALTER TABLE `ServiceRequest` DROP FOREIGN KEY `ServiceRequest_userId_fkey`;
|
|
30
|
+
|
|
31
|
+
-- DropForeignKey
|
|
32
|
+
ALTER TABLE `ServiceTranlstion` DROP FOREIGN KEY `ServiceTranlstion_serviceId_fkey`;
|
|
33
|
+
|
|
34
|
+
-- DropTable
|
|
35
|
+
DROP TABLE `Service`;
|
|
36
|
+
|
|
37
|
+
-- DropTable
|
|
38
|
+
DROP TABLE `ServiceMentor`;
|
|
39
|
+
|
|
40
|
+
-- DropTable
|
|
41
|
+
DROP TABLE `ServiceRequest`;
|
|
42
|
+
|
|
43
|
+
-- DropTable
|
|
44
|
+
DROP TABLE `ServiceTranlstion`;
|
package/prisma/schema.prisma
CHANGED
|
@@ -106,11 +106,9 @@ model User {
|
|
|
106
106
|
updatedAt DateTime @updatedAt
|
|
107
107
|
subscriptions Subscription[]
|
|
108
108
|
cvs CV[]
|
|
109
|
-
cls CL[]
|
|
110
|
-
ServiceRequest ServiceRequest[]
|
|
109
|
+
cls CL[]
|
|
111
110
|
Mentor Mentor[]
|
|
112
111
|
UserMeta UserMeta[]
|
|
113
|
-
MnProgramRequest MnProgramRequest[]
|
|
114
112
|
Order Order[]
|
|
115
113
|
UserCoupon UserCoupon[]
|
|
116
114
|
Referral Referral? @relation(fields: [referralId], references: [id])
|
|
@@ -118,6 +116,10 @@ model User {
|
|
|
118
116
|
AiCvChat AiCvChat[]
|
|
119
117
|
|
|
120
118
|
UserFavoriteMentor UserFavoriteMentor[]
|
|
119
|
+
|
|
120
|
+
MentorReview MentorReview[]
|
|
121
|
+
|
|
122
|
+
MnProgramReservation MnProgramReservation[]
|
|
121
123
|
}
|
|
122
124
|
|
|
123
125
|
model UserMeta {
|
|
@@ -546,6 +548,7 @@ model Mentor {
|
|
|
546
548
|
status Boolean @default(false)
|
|
547
549
|
isDeleted Boolean @default(false)
|
|
548
550
|
isBanned Boolean @default(false)
|
|
551
|
+
isFeatured Boolean @default(false)
|
|
549
552
|
thumbnailId Int
|
|
550
553
|
userId Int
|
|
551
554
|
categoryId Int
|
|
@@ -554,16 +557,17 @@ model Mentor {
|
|
|
554
557
|
user User @relation(fields: [userId], references: [id])
|
|
555
558
|
thumbnail Upload @relation(fields: [thumbnailId], references: [id])
|
|
556
559
|
Category MnCategory @relation(fields: [categoryId], references: [id])
|
|
557
|
-
ServiceMentor ServiceMentor[]
|
|
558
|
-
ServiceRequest ServiceRequest[]
|
|
559
560
|
MnProgramMentor MnProgramMentor[]
|
|
560
|
-
MnProgramRequest MnProgramRequest[]
|
|
561
561
|
MentorAvailablity MentorAvailablity[]
|
|
562
562
|
UserFavoriteMentor UserFavoriteMentor[]
|
|
563
563
|
MentorAchievement MentorAchievement[]
|
|
564
|
+
MentorReview MentorReview[]
|
|
565
|
+
MentorLanguage MentorLanguage[]
|
|
566
|
+
MentorCertificate MentorCertificate[]
|
|
564
567
|
// MentorAchivement MentorAchivement[]
|
|
565
568
|
// MnProgramMeet MnProgramMeet[]
|
|
566
569
|
|
|
570
|
+
MnProgramReservation MnProgramReservation[]
|
|
567
571
|
}
|
|
568
572
|
|
|
569
573
|
model MentorAvailablity {
|
|
@@ -575,32 +579,65 @@ model MentorAvailablity {
|
|
|
575
579
|
slots MentorAvailablitySlot[]
|
|
576
580
|
}
|
|
577
581
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
582
|
+
|
|
583
|
+
model MentorAvailablitySlot {
|
|
584
|
+
id Int @id @default(autoincrement())
|
|
585
|
+
start String?
|
|
586
|
+
end String?
|
|
587
|
+
mentorAvailablityId Int
|
|
588
|
+
MentorAvailablity MentorAvailablity @relation(fields: [mentorAvailablityId], references: [id])
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
model MentorLanguage {
|
|
593
|
+
id Int @id @default(autoincrement())
|
|
594
|
+
languageId Int
|
|
595
|
+
language LanguageRepo @relation(fields: [languageId], references: [id])
|
|
596
|
+
mentorId Int
|
|
597
|
+
Mentor Mentor @relation(fields: [mentorId], references: [id])
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
model MentorReview {
|
|
601
|
+
id Int @id @default(autoincrement())
|
|
602
|
+
description String
|
|
603
|
+
rating Int
|
|
604
|
+
userId Int
|
|
605
|
+
User User @relation(fields: [userId], references: [id])
|
|
606
|
+
mentorId Int
|
|
607
|
+
Mentor Mentor @relation(fields: [mentorId], references: [id])
|
|
608
|
+
|
|
609
|
+
|
|
585
610
|
}
|
|
586
611
|
|
|
587
612
|
model MentorAchievement {
|
|
588
613
|
id Int @id @default(autoincrement())
|
|
589
614
|
mentorId Int
|
|
590
|
-
|
|
591
|
-
Achivement MentorshipAchievement @relation(fields: [
|
|
615
|
+
achievementId Int
|
|
616
|
+
Achivement MentorshipAchievement @relation(fields: [achievementId], references: [id])
|
|
592
617
|
Mentor Mentor @relation(fields: [mentorId], references: [id])
|
|
593
|
-
uploadId Int?
|
|
594
618
|
}
|
|
595
619
|
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
620
|
+
|
|
621
|
+
model MentorCertificate {
|
|
622
|
+
id Int @id @default(autoincrement())
|
|
623
|
+
mentorId Int
|
|
624
|
+
name String
|
|
625
|
+
description String?
|
|
626
|
+
link String?
|
|
627
|
+
Mentor Mentor @relation(fields: [mentorId], references: [id])
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
model MentorshipAchievement {
|
|
632
|
+
id Int @id @default(autoincrement())
|
|
633
|
+
name String
|
|
634
|
+
score String
|
|
635
|
+
thumbnailId Int
|
|
636
|
+
thumbnail Upload @relation(fields: [thumbnailId], references: [id])
|
|
637
|
+
MentorAchievement MentorAchievement[]
|
|
602
638
|
}
|
|
603
639
|
|
|
640
|
+
|
|
604
641
|
model MnCategory {
|
|
605
642
|
id Int @id @default(autoincrement())
|
|
606
643
|
name String
|
|
@@ -611,7 +648,8 @@ model MnCategory {
|
|
|
611
648
|
isDeleted Boolean @default(false)
|
|
612
649
|
translations MnCategoryTranslation[]
|
|
613
650
|
Mentor Mentor[]
|
|
614
|
-
|
|
651
|
+
|
|
652
|
+
MnProgramCategory MnProgramCategory[]
|
|
615
653
|
}
|
|
616
654
|
|
|
617
655
|
model MnCategoryTranslation {
|
|
@@ -623,59 +661,6 @@ model MnCategoryTranslation {
|
|
|
623
661
|
Category MnCategory @relation(fields: [categoryId], references: [id])
|
|
624
662
|
}
|
|
625
663
|
|
|
626
|
-
model Service {
|
|
627
|
-
id Int @id @default(autoincrement())
|
|
628
|
-
name String
|
|
629
|
-
description String @db.LongText
|
|
630
|
-
fullPrice Int
|
|
631
|
-
commission Int
|
|
632
|
-
status Boolean @default(false)
|
|
633
|
-
thumbnailId Int
|
|
634
|
-
permalink String @unique
|
|
635
|
-
isDeleted Boolean @default(false)
|
|
636
|
-
Thumbnail Upload @relation(fields: [thumbnailId], references: [id])
|
|
637
|
-
translations ServiceTranlstion[]
|
|
638
|
-
ServiceMentor ServiceMentor[]
|
|
639
|
-
ServiceRequest ServiceRequest[]
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
model ServiceTranlstion {
|
|
643
|
-
id Int @id @default(autoincrement())
|
|
644
|
-
key String
|
|
645
|
-
value String
|
|
646
|
-
lang String
|
|
647
|
-
serviceId Int
|
|
648
|
-
Service Service @relation(fields: [serviceId], references: [id])
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
model ServiceMentor {
|
|
652
|
-
id Int @id @default(autoincrement())
|
|
653
|
-
mentorId Int
|
|
654
|
-
serviceId Int
|
|
655
|
-
Mentor Mentor @relation(fields: [mentorId], references: [id])
|
|
656
|
-
Service Service @relation(fields: [serviceId], references: [id])
|
|
657
|
-
createdAt DateTime @default(now())
|
|
658
|
-
updatedAt DateTime @updatedAt
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
model ServiceRequest {
|
|
662
|
-
id Int @id @default(autoincrement())
|
|
663
|
-
isPending Boolean @default(true)
|
|
664
|
-
isInProgress Boolean @default(false)
|
|
665
|
-
isCompleted Boolean @default(false)
|
|
666
|
-
isCanceled Boolean @default(false)
|
|
667
|
-
userId Int
|
|
668
|
-
mentorId Int?
|
|
669
|
-
serviceId Int
|
|
670
|
-
orderId Int
|
|
671
|
-
permalink String @unique
|
|
672
|
-
Service Service @relation(fields: [serviceId], references: [id])
|
|
673
|
-
Order Order @relation(fields: [orderId], references: [id])
|
|
674
|
-
User User @relation(fields: [userId], references: [id])
|
|
675
|
-
mentor Mentor? @relation(fields: [mentorId], references: [id])
|
|
676
|
-
createdAt DateTime @default(now())
|
|
677
|
-
updatedAt DateTime @updatedAt
|
|
678
|
-
}
|
|
679
664
|
|
|
680
665
|
model MnProgram {
|
|
681
666
|
id Int @id @default(autoincrement())
|
|
@@ -683,7 +668,6 @@ model MnProgram {
|
|
|
683
668
|
description String @db.LongText
|
|
684
669
|
status Boolean @default(false)
|
|
685
670
|
type MnProgramType
|
|
686
|
-
categoryId Int
|
|
687
671
|
folder String
|
|
688
672
|
meetCount Int
|
|
689
673
|
thumbnailId Int
|
|
@@ -692,13 +676,12 @@ model MnProgram {
|
|
|
692
676
|
isDeleted Boolean @default(false)
|
|
693
677
|
permalink String @unique
|
|
694
678
|
createdAt DateTime @default(now())
|
|
695
|
-
updatedAt DateTime @updatedAt
|
|
696
|
-
Category MnCategory @relation(fields: [categoryId], references: [id])
|
|
679
|
+
updatedAt DateTime @updatedAt
|
|
697
680
|
Thumbnail Upload @relation(fields: [thumbnailId], references: [id])
|
|
698
681
|
MnProgramMentor MnProgramMentor[]
|
|
699
|
-
|
|
700
|
-
MnProgramPreparation MnProgramPreparation[]
|
|
682
|
+
MnProgramCategory MnProgramCategory[]
|
|
701
683
|
translations MnProgramTranslation[]
|
|
684
|
+
MnProgramReservation MnProgramReservation[]
|
|
702
685
|
}
|
|
703
686
|
|
|
704
687
|
model MnProgramMentor {
|
|
@@ -711,6 +694,21 @@ model MnProgramMentor {
|
|
|
711
694
|
mnProgramId Int
|
|
712
695
|
}
|
|
713
696
|
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
model MnProgramCategory {
|
|
700
|
+
id Int @id @default(autoincrement())
|
|
701
|
+
categoryId Int
|
|
702
|
+
mnProgramId Int
|
|
703
|
+
Category MnCategory @relation(fields: [categoryId], references: [id])
|
|
704
|
+
MnProgram MnProgram @relation(fields: [mnProgramId], references: [id])
|
|
705
|
+
createdAt DateTime @default(now())
|
|
706
|
+
updatedAt DateTime @updatedAt
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
|
|
714
712
|
model MnProgramTranslation {
|
|
715
713
|
id Int @id @default(autoincrement())
|
|
716
714
|
key String
|
|
@@ -720,26 +718,8 @@ model MnProgramTranslation {
|
|
|
720
718
|
mnProgramId Int
|
|
721
719
|
}
|
|
722
720
|
|
|
723
|
-
model MnProgramPreparation {
|
|
724
|
-
id Int @id @default(autoincrement())
|
|
725
|
-
name String
|
|
726
|
-
mnProgramMeetId Int
|
|
727
|
-
folder String
|
|
728
|
-
mnProgramId Int
|
|
729
|
-
MnProgram MnProgram @relation(fields: [mnProgramId], references: [id])
|
|
730
|
-
MnProgramPreparationAttachment MnProgramPreparationAttachment[]
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
model MnProgramPreparationAttachment {
|
|
734
|
-
id Int @id @default(autoincrement())
|
|
735
|
-
name String
|
|
736
|
-
mnProgramPreparationId Int
|
|
737
|
-
attachmentId Int
|
|
738
|
-
PreparationAttachment Upload @relation(fields: [attachmentId], references: [id])
|
|
739
|
-
MnProgramPreparation MnProgramPreparation @relation(fields: [mnProgramPreparationId], references: [id])
|
|
740
|
-
}
|
|
741
721
|
|
|
742
|
-
model
|
|
722
|
+
model MnProgramReservation {
|
|
743
723
|
id Int @id @default(autoincrement())
|
|
744
724
|
isPending Boolean @default(false)
|
|
745
725
|
isInProgress Boolean @default(false)
|
|
@@ -756,55 +736,7 @@ model MnProgramRequest {
|
|
|
756
736
|
Mentor Mentor? @relation(fields: [mentorId], references: [id])
|
|
757
737
|
MnProgram MnProgram @relation(fields: [mnProgramId], references: [id])
|
|
758
738
|
Order Order @relation(fields: [orderId], references: [id])
|
|
759
|
-
MnProgramRequestAvailablity MnProgramRequestAvailablity[]
|
|
760
|
-
MnProgramRequestLecture MnProgramRequestLecture[]
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
model MnProgramRequestAvailablity {
|
|
764
|
-
id Int @id @default(autoincrement())
|
|
765
|
-
day String
|
|
766
|
-
mnProgramRequestId Int
|
|
767
|
-
slots MnProgramRequestAvailablitySlot[]
|
|
768
|
-
MnProgramRequest MnProgramRequest @relation(fields: [mnProgramRequestId], references: [id])
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
model MnProgramRequestAvailablitySlot {
|
|
772
|
-
id Int @id @default(autoincrement())
|
|
773
|
-
start String
|
|
774
|
-
end String
|
|
775
|
-
mnProgramRequestAvailablityId Int
|
|
776
|
-
MnProgramRequestAvailablity MnProgramRequestAvailablity @relation(fields: [mnProgramRequestAvailablityId], references: [id])
|
|
777
|
-
MnProgramRequestLectureSession MnProgramRequestLectureSession[]
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
model MnProgramRequestLecture {
|
|
781
|
-
id Int @id @default(autoincrement())
|
|
782
|
-
status MnProgramRequestLectureStatus @default(PENDING)
|
|
783
|
-
at DateTime?
|
|
784
|
-
mnProgramRequestId Int
|
|
785
|
-
mnProgramRequest MnProgramRequest @relation(fields: [mnProgramRequestId], references: [id])
|
|
786
|
-
MnProgramRequestLectureSession MnProgramRequestLectureSession[]
|
|
787
|
-
}
|
|
788
739
|
|
|
789
|
-
model MnProgramRequestLectureSession {
|
|
790
|
-
id Int @id @default(autoincrement())
|
|
791
|
-
permalink String @unique
|
|
792
|
-
mnProgramRequestAvailablitySlotId Int
|
|
793
|
-
mnProgramRequestLectureId Int
|
|
794
|
-
createdAt DateTime @default(now())
|
|
795
|
-
updatedAt DateTime @updatedAt
|
|
796
|
-
MnProgramRequestAvailablitySlot MnProgramRequestAvailablitySlot @relation(fields: [mnProgramRequestAvailablitySlotId], references: [id])
|
|
797
|
-
MnProgramRequestLecture MnProgramRequestLecture @relation(fields: [mnProgramRequestLectureId], references: [id])
|
|
798
|
-
MnProgramRequestLectureSessionAttachment MnProgramRequestLectureSessionAttachment[]
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
model MnProgramRequestLectureSessionAttachment {
|
|
802
|
-
id Int @id @default(autoincrement())
|
|
803
|
-
uploadId Int
|
|
804
|
-
mnProgramRequestLectureSessionId Int
|
|
805
|
-
by String
|
|
806
|
-
MnProgramRequestLectureSession MnProgramRequestLectureSession @relation(fields: [mnProgramRequestLectureSessionId], references: [id])
|
|
807
|
-
Upload Upload @relation(fields: [uploadId], references: [id])
|
|
808
740
|
}
|
|
809
741
|
|
|
810
742
|
model Upload {
|
|
@@ -816,14 +748,11 @@ model Upload {
|
|
|
816
748
|
modelId Int
|
|
817
749
|
model String
|
|
818
750
|
Mentor Mentor[]
|
|
819
|
-
Template Template[]
|
|
820
|
-
Service Service[]
|
|
751
|
+
Template Template[]
|
|
821
752
|
createdAt DateTime @default(now())
|
|
822
753
|
updatedAt DateTime @updatedAt
|
|
823
754
|
FontRepo FontRepo[]
|
|
824
|
-
MnProgram MnProgram[]
|
|
825
|
-
MnProgramPreparationAttachment MnProgramPreparationAttachment[]
|
|
826
|
-
MnProgramRequestLectureSessionAttachment MnProgramRequestLectureSessionAttachment[]
|
|
755
|
+
MnProgram MnProgram[]
|
|
827
756
|
MentorshipAchievement MentorshipAchievement[]
|
|
828
757
|
}
|
|
829
758
|
|
|
@@ -838,10 +767,10 @@ model Order {
|
|
|
838
767
|
paymentId Int @unique
|
|
839
768
|
Payment Payment @relation(fields: [paymentId], references: [id])
|
|
840
769
|
User User @relation(fields: [userId], references: [id])
|
|
841
|
-
ServiceRequest ServiceRequest[]
|
|
842
770
|
createdAt DateTime @default(now())
|
|
843
771
|
updatedAt DateTime @updatedAt
|
|
844
|
-
|
|
772
|
+
|
|
773
|
+
MnProgramReservation MnProgramReservation[]
|
|
845
774
|
}
|
|
846
775
|
|
|
847
776
|
model Payment {
|
|
@@ -971,6 +900,29 @@ model SkillRepoTranslation {
|
|
|
971
900
|
SkillRepo SkillRepo @relation(fields: [skillRepoId], references: [id])
|
|
972
901
|
}
|
|
973
902
|
|
|
903
|
+
|
|
904
|
+
model LanguageRepo {
|
|
905
|
+
id Int @id @default(autoincrement())
|
|
906
|
+
name String
|
|
907
|
+
status Boolean @default(false)
|
|
908
|
+
translations LanguageRepoTranslation[]
|
|
909
|
+
isDeleted Boolean @default(false)
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
MentorLanguage MentorLanguage[]
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
model LanguageRepoTranslation {
|
|
916
|
+
id Int @id @default(autoincrement())
|
|
917
|
+
key String
|
|
918
|
+
value String
|
|
919
|
+
lang String
|
|
920
|
+
langRepoId Int
|
|
921
|
+
SkillRepo LanguageRepo @relation(fields: [langRepoId], references: [id])
|
|
922
|
+
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
|
|
974
926
|
model ApprovalRequest {
|
|
975
927
|
id Int @id @default(autoincrement())
|
|
976
928
|
model ApprovalRequestModel
|
|
@@ -978,3 +930,127 @@ model ApprovalRequest {
|
|
|
978
930
|
stautus ApprovalRequestState @default(PENDING)
|
|
979
931
|
changes String @db.LongText
|
|
980
932
|
}
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
// model Service {
|
|
937
|
+
// id Int @id @default(autoincrement())
|
|
938
|
+
// name String
|
|
939
|
+
// description String @db.LongText
|
|
940
|
+
// fullPrice Int
|
|
941
|
+
// commission Int
|
|
942
|
+
// status Boolean @default(false)
|
|
943
|
+
// thumbnailId Int
|
|
944
|
+
// permalink String @unique
|
|
945
|
+
// isDeleted Boolean @default(false)
|
|
946
|
+
// Thumbnail Upload @relation(fields: [thumbnailId], references: [id])
|
|
947
|
+
// translations ServiceTranlstion[]
|
|
948
|
+
// ServiceMentor ServiceMentor[]
|
|
949
|
+
// ServiceRequest ServiceRequest[]
|
|
950
|
+
// }
|
|
951
|
+
|
|
952
|
+
// model ServiceTranlstion {
|
|
953
|
+
// id Int @id @default(autoincrement())
|
|
954
|
+
// key String
|
|
955
|
+
// value String
|
|
956
|
+
// lang String
|
|
957
|
+
// serviceId Int
|
|
958
|
+
// Service Service @relation(fields: [serviceId], references: [id])
|
|
959
|
+
// }
|
|
960
|
+
|
|
961
|
+
// model ServiceMentor {
|
|
962
|
+
// id Int @id @default(autoincrement())
|
|
963
|
+
// mentorId Int
|
|
964
|
+
// serviceId Int
|
|
965
|
+
// Mentor Mentor @relation(fields: [mentorId], references: [id])
|
|
966
|
+
// Service Service @relation(fields: [serviceId], references: [id])
|
|
967
|
+
// createdAt DateTime @default(now())
|
|
968
|
+
// updatedAt DateTime @updatedAt
|
|
969
|
+
// }
|
|
970
|
+
|
|
971
|
+
// model ServiceRequest {
|
|
972
|
+
// id Int @id @default(autoincrement())
|
|
973
|
+
// isPending Boolean @default(true)
|
|
974
|
+
// isInProgress Boolean @default(false)
|
|
975
|
+
// isCompleted Boolean @default(false)
|
|
976
|
+
// isCanceled Boolean @default(false)
|
|
977
|
+
// userId Int
|
|
978
|
+
// mentorId Int?
|
|
979
|
+
// serviceId Int
|
|
980
|
+
// orderId Int
|
|
981
|
+
// permalink String @unique
|
|
982
|
+
// Service Service @relation(fields: [serviceId], references: [id])
|
|
983
|
+
// Order Order @relation(fields: [orderId], references: [id])
|
|
984
|
+
// User User @relation(fields: [userId], references: [id])
|
|
985
|
+
// mentor Mentor? @relation(fields: [mentorId], references: [id])
|
|
986
|
+
// createdAt DateTime @default(now())
|
|
987
|
+
// updatedAt DateTime @updatedAt
|
|
988
|
+
// }
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
// model MnProgramPreparation {
|
|
992
|
+
// id Int @id @default(autoincrement())
|
|
993
|
+
// name String
|
|
994
|
+
// mnProgramMeetId Int
|
|
995
|
+
// folder String
|
|
996
|
+
// mnProgramId Int
|
|
997
|
+
// MnProgram MnProgram @relation(fields: [mnProgramId], references: [id])
|
|
998
|
+
// MnProgramPreparationAttachment MnProgramPreparationAttachment[]
|
|
999
|
+
// }
|
|
1000
|
+
|
|
1001
|
+
// model MnProgramPreparationAttachment {
|
|
1002
|
+
// id Int @id @default(autoincrement())
|
|
1003
|
+
// name String
|
|
1004
|
+
// mnProgramPreparationId Int
|
|
1005
|
+
// attachmentId Int
|
|
1006
|
+
// PreparationAttachment Upload @relation(fields: [attachmentId], references: [id])
|
|
1007
|
+
// MnProgramPreparation MnProgramPreparation @relation(fields: [mnProgramPreparationId], references: [id])
|
|
1008
|
+
// }
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
// model MnProgramRequestAvailablity {
|
|
1012
|
+
// id Int @id @default(autoincrement())
|
|
1013
|
+
// day String
|
|
1014
|
+
// mnProgramRequestId Int
|
|
1015
|
+
// slots MnProgramRequestAvailablitySlot[]
|
|
1016
|
+
// MnProgramRequest MnProgramRequest @relation(fields: [mnProgramRequestId], references: [id])
|
|
1017
|
+
// }
|
|
1018
|
+
|
|
1019
|
+
// model MnProgramRequestAvailablitySlot {
|
|
1020
|
+
// id Int @id @default(autoincrement())
|
|
1021
|
+
// start String
|
|
1022
|
+
// end String
|
|
1023
|
+
// mnProgramRequestAvailablityId Int
|
|
1024
|
+
// MnProgramRequestAvailablity MnProgramRequestAvailablity @relation(fields: [mnProgramRequestAvailablityId], references: [id])
|
|
1025
|
+
// MnProgramRequestLectureSession MnProgramRequestLectureSession[]
|
|
1026
|
+
// }
|
|
1027
|
+
|
|
1028
|
+
// model MnProgramRequestLecture {
|
|
1029
|
+
// id Int @id @default(autoincrement())
|
|
1030
|
+
// status MnProgramRequestLectureStatus @default(PENDING)
|
|
1031
|
+
// at DateTime?
|
|
1032
|
+
// mnProgramRequestId Int
|
|
1033
|
+
// mnProgramRequest MnProgramRequest @relation(fields: [mnProgramRequestId], references: [id])
|
|
1034
|
+
// MnProgramRequestLectureSession MnProgramRequestLectureSession[]
|
|
1035
|
+
// }
|
|
1036
|
+
|
|
1037
|
+
// model MnProgramRequestLectureSession {
|
|
1038
|
+
// id Int @id @default(autoincrement())
|
|
1039
|
+
// permalink String @unique
|
|
1040
|
+
// mnProgramRequestAvailablitySlotId Int
|
|
1041
|
+
// mnProgramRequestLectureId Int
|
|
1042
|
+
// createdAt DateTime @default(now())
|
|
1043
|
+
// updatedAt DateTime @updatedAt
|
|
1044
|
+
// MnProgramRequestAvailablitySlot MnProgramRequestAvailablitySlot @relation(fields: [mnProgramRequestAvailablitySlotId], references: [id])
|
|
1045
|
+
// MnProgramRequestLecture MnProgramRequestLecture @relation(fields: [mnProgramRequestLectureId], references: [id])
|
|
1046
|
+
// MnProgramRequestLectureSessionAttachment MnProgramRequestLectureSessionAttachment[]
|
|
1047
|
+
// }
|
|
1048
|
+
|
|
1049
|
+
// model MnProgramRequestLectureSessionAttachment {
|
|
1050
|
+
// id Int @id @default(autoincrement())
|
|
1051
|
+
// uploadId Int
|
|
1052
|
+
// mnProgramRequestLectureSessionId Int
|
|
1053
|
+
// by String
|
|
1054
|
+
// MnProgramRequestLectureSession MnProgramRequestLectureSession @relation(fields: [mnProgramRequestLectureSessionId], references: [id])
|
|
1055
|
+
// Upload Upload @relation(fields: [uploadId], references: [id])
|
|
1056
|
+
// }
|