update schema due to majority database change
This commit is contained in:
@@ -32,6 +32,12 @@ export class ServiceSchema extends PothosSchema {
|
||||
description: t.exposeString('description', {
|
||||
description: 'The description of the service.',
|
||||
}),
|
||||
centerId: t.exposeID('centerId', {
|
||||
description: 'The ID of the center that offers the service.',
|
||||
}),
|
||||
userId: t.exposeID('userId', {
|
||||
description: 'The ID of the user who requested the service.',
|
||||
}),
|
||||
price: t.exposeFloat('price', {
|
||||
description: 'The price of the service.',
|
||||
}),
|
||||
@@ -67,12 +73,15 @@ export class ServiceSchema extends PothosSchema {
|
||||
nullable: true,
|
||||
description: 'The date and time the service was updated.',
|
||||
}),
|
||||
feedbacks: t.relation('feedbacks', {
|
||||
description: 'The feedbacks for the service.',
|
||||
}),
|
||||
order: t.relation('order', {
|
||||
description: 'The order for the service.',
|
||||
}),
|
||||
center: t.relation('center', {
|
||||
description: 'The center that offers the service.',
|
||||
}),
|
||||
centerId: t.exposeID('centerId', {
|
||||
description: 'The ID of the center that offers the service.',
|
||||
}),
|
||||
workshop: t.relation('workshop', {
|
||||
description: 'The workshop for the service.',
|
||||
}),
|
||||
@@ -91,8 +100,8 @@ export class ServiceSchema extends PothosSchema {
|
||||
user: t.relation('user', {
|
||||
description: 'The user who requested the service.',
|
||||
}),
|
||||
userId: t.exposeID('userId', {
|
||||
description: 'The ID of the user who requested the service.',
|
||||
managedService: t.relation('ManagedService', {
|
||||
description: 'The managed service for the service.',
|
||||
}),
|
||||
}),
|
||||
});
|
||||
@@ -113,6 +122,7 @@ export class ServiceSchema extends PothosSchema {
|
||||
orderBy: args.orderBy ?? undefined,
|
||||
skip: args.skip ?? undefined,
|
||||
take: args.take ?? 10,
|
||||
cursor: args.cursor ?? undefined,
|
||||
});
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user