diff --git a/src/Schedule/schedule.service.ts b/src/Schedule/schedule.service.ts index 01aa253..27a8b0a 100644 --- a/src/Schedule/schedule.service.ts +++ b/src/Schedule/schedule.service.ts @@ -8,16 +8,16 @@ import { Schedule } from '@prisma/client'; export class ScheduleService { constructor(private readonly prisma: PrismaService) {} - async createSchedule(schedule: Schedule) { - // generate Slot By config - // const slots = await this.generateSlots(schedule.config); - // return this.prisma.schedule.createManyAndReturn({ - // data: schedule, - // }); - // } - // async getSchedule(id: string) { - // return this.prisma.schedule.findUnique({ - // where: { id }, - // }); - } + // async createSchedule(schedule: Schedule) { + // // generate Slot By config + // const slots = await this.generateSlots(schedule.config); + // return this.prisma.schedule.createManyAndReturn({ + // data: schedule, + // }); + // } + // async getSchedule(id: string) { + // return this.prisma.schedule.findUnique({ + // where: { id }, + // }); + // } } diff --git a/src/User/user.schema.ts b/src/User/user.schema.ts index 36a329f..b4a9b0a 100644 --- a/src/User/user.schema.ts +++ b/src/User/user.schema.ts @@ -74,6 +74,12 @@ export class UserSchema extends PothosSchema { sendingMessage: t.relation('sendingMessage', { description: 'The sending message of the user.', }), + resume: t.relation('resume', { + description: 'The resume of the user.', + }), + service: t.relation('service', { + description: 'The service of the user.', + }), center: t.relation('center', { description: 'The center of the user.', }), diff --git a/src/common/constant/config.constant.ts b/src/common/constant/config.constant.ts index be80043..02265e8 100644 --- a/src/common/constant/config.constant.ts +++ b/src/common/constant/config.constant.ts @@ -1,6 +1,6 @@ // export class ConfigConstant { -// static SLOT_DURATION = 60; -// static SLOT_BREAK_DURATION = 15; +// static SLOT_DURATION: number = 60; +// static SLOT_BREAK_DURATION: number = 15; // static MID_DAY_BREAK_TIME_START: Date = new Date().setHours(12, 0, 0, 0); // static MID_DAY_BREAK_TIME_END: Date = new Date().setHours(13, 0, 0, 0); // static SLOT_START_TIME: Date = new Date().setHours(8, 0, 0, 0);