phong bat

This commit is contained in:
2024-10-17 15:15:08 +07:00
parent 59923b02cb
commit 5c56e79d63
19 changed files with 456 additions and 145 deletions

View File

@@ -20,10 +20,18 @@ export class WorkshopOrganizationSchema extends PothosSchema {
workshopOrganization() {
return this.builder.prismaObject('WorkshopOrganization', {
fields: (t) => ({
workshopId: t.exposeID('workshopId'),
serviceId: t.exposeID('serviceId'),
workshop: t.relation('workshop'),
service: t.relation('service'),
workshopId: t.exposeID('workshopId', {
description: 'The ID of the workshop that the organization is for.',
}),
serviceId: t.exposeID('serviceId', {
description: 'The ID of the service that the organization is for.',
}),
workshop: t.relation('workshop', {
description: 'The workshop that the organization is for.',
}),
service: t.relation('service', {
description: 'The service that the organization is for.',
}),
}),
});
}