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

@@ -47,19 +47,31 @@ export class ResumeSchema extends PothosSchema {
return this.builder.prismaObject('ResumeFile', {
description: 'A file associated with a resume.',
fields: (t) => ({
id: t.exposeID('id'),
resumeId: t.exposeID('resumeId'),
fileUrl: t.exposeString('fileUrl'),
type: t.exposeString('type'),
id: t.exposeID('id', {
description: 'The ID of the resume file.',
}),
resumeId: t.exposeID('resumeId', {
description: 'The ID of the resume.',
}),
fileUrl: t.exposeString('fileUrl', {
description: 'The URL of the resume file.',
}),
type: t.exposeString('type', {
description: 'The type of the resume file.',
}),
createdAt: t.expose('createdAt', {
type: 'DateTime',
nullable: true,
description: 'The date and time the resume file was created.',
}),
updatedAt: t.expose('updatedAt', {
type: 'DateTime',
nullable: true,
description: 'The date and time the resume file was updated.',
}),
resume: t.relation('resume', {
description: 'The resume for the resume file.',
}),
resume: t.relation('resume'),
}),
});
}