merge change from db

This commit is contained in:
2024-10-25 14:49:16 +07:00
parent 2872ac69ef
commit 7e25e8d96b
26 changed files with 147 additions and 94 deletions

View File

@@ -34,12 +34,11 @@ export class UploadedFileSchema extends PothosSchema {
description: 'The original name of the file.',
}),
fileName: t.exposeString('fileName', {
description: 'The name of the file.',
description: 'The name of the file in minio.',
}),
// expose enum
fileType: t.expose('fileType', {
type: UploadedFileType,
nullable: false,
nullable: true,
description: 'The type of the file.',
}),
fileUrl: t.exposeString('fileUrl', {
@@ -53,6 +52,15 @@ export class UploadedFileSchema extends PothosSchema {
user: t.relation('user', {
description: 'The user who uploaded the file.',
}),
Center: t.relation('Center', {
description: 'The center that the file belongs to.',
}),
Service: t.relation('Service', {
description: 'The service that the file belongs to.',
}),
Workshop: t.relation('Workshop', {
description: 'The workshop that the file belongs to.',
}),
}),
});
}