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

@@ -22,13 +22,22 @@ export class MilestoneSchema extends PothosSchema {
return this.builder.prismaObject('Milestone', {
description: 'A milestone in the system.',
fields: (t) => ({
id: t.exposeID('id'),
name: t.exposeString('name'),
order: t.exposeInt('order'),
description: t.exposeString('description'),
createdAt: t.expose('createdAt', { type: 'DateTime' }),
updatedAt: t.expose('updatedAt', { type: 'DateTime' }),
service: t.relation('service'),
id: t.exposeID('id', {
description: 'The ID of the milestone.',
}),
name: t.exposeString('name', {
description: 'The name of the milestone.',
}),
order: t.exposeInt('order', {
description: 'The order of the milestone.',
}),
description: t.exposeString('description', {
description: 'The description of the milestone.',
}),
createdAt: t.expose('createdAt', {
type: 'DateTime',
description: 'The date and time the milestone was created.',
}),
}),
});
}