This commit is contained in:
2024-11-01 20:02:43 +07:00
parent ec77f07de1
commit db9f3213fd
5 changed files with 1039 additions and 975 deletions

View File

@@ -29,9 +29,6 @@ export class OrderSchema extends PothosSchema {
userId: t.exposeID('userId', {
description: 'The ID of the user.',
}),
paymentId: t.exposeString('paymentId', {
description: 'The ID of the payment.',
}),
serviceId: t.exposeID('serviceId', {
description: 'The ID of the service.',
}),
@@ -56,17 +53,17 @@ export class OrderSchema extends PothosSchema {
user: t.relation('user', {
description: 'The user who made the order.',
}),
payment: t.relation('payment', {
description: 'The payment for the order.',
}),
service: t.relation('service', {
description: 'The service for the order.',
}),
refundTicket: t.relation('refundTicket', {
description: 'The refund ticket for the order.',
}),
schedule: t.relation('schedule', {
description: 'The schedule for the order.',
payment: t.relation('payment', {
description: 'The payment for the order.',
}),
paymentId: t.exposeString('paymentId', {
description: 'The ID of the payment.',
}),
}),
})