refactor schema to match database schema

This commit is contained in:
2024-10-27 13:12:24 +07:00
parent 8d46676a37
commit 9e0e97a560
14 changed files with 73 additions and 63 deletions

View File

@@ -30,11 +30,11 @@ export class ScheduleSchema extends PothosSchema {
description: 'The ID of the managed service the schedule belongs to.',
nullable: false,
}),
scheduleStart: t.expose('ScheduleStart', {
scheduleStart: t.expose('scheduleStart', {
type: 'DateTime',
nullable: false,
}),
scheduleEnd: t.expose('ScheduleEnd', {
scheduleEnd: t.expose('scheduleEnd', {
type: 'DateTime',
nullable: false,
}),
@@ -45,7 +45,7 @@ export class ScheduleSchema extends PothosSchema {
type: ScheduleStatus,
nullable: false,
}),
managedService: t.relation('ManagedService', {
managedService: t.relation('managedService', {
description: 'The managed service the schedule belongs to.',
nullable: false,
}),
@@ -72,7 +72,7 @@ export class ScheduleSchema extends PothosSchema {
type: 'DateTime',
nullable: false,
}),
schedule: t.relation('Schedule', {
schedule: t.relation('schedule', {
description: 'The schedule the schedule date belongs to.',
}),
}),