chore: remove Milestone module and update related schemas

- Deleted the MilestoneModule and its associated schema to streamline the codebase.
- Updated QuizSchema to replace scheduleId with serviceId, enhancing the relationship structure.
- Removed references to Milestone in ServiceSchema, improving clarity and focus on relevant entities.
- Updated Prisma types to reflect the removal of Milestone, ensuring data integrity across the application.
This commit is contained in:
2024-12-07 15:33:28 +07:00
parent 4af2e848b8
commit 429c6f9073
7 changed files with 16 additions and 114 deletions

View File

@@ -20,8 +20,8 @@ export class QuizSchema extends PothosSchema {
return this.builder.prismaObject('Quiz', {
fields: (t) => ({
id: t.exposeID('id'),
scheduleId: t.exposeID('scheduleId'),
schedule: t.relation('schedule'),
serviceId: t.exposeID('serviceId'),
service: t.relation('service'),
quizTitle: t.exposeString('quizTitle'),
quizSynopsis: t.exposeString('quizSynopsis'),
progressBarColor: t.exposeString('progressBarColor'),