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

@@ -8,6 +8,7 @@ import {
import { Builder } from '../Graphql/graphql.builder';
import { PrismaService } from '../Prisma/prisma.service';
import { MinioService } from 'src/Minio/minio.service';
import { CenterStatus } from '@prisma/client';
@Injectable()
export class CenterSchema extends PothosSchema {
@@ -30,6 +31,12 @@ export class CenterSchema extends PothosSchema {
centerOwnerId: t.exposeID('centerOwnerId', {
description: 'The ID of the center owner.',
}),
bank: t.exposeString('bank', {
description: 'The bank of the center.',
}),
bankAccountNumber: t.exposeString('bankAccountNumber', {
description: 'The bank account number of the center.',
}),
name: t.exposeString('name', {
description: 'The name of the center.',
}),
@@ -75,6 +82,10 @@ export class CenterSchema extends PothosSchema {
resume: t.relation('Resume', {
description: 'The resume of the center.',
}),
centerStatus: t.expose('centerStatus', {
type: CenterStatus,
description: 'The status of the center.',
}),
uploadedFileId: t.exposeID('uploadedFileId', {
description: 'The ID of the uploaded file.',
}),