update schema due to majority database change
This commit is contained in:
@@ -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.',
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user