merge change from db
This commit is contained in:
@@ -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.',
|
||||
}),
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user