update resume and service

This commit is contained in:
2024-10-29 16:04:48 +07:00
parent b5d23ac930
commit 3c5b09ed5d
3 changed files with 20 additions and 14 deletions

View File

@@ -8,8 +8,8 @@ import { Schedule } from '@prisma/client';
export class ScheduleService { export class ScheduleService {
constructor(private readonly prisma: PrismaService) {} constructor(private readonly prisma: PrismaService) {}
async createSchedule(schedule: Schedule) { // async createSchedule(schedule: Schedule) {
// generate Slot By config // // generate Slot By config
// const slots = await this.generateSlots(schedule.config); // const slots = await this.generateSlots(schedule.config);
// return this.prisma.schedule.createManyAndReturn({ // return this.prisma.schedule.createManyAndReturn({
// data: schedule, // data: schedule,
@@ -19,5 +19,5 @@ export class ScheduleService {
// return this.prisma.schedule.findUnique({ // return this.prisma.schedule.findUnique({
// where: { id }, // where: { id },
// }); // });
} // }
} }

View File

@@ -74,6 +74,12 @@ export class UserSchema extends PothosSchema {
sendingMessage: t.relation('sendingMessage', { sendingMessage: t.relation('sendingMessage', {
description: 'The sending message of the user.', 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', { center: t.relation('center', {
description: 'The center of the user.', description: 'The center of the user.',
}), }),

View File

@@ -1,6 +1,6 @@
// export class ConfigConstant { // export class ConfigConstant {
// static SLOT_DURATION = 60; // static SLOT_DURATION: number = 60;
// static SLOT_BREAK_DURATION = 15; // 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_START: Date = new Date().setHours(12, 0, 0, 0);
// static MID_DAY_BREAK_TIME_END: Date = new Date().setHours(13, 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); // static SLOT_START_TIME: Date = new Date().setHours(8, 0, 0, 0);