merge change from db
This commit is contained in:
@@ -23,13 +23,11 @@ export class ScheduleSchema extends PothosSchema {
|
||||
return this.builder.prismaObject('Schedule', {
|
||||
description: 'A schedule in the system.',
|
||||
fields: (t) => ({
|
||||
id: t.exposeID('id'),
|
||||
serviceId: t.exposeID('serviceId', {
|
||||
description: 'The ID of the service the schedule belongs to.',
|
||||
nullable: false,
|
||||
id: t.exposeID('id', {
|
||||
description: 'The ID of the schedule.',
|
||||
}),
|
||||
service: t.relation('service', {
|
||||
description: 'The service the schedule belongs to.',
|
||||
managedServiceId: t.exposeID('managedServiceId', {
|
||||
description: 'The ID of the managed service the schedule belongs to.',
|
||||
nullable: false,
|
||||
}),
|
||||
scheduleStart: t.expose('ScheduleStart', {
|
||||
@@ -40,11 +38,17 @@ export class ScheduleSchema extends PothosSchema {
|
||||
type: 'DateTime',
|
||||
nullable: false,
|
||||
}),
|
||||
dates: t.relation('dates'),
|
||||
dates: t.relation('dates', {
|
||||
description: 'The dates of the schedule.',
|
||||
}),
|
||||
status: t.expose('status', {
|
||||
type: ScheduleStatus,
|
||||
nullable: false,
|
||||
}),
|
||||
managedService: t.relation('ManagedService', {
|
||||
description: 'The managed service the schedule belongs to.',
|
||||
nullable: false,
|
||||
}),
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user