From 19a19b00c4dc32b581419216b28be3f750ffb8fc Mon Sep 17 00:00:00 2001 From: unclebonn Date: Thu, 28 Nov 2024 15:27:41 +0700 Subject: [PATCH] relation Schedules to Order --- src/Schedule/schedule.schema.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Schedule/schedule.schema.ts b/src/Schedule/schedule.schema.ts index 9230034..4b21542 100644 --- a/src/Schedule/schedule.schema.ts +++ b/src/Schedule/schedule.schema.ts @@ -44,6 +44,10 @@ export class ScheduleSchema extends PothosSchema { description: 'The ID of the order the schedule belongs to.', nullable: true, }), + order: t.relation('Order', { + description: 'The order that belongs to orderId.', + nullable: true, + }), scheduleStart: t.expose('scheduleStart', { type: 'DateTime', nullable: false,