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

@@ -21,10 +21,18 @@ export class WorkshopSubscriptionSchema extends PothosSchema {
return this.builder.prismaObject('WorkshopSubscription', {
description: 'A workshop subscription in the system.',
fields: (t) => ({
userId: t.exposeID('userId'),
workshopId: t.exposeID('workshopId'),
user: t.relation('user'),
workshop: t.relation('workshop'),
userId: t.exposeID('userId', {
description: 'The ID of the user who subscribed to the workshop.',
}),
workshopId: t.exposeID('workshopId', {
description: 'The ID of the workshop that the user subscribed to.',
}),
user: t.relation('user', {
description: 'The user who subscribed to the workshop.',
}),
workshop: t.relation('workshop', {
description: 'The workshop that the user subscribed to.',
}),
}),
});
}