Add comments to Prisma Schema and GraphQL server (#162)
* Lowercase all relations in prisma/graphql schema * Add Comments data model and graphql schema * Make comments availalble on the api through resolvers and guard them * Update front graphql schema * Fix PR
This commit is contained in:
@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CommentThreadTargetCountAggregate {
|
||||
@Field(() => Int, { nullable: false })
|
||||
id!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
createdAt!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
updatedAt!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
deletedAt!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
commentThreadId!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
commentableType!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
commentableId!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
_all!: number;
|
||||
}
|
||||
Reference in New Issue
Block a user