update fields

This commit is contained in:
2024-10-15 02:39:06 +07:00
parent 7cfab52e77
commit 80743b0973
5 changed files with 67 additions and 7 deletions

View File

@@ -26,6 +26,9 @@ export class ServiceSchema extends PothosSchema {
description: t.exposeString('description'),
price: t.exposeFloat('price'),
rating: t.exposeFloat('rating'),
imageFile: t.relation('imageFile'),
imageFileId: t.exposeID('imageFileId'),
imageFileUrl: t.exposeString('imageFileUrl'),
createdAt: t.expose('createdAt', {
type: 'DateTime',
nullable: true,
@@ -34,6 +37,15 @@ export class ServiceSchema extends PothosSchema {
type: 'DateTime',
nullable: true,
}),
center: t.relation('center'),
centerId: t.exposeID('centerId'),
workshop: t.relation('workshop'),
milestone: t.relation('milestone'),
schedule: t.relation('schedule'),
serviceAndCategory: t.relation('serviceAndCategory'),
workshopOrganization: t.relation('workshopOrganization'),
user: t.relation('user'),
userId: t.exposeID('userId'),
}),
});
}