update schema due to majority database change

This commit is contained in:
2024-10-18 01:50:26 +07:00
parent 9dcc84d371
commit 1523642b9d
13 changed files with 293 additions and 61 deletions

View File

@@ -40,7 +40,9 @@ export class CategorySchema extends PothosSchema {
return this.builder.prismaObject('SubCategory', {
description: 'A subcategory of services.',
fields: (t) => ({
id: t.exposeID('id'),
id: t.exposeID('id', {
description: 'The unique identifier of the subcategory.',
}),
name: t.exposeString('name', {
description: 'The name of the subcategory.',
}),