refactor schema to match database schema
This commit is contained in:
@@ -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.',
|
||||
}),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user