phong bat
This commit is contained in:
@@ -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.',
|
||||
}),
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user