feat: clean prisma file, add validation, add prisma editor (#472)

This commit is contained in:
Jérémy M
2023-06-29 15:41:58 +02:00
committed by GitHub
parent aa612b5fc9
commit d9af205ccb
520 changed files with 6751 additions and 5241 deletions

View File

@ -21,6 +21,10 @@
"[json]": {
"editor.formatOnSave": true
},
"[prisma]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "Prisma.prisma"
},
"javascript.format.enable": false,
"typescript.format.enable": false,
"cSpell.enableFiletypes": [

View File

@ -1,5 +1,6 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadTargetCountAggregateInput {
@ -7,15 +8,6 @@ export class CommentThreadTargetCountAggregateInput {
@Field(() => Boolean, {nullable:true})
id?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
@Field(() => Boolean, {nullable:true})
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
commentThreadId?: true;
@ -25,6 +17,15 @@ export class CommentThreadTargetCountAggregateInput {
@Field(() => Boolean, {nullable:true})
commentableId?: true;
@HideField()
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
@Field(() => Boolean, {nullable:true})
_all?: true;
}

View File

@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { Int } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentThreadTargetCountAggregate {
@ -8,15 +9,6 @@ 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;
@ -26,6 +18,15 @@ export class CommentThreadTargetCountAggregate {
@Field(() => Int, {nullable:false})
commentableId!: number;
@HideField()
deletedAt!: number;
@Field(() => Int, {nullable:false})
createdAt!: number;
@Field(() => Int, {nullable:false})
updatedAt!: number;
@Field(() => Int, {nullable:false})
_all!: number;
}

View File

@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { SortOrder } from '../prisma/sort-order.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadTargetCountOrderByAggregateInput {
@ -8,15 +9,6 @@ export class CommentThreadTargetCountOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
commentThreadId?: keyof typeof SortOrder;
@ -25,4 +17,13 @@ export class CommentThreadTargetCountOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
commentableId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
}

View File

@ -1,25 +1,29 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { CommentableType } from '../prisma/commentable-type.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadTargetCreateManyCommentThreadInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => CommentableType, {nullable:false})
commentableType!: keyof typeof CommentableType;
@Field(() => String, {nullable:false})
commentableId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -1,22 +1,17 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { CommentableType } from '../prisma/commentable-type.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadTargetCreateManyInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:false})
commentThreadId!: string;
@ -25,4 +20,13 @@ export class CommentThreadTargetCreateManyInput {
@Field(() => String, {nullable:false})
commentableId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -1,25 +1,29 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { CommentableType } from '../prisma/commentable-type.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadTargetCreateWithoutCommentThreadInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => CommentableType, {nullable:false})
commentableType!: keyof typeof CommentableType;
@Field(() => String, {nullable:false})
commentableId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -1,29 +1,33 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { CommentableType } from '../prisma/commentable-type.enum';
import { HideField } from '@nestjs/graphql';
import { CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput } from '../comment-thread/comment-thread-create-nested-one-without-comment-thread-targets.input';
@InputType()
export class CommentThreadTargetCreateInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => CommentableType, {nullable:false})
commentableType!: keyof typeof CommentableType;
@Field(() => String, {nullable:false})
commentableId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput, {nullable:false})
commentThread!: CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput;
}

View File

@ -1,6 +1,8 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { CommentableType } from '../prisma/commentable-type.enum';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetCountAggregate } from './comment-thread-target-count-aggregate.output';
import { CommentThreadTargetMinAggregate } from './comment-thread-target-min-aggregate.output';
import { CommentThreadTargetMaxAggregate } from './comment-thread-target-max-aggregate.output';
@ -9,17 +11,10 @@ import { CommentThreadTargetMaxAggregate } from './comment-thread-target-max-agg
export class CommentThreadTargetGroupBy {
@Field(() => String, {nullable:false})
@Validator.IsString()
@Validator.IsOptional()
id!: string;
@Field(() => Date, {nullable:false})
createdAt!: Date | string;
@Field(() => Date, {nullable:false})
updatedAt!: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:false})
commentThreadId!: string;
@ -29,6 +24,15 @@ export class CommentThreadTargetGroupBy {
@Field(() => String, {nullable:false})
commentableId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:false})
createdAt!: Date | string;
@Field(() => Date, {nullable:false})
updatedAt!: Date | string;
@Field(() => CommentThreadTargetCountAggregate, {nullable:true})
_count?: CommentThreadTargetCountAggregate;

View File

@ -1,5 +1,6 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadTargetMaxAggregateInput {
@ -7,15 +8,6 @@ export class CommentThreadTargetMaxAggregateInput {
@Field(() => Boolean, {nullable:true})
id?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
@Field(() => Boolean, {nullable:true})
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
commentThreadId?: true;
@ -24,4 +16,13 @@ export class CommentThreadTargetMaxAggregateInput {
@Field(() => Boolean, {nullable:true})
commentableId?: true;
@HideField()
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
}

View File

@ -1,22 +1,17 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { CommentableType } from '../prisma/commentable-type.enum';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentThreadTargetMaxAggregate {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:true})
commentThreadId?: string;
@ -25,4 +20,13 @@ export class CommentThreadTargetMaxAggregate {
@Field(() => String, {nullable:true})
commentableId?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { SortOrder } from '../prisma/sort-order.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadTargetMaxOrderByAggregateInput {
@ -8,15 +9,6 @@ export class CommentThreadTargetMaxOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
commentThreadId?: keyof typeof SortOrder;
@ -25,4 +17,13 @@ export class CommentThreadTargetMaxOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
commentableId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
}

View File

@ -1,5 +1,6 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadTargetMinAggregateInput {
@ -7,15 +8,6 @@ export class CommentThreadTargetMinAggregateInput {
@Field(() => Boolean, {nullable:true})
id?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
@Field(() => Boolean, {nullable:true})
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
commentThreadId?: true;
@ -24,4 +16,13 @@ export class CommentThreadTargetMinAggregateInput {
@Field(() => Boolean, {nullable:true})
commentableId?: true;
@HideField()
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
}

View File

@ -1,22 +1,17 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { CommentableType } from '../prisma/commentable-type.enum';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentThreadTargetMinAggregate {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:true})
commentThreadId?: string;
@ -25,4 +20,13 @@ export class CommentThreadTargetMinAggregate {
@Field(() => String, {nullable:true})
commentableId?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { SortOrder } from '../prisma/sort-order.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadTargetMinOrderByAggregateInput {
@ -8,15 +9,6 @@ export class CommentThreadTargetMinOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
commentThreadId?: keyof typeof SortOrder;
@ -25,4 +17,13 @@ export class CommentThreadTargetMinOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
commentableId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
}

View File

@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { SortOrder } from '../prisma/sort-order.enum';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetCountOrderByAggregateInput } from './comment-thread-target-count-order-by-aggregate.input';
import { CommentThreadTargetMaxOrderByAggregateInput } from './comment-thread-target-max-order-by-aggregate.input';
import { CommentThreadTargetMinOrderByAggregateInput } from './comment-thread-target-min-order-by-aggregate.input';
@ -11,15 +12,6 @@ export class CommentThreadTargetOrderByWithAggregationInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
commentThreadId?: keyof typeof SortOrder;
@ -29,6 +21,15 @@ export class CommentThreadTargetOrderByWithAggregationInput {
@Field(() => SortOrder, {nullable:true})
commentableId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => CommentThreadTargetCountOrderByAggregateInput, {nullable:true})
_count?: CommentThreadTargetCountOrderByAggregateInput;

View File

@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { SortOrder } from '../prisma/sort-order.enum';
import { HideField } from '@nestjs/graphql';
import { CommentThreadOrderByWithRelationInput } from '../comment-thread/comment-thread-order-by-with-relation.input';
@InputType()
@ -9,15 +10,6 @@ export class CommentThreadTargetOrderByWithRelationInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
commentThreadId?: keyof typeof SortOrder;
@ -27,6 +19,15 @@ export class CommentThreadTargetOrderByWithRelationInput {
@Field(() => SortOrder, {nullable:true})
commentableId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => CommentThreadOrderByWithRelationInput, {nullable:true})
commentThread?: CommentThreadOrderByWithRelationInput;
}

View File

@ -2,12 +2,12 @@ import { registerEnumType } from '@nestjs/graphql';
export enum CommentThreadTargetScalarFieldEnum {
id = "id",
createdAt = "createdAt",
updatedAt = "updatedAt",
deletedAt = "deletedAt",
commentThreadId = "commentThreadId",
commentableType = "commentableType",
commentableId = "commentableId"
commentableId = "commentableId",
deletedAt = "deletedAt",
createdAt = "createdAt",
updatedAt = "updatedAt"
}

View File

@ -1,9 +1,10 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
import { EnumCommentableTypeWithAggregatesFilter } from '../prisma/enum-commentable-type-with-aggregates-filter.input';
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
@InputType()
export class CommentThreadTargetScalarWhereWithAggregatesInput {
@ -20,15 +21,6 @@ export class CommentThreadTargetScalarWhereWithAggregatesInput {
@Field(() => StringWithAggregatesFilter, {nullable:true})
id?: StringWithAggregatesFilter;
@Field(() => DateTimeWithAggregatesFilter, {nullable:true})
createdAt?: DateTimeWithAggregatesFilter;
@Field(() => DateTimeWithAggregatesFilter, {nullable:true})
updatedAt?: DateTimeWithAggregatesFilter;
@Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true})
deletedAt?: DateTimeNullableWithAggregatesFilter;
@Field(() => StringWithAggregatesFilter, {nullable:true})
commentThreadId?: StringWithAggregatesFilter;
@ -37,4 +29,13 @@ export class CommentThreadTargetScalarWhereWithAggregatesInput {
@Field(() => StringWithAggregatesFilter, {nullable:true})
commentableId?: StringWithAggregatesFilter;
@HideField()
deletedAt?: DateTimeNullableWithAggregatesFilter;
@Field(() => DateTimeWithAggregatesFilter, {nullable:true})
createdAt?: DateTimeWithAggregatesFilter;
@Field(() => DateTimeWithAggregatesFilter, {nullable:true})
updatedAt?: DateTimeWithAggregatesFilter;
}

View File

@ -1,9 +1,10 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFilter } from '../prisma/string-filter.input';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { EnumCommentableTypeFilter } from '../prisma/enum-commentable-type-filter.input';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
@InputType()
export class CommentThreadTargetScalarWhereInput {
@ -20,15 +21,6 @@ export class CommentThreadTargetScalarWhereInput {
@Field(() => StringFilter, {nullable:true})
id?: StringFilter;
@Field(() => DateTimeFilter, {nullable:true})
createdAt?: DateTimeFilter;
@Field(() => DateTimeFilter, {nullable:true})
updatedAt?: DateTimeFilter;
@Field(() => DateTimeNullableFilter, {nullable:true})
deletedAt?: DateTimeNullableFilter;
@Field(() => StringFilter, {nullable:true})
commentThreadId?: StringFilter;
@ -37,4 +29,13 @@ export class CommentThreadTargetScalarWhereInput {
@Field(() => StringFilter, {nullable:true})
commentableId?: StringFilter;
@HideField()
deletedAt?: DateTimeNullableFilter;
@Field(() => DateTimeFilter, {nullable:true})
createdAt?: DateTimeFilter;
@Field(() => DateTimeFilter, {nullable:true})
updatedAt?: DateTimeFilter;
}

View File

@ -1,25 +1,29 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { CommentableType } from '../prisma/commentable-type.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadTargetUncheckedCreateWithoutCommentThreadInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => CommentableType, {nullable:false})
commentableType!: keyof typeof CommentableType;
@Field(() => String, {nullable:false})
commentableId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -1,22 +1,17 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { CommentableType } from '../prisma/commentable-type.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadTargetUncheckedCreateInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:false})
commentThreadId!: string;
@ -25,4 +20,13 @@ export class CommentThreadTargetUncheckedCreateInput {
@Field(() => String, {nullable:false})
commentableId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -1,9 +1,10 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@InputType()
export class CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadTargetsInput {
@ -11,18 +12,18 @@ export class CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadTargetsIn
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => EnumCommentableTypeFieldUpdateOperationsInput, {nullable:true})
commentableType?: EnumCommentableTypeFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
commentableId?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
}

View File

@ -1,9 +1,10 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@InputType()
export class CommentThreadTargetUncheckedUpdateManyInput {
@ -11,15 +12,6 @@ export class CommentThreadTargetUncheckedUpdateManyInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
commentThreadId?: StringFieldUpdateOperationsInput;
@ -28,4 +20,13 @@ export class CommentThreadTargetUncheckedUpdateManyInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
commentableId?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
}

View File

@ -1,9 +1,10 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@InputType()
export class CommentThreadTargetUncheckedUpdateWithoutCommentThreadInput {
@ -11,18 +12,18 @@ export class CommentThreadTargetUncheckedUpdateWithoutCommentThreadInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => EnumCommentableTypeFieldUpdateOperationsInput, {nullable:true})
commentableType?: EnumCommentableTypeFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
commentableId?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
}

View File

@ -1,9 +1,10 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@InputType()
export class CommentThreadTargetUncheckedUpdateInput {
@ -11,15 +12,6 @@ export class CommentThreadTargetUncheckedUpdateInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
commentThreadId?: StringFieldUpdateOperationsInput;
@ -28,4 +20,13 @@ export class CommentThreadTargetUncheckedUpdateInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
commentableId?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
}

View File

@ -1,9 +1,10 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@InputType()
export class CommentThreadTargetUpdateManyMutationInput {
@ -11,18 +12,18 @@ export class CommentThreadTargetUpdateManyMutationInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => EnumCommentableTypeFieldUpdateOperationsInput, {nullable:true})
commentableType?: EnumCommentableTypeFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
commentableId?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
}

View File

@ -1,9 +1,10 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@InputType()
export class CommentThreadTargetUpdateWithoutCommentThreadInput {
@ -11,18 +12,18 @@ export class CommentThreadTargetUpdateWithoutCommentThreadInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => EnumCommentableTypeFieldUpdateOperationsInput, {nullable:true})
commentableType?: EnumCommentableTypeFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
commentableId?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
}

View File

@ -1,9 +1,10 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { EnumCommentableTypeFieldUpdateOperationsInput } from '../prisma/enum-commentable-type-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput } from '../comment-thread/comment-thread-update-one-required-without-comment-thread-targets-nested.input';
@InputType()
@ -12,21 +13,21 @@ export class CommentThreadTargetUpdateInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => EnumCommentableTypeFieldUpdateOperationsInput, {nullable:true})
commentableType?: EnumCommentableTypeFieldUpdateOperationsInput;
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
commentableId?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput, {nullable:true})
commentThread?: CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput;
}

View File

@ -1,9 +1,12 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
@InputType()
export class CommentThreadTargetWhereUniqueInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
}

View File

@ -1,9 +1,10 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFilter } from '../prisma/string-filter.input';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { EnumCommentableTypeFilter } from '../prisma/enum-commentable-type-filter.input';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
import { CommentThreadRelationFilter } from '../comment-thread/comment-thread-relation-filter.input';
@InputType()
@ -21,15 +22,6 @@ export class CommentThreadTargetWhereInput {
@Field(() => StringFilter, {nullable:true})
id?: StringFilter;
@Field(() => DateTimeFilter, {nullable:true})
createdAt?: DateTimeFilter;
@Field(() => DateTimeFilter, {nullable:true})
updatedAt?: DateTimeFilter;
@Field(() => DateTimeNullableFilter, {nullable:true})
deletedAt?: DateTimeNullableFilter;
@Field(() => StringFilter, {nullable:true})
commentThreadId?: StringFilter;
@ -39,6 +31,15 @@ export class CommentThreadTargetWhereInput {
@Field(() => StringFilter, {nullable:true})
commentableId?: StringFilter;
@HideField()
deletedAt?: DateTimeNullableFilter;
@Field(() => DateTimeFilter, {nullable:true})
createdAt?: DateTimeFilter;
@Field(() => DateTimeFilter, {nullable:true})
updatedAt?: DateTimeFilter;
@Field(() => CommentThreadRelationFilter, {nullable:true})
commentThread?: CommentThreadRelationFilter;
}

View File

@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { ID } from '@nestjs/graphql';
import { CommentableType } from '../prisma/commentable-type.enum';
import { HideField } from '@nestjs/graphql';
import { CommentThread } from '../comment-thread/comment-thread.model';
@ObjectType()
@ -10,15 +11,6 @@ export class CommentThreadTarget {
@Field(() => ID, {nullable:false})
id!: string;
@Field(() => Date, {nullable:false})
createdAt!: Date;
@Field(() => Date, {nullable:false})
updatedAt!: Date;
@Field(() => Date, {nullable:true})
deletedAt!: Date | null;
@Field(() => String, {nullable:false})
commentThreadId!: string;
@ -28,6 +20,15 @@ export class CommentThreadTarget {
@Field(() => String, {nullable:false})
commentableId!: string;
@HideField()
deletedAt!: Date | null;
@Field(() => Date, {nullable:false})
createdAt!: Date;
@Field(() => Date, {nullable:false})
updatedAt!: Date;
@Field(() => CommentThread, {nullable:false})
commentThread?: CommentThread;
}

View File

@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadTargetCreateManyInput } from './comment-thread-target-create-many.input';
import { Type } from 'class-transformer';
import { ValidateNested } from 'class-validator';
@ArgsType()
export class CreateManyCommentThreadTargetArgs {
@Field(() => [CommentThreadTargetCreateManyInput], {nullable:false})
@Type(() => CommentThreadTargetCreateManyInput)
@ValidateNested({each: true})
@Type(() => CommentThreadTargetCreateManyInput)
data!: Array<CommentThreadTargetCreateManyInput>;
@Field(() => Boolean, {nullable:true})

View File

@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadTargetCreateInput } from './comment-thread-target-create.input';
import { Type } from 'class-transformer';
import { ValidateNested } from 'class-validator';
@ArgsType()
export class CreateOneCommentThreadTargetArgs {
@Field(() => CommentThreadTargetCreateInput, {nullable:false})
@Type(() => CommentThreadTargetCreateInput)
@ValidateNested({each: true})
@Type(() => CommentThreadTargetCreateInput)
data!: CommentThreadTargetCreateInput;
}

View File

@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadTargetUpdateManyMutationInput } from './comment-thread-target-update-many-mutation.input';
import { Type } from 'class-transformer';
import { ValidateNested } from 'class-validator';
import { CommentThreadTargetWhereInput } from './comment-thread-target-where.input';
@ArgsType()
@ -9,6 +10,8 @@ export class UpdateManyCommentThreadTargetArgs {
@Field(() => CommentThreadTargetUpdateManyMutationInput, {nullable:false})
@Type(() => CommentThreadTargetUpdateManyMutationInput)
@ValidateNested({each: true})
@Type(() => CommentThreadTargetUpdateManyMutationInput)
data!: CommentThreadTargetUpdateManyMutationInput;
@Field(() => CommentThreadTargetWhereInput, {nullable:true})

View File

@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadTargetUpdateInput } from './comment-thread-target-update.input';
import { Type } from 'class-transformer';
import { ValidateNested } from 'class-validator';
import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input';
@ArgsType()
@ -9,6 +10,8 @@ export class UpdateOneCommentThreadTargetArgs {
@Field(() => CommentThreadTargetUpdateInput, {nullable:false})
@Type(() => CommentThreadTargetUpdateInput)
@ValidateNested({each: true})
@Type(() => CommentThreadTargetUpdateInput)
data!: CommentThreadTargetUpdateInput;
@Field(() => CommentThreadTargetWhereUniqueInput, {nullable:false})

View File

@ -8,18 +8,18 @@ export class CommentThreadCountAggregateInput {
@Field(() => Boolean, {nullable:true})
id?: true;
@HideField()
workspaceId?: true;
@HideField()
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
@Field(() => Boolean, {nullable:true})
deletedAt?: true;
@HideField()
workspaceId?: true;
@Field(() => Boolean, {nullable:true})
_all?: true;
}

View File

@ -9,18 +9,18 @@ export class CommentThreadCountAggregate {
@Field(() => Int, {nullable:false})
id!: number;
@HideField()
workspaceId!: number;
@HideField()
deletedAt!: number;
@Field(() => Int, {nullable:false})
createdAt!: number;
@Field(() => Int, {nullable:false})
updatedAt!: number;
@Field(() => Int, {nullable:false})
deletedAt!: number;
@HideField()
workspaceId!: number;
@Field(() => Int, {nullable:false})
_all!: number;
}

View File

@ -9,15 +9,15 @@ export class CommentThreadCountOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
}

View File

@ -1,18 +1,22 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadCreateManyWorkspaceInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
}

View File

@ -1,22 +1,25 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadCreateManyInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@HideField()
workspaceId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@HideField()
workspaceId!: string;
}

View File

@ -1,24 +1,27 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input';
import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadCreateWithoutCommentThreadTargetsInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => CommentCreateNestedManyWithoutCommentThreadInput, {nullable:true})
comments?: CommentCreateNestedManyWithoutCommentThreadInput;

View File

@ -1,24 +1,27 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input';
import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadCreateWithoutCommentsInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => CommentThreadTargetCreateNestedManyWithoutCommentThreadInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetCreateNestedManyWithoutCommentThreadInput;

View File

@ -1,5 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input';
import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input';
@ -7,17 +9,19 @@ import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/com
export class CommentThreadCreateWithoutWorkspaceInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => CommentThreadTargetCreateNestedManyWithoutCommentThreadInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetCreateNestedManyWithoutCommentThreadInput;

View File

@ -1,25 +1,28 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input';
import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input';
import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadCreateInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => CommentThreadTargetCreateNestedManyWithoutCommentThreadInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetCreateNestedManyWithoutCommentThreadInput;

View File

@ -1,5 +1,6 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentThreadCountAggregate } from './comment-thread-count-aggregate.output';
import { CommentThreadMinAggregate } from './comment-thread-min-aggregate.output';
@ -9,20 +10,22 @@ import { CommentThreadMaxAggregate } from './comment-thread-max-aggregate.output
export class CommentThreadGroupBy {
@Field(() => String, {nullable:false})
@Validator.IsString()
@Validator.IsOptional()
id!: string;
@HideField()
workspaceId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:false})
createdAt!: Date | string;
@Field(() => Date, {nullable:false})
updatedAt!: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@HideField()
workspaceId!: string;
@Field(() => CommentThreadCountAggregate, {nullable:true})
_count?: CommentThreadCountAggregate;

View File

@ -8,15 +8,15 @@ export class CommentThreadMaxAggregateInput {
@Field(() => Boolean, {nullable:true})
id?: true;
@HideField()
workspaceId?: true;
@HideField()
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
@Field(() => Boolean, {nullable:true})
deletedAt?: true;
@HideField()
workspaceId?: true;
}

View File

@ -1,22 +1,25 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentThreadMaxAggregate {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@HideField()
workspaceId?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@HideField()
workspaceId?: string;
}

View File

@ -9,15 +9,15 @@ export class CommentThreadMaxOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
}

View File

@ -8,15 +8,15 @@ export class CommentThreadMinAggregateInput {
@Field(() => Boolean, {nullable:true})
id?: true;
@HideField()
workspaceId?: true;
@HideField()
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
@Field(() => Boolean, {nullable:true})
deletedAt?: true;
@HideField()
workspaceId?: true;
}

View File

@ -1,22 +1,25 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentThreadMinAggregate {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@HideField()
workspaceId?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@HideField()
workspaceId?: string;
}

View File

@ -9,15 +9,15 @@ export class CommentThreadMinOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
}

View File

@ -12,18 +12,18 @@ export class CommentThreadOrderByWithAggregationInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
@Field(() => CommentThreadCountOrderByAggregateInput, {nullable:true})
_count?: CommentThreadCountOrderByAggregateInput;

View File

@ -12,18 +12,18 @@ export class CommentThreadOrderByWithRelationInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
@Field(() => CommentThreadTargetOrderByRelationAggregateInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetOrderByRelationAggregateInput;

View File

@ -2,10 +2,10 @@ import { registerEnumType } from '@nestjs/graphql';
export enum CommentThreadScalarFieldEnum {
id = "id",
createdAt = "createdAt",
updatedAt = "updatedAt",
workspaceId = "workspaceId",
deletedAt = "deletedAt",
workspaceId = "workspaceId"
createdAt = "createdAt",
updatedAt = "updatedAt"
}

View File

@ -1,9 +1,9 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
@InputType()
export class CommentThreadScalarWhereWithAggregatesInput {
@ -20,15 +20,15 @@ export class CommentThreadScalarWhereWithAggregatesInput {
@Field(() => StringWithAggregatesFilter, {nullable:true})
id?: StringWithAggregatesFilter;
@HideField()
workspaceId?: StringWithAggregatesFilter;
@HideField()
deletedAt?: DateTimeNullableWithAggregatesFilter;
@Field(() => DateTimeWithAggregatesFilter, {nullable:true})
createdAt?: DateTimeWithAggregatesFilter;
@Field(() => DateTimeWithAggregatesFilter, {nullable:true})
updatedAt?: DateTimeWithAggregatesFilter;
@Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true})
deletedAt?: DateTimeNullableWithAggregatesFilter;
@HideField()
workspaceId?: StringWithAggregatesFilter;
}

View File

@ -1,9 +1,9 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFilter } from '../prisma/string-filter.input';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
@InputType()
export class CommentThreadScalarWhereInput {
@ -20,15 +20,15 @@ export class CommentThreadScalarWhereInput {
@Field(() => StringFilter, {nullable:true})
id?: StringFilter;
@HideField()
workspaceId?: StringFilter;
@HideField()
deletedAt?: DateTimeNullableFilter;
@Field(() => DateTimeFilter, {nullable:true})
createdAt?: DateTimeFilter;
@Field(() => DateTimeFilter, {nullable:true})
updatedAt?: DateTimeFilter;
@Field(() => DateTimeNullableFilter, {nullable:true})
deletedAt?: DateTimeNullableFilter;
@HideField()
workspaceId?: StringFilter;
}

View File

@ -1,5 +1,6 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input';
@ -7,20 +8,22 @@ import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../co
export class CommentThreadUncheckedCreateWithoutCommentThreadTargetsInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@HideField()
workspaceId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@HideField()
workspaceId!: string;
@Field(() => CommentUncheckedCreateNestedManyWithoutCommentThreadInput, {nullable:true})
comments?: CommentUncheckedCreateNestedManyWithoutCommentThreadInput;
}

View File

@ -1,5 +1,6 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input';
@ -7,20 +8,22 @@ import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput }
export class CommentThreadUncheckedCreateWithoutCommentsInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@HideField()
workspaceId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@HideField()
workspaceId!: string;
@Field(() => CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput;
}

View File

@ -1,5 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input';
import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input';
@ -7,17 +9,19 @@ import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../co
export class CommentThreadUncheckedCreateWithoutWorkspaceInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput;

View File

@ -1,5 +1,6 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input';
import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input';
@ -8,20 +9,22 @@ import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../co
export class CommentThreadUncheckedCreateInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@HideField()
workspaceId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@HideField()
workspaceId!: string;
@Field(() => CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput;

View File

@ -1,8 +1,9 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@InputType()
export class CommentThreadUncheckedUpdateManyWithoutCommentThreadsInput {
@ -10,12 +11,12 @@ export class CommentThreadUncheckedUpdateManyWithoutCommentThreadsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
}

View File

@ -1,9 +1,9 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@InputType()
export class CommentThreadUncheckedUpdateManyInput {
@ -11,15 +11,15 @@ export class CommentThreadUncheckedUpdateManyInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
}

View File

@ -1,9 +1,9 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input';
@InputType()
@ -12,18 +12,18 @@ export class CommentThreadUncheckedUpdateWithoutCommentThreadTargetsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
@Field(() => CommentUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
comments?: CommentUncheckedUpdateManyWithoutCommentThreadNestedInput;
}

View File

@ -1,9 +1,9 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input';
@InputType()
@ -12,18 +12,18 @@ export class CommentThreadUncheckedUpdateWithoutCommentsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
@Field(() => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput;
}

View File

@ -1,8 +1,9 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input';
import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input';
@ -12,15 +13,15 @@ export class CommentThreadUncheckedUpdateWithoutWorkspaceInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput;

View File

@ -1,9 +1,9 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input';
import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input';
@ -13,18 +13,18 @@ export class CommentThreadUncheckedUpdateInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
@Field(() => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput;

View File

@ -1,8 +1,9 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
@InputType()
export class CommentThreadUpdateManyMutationInput {
@ -10,12 +11,12 @@ export class CommentThreadUpdateManyMutationInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
}

View File

@ -1,11 +1,11 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input';
import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadUpdateWithoutCommentThreadTargetsInput {
@ -13,15 +13,15 @@ export class CommentThreadUpdateWithoutCommentThreadTargetsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
comments?: CommentUpdateManyWithoutCommentThreadNestedInput;

View File

@ -1,11 +1,11 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input';
import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadUpdateWithoutCommentsInput {
@ -13,15 +13,15 @@ export class CommentThreadUpdateWithoutCommentsInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput;

View File

@ -1,8 +1,9 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input';
import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input';
@ -12,15 +13,15 @@ export class CommentThreadUpdateWithoutWorkspaceInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput;

View File

@ -1,12 +1,12 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input';
import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input';
import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadUpdateInput {
@ -14,15 +14,15 @@ export class CommentThreadUpdateInput {
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
id?: StringFieldUpdateOperationsInput;
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput;

View File

@ -1,9 +1,12 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
@InputType()
export class CommentThreadWhereUniqueInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
}

View File

@ -1,9 +1,9 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFilter } from '../prisma/string-filter.input';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { HideField } from '@nestjs/graphql';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
import { CommentThreadTargetListRelationFilter } from '../comment-thread-target/comment-thread-target-list-relation-filter.input';
import { CommentListRelationFilter } from '../comment/comment-list-relation-filter.input';
import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input';
@ -23,18 +23,18 @@ export class CommentThreadWhereInput {
@Field(() => StringFilter, {nullable:true})
id?: StringFilter;
@HideField()
workspaceId?: StringFilter;
@HideField()
deletedAt?: DateTimeNullableFilter;
@Field(() => DateTimeFilter, {nullable:true})
createdAt?: DateTimeFilter;
@Field(() => DateTimeFilter, {nullable:true})
updatedAt?: DateTimeFilter;
@Field(() => DateTimeNullableFilter, {nullable:true})
deletedAt?: DateTimeNullableFilter;
@HideField()
workspaceId?: StringFilter;
@Field(() => CommentThreadTargetListRelationFilter, {nullable:true})
commentThreadTargets?: CommentThreadTargetListRelationFilter;

View File

@ -13,18 +13,18 @@ export class CommentThread {
@Field(() => ID, {nullable:false})
id!: string;
@HideField()
workspaceId!: string;
@HideField()
deletedAt!: Date | null;
@Field(() => Date, {nullable:false})
createdAt!: Date;
@Field(() => Date, {nullable:false})
updatedAt!: Date;
@Field(() => Date, {nullable:true})
deletedAt!: Date | null;
@HideField()
workspaceId!: string;
@Field(() => [CommentThreadTarget], {nullable:true})
commentThreadTargets?: Array<CommentThreadTarget>;

View File

@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadCreateManyInput } from './comment-thread-create-many.input';
import { Type } from 'class-transformer';
import { ValidateNested } from 'class-validator';
@ArgsType()
export class CreateManyCommentThreadArgs {
@Field(() => [CommentThreadCreateManyInput], {nullable:false})
@Type(() => CommentThreadCreateManyInput)
@ValidateNested({each: true})
@Type(() => CommentThreadCreateManyInput)
data!: Array<CommentThreadCreateManyInput>;
@Field(() => Boolean, {nullable:true})

View File

@ -2,11 +2,14 @@ import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadCreateInput } from './comment-thread-create.input';
import { Type } from 'class-transformer';
import { ValidateNested } from 'class-validator';
@ArgsType()
export class CreateOneCommentThreadArgs {
@Field(() => CommentThreadCreateInput, {nullable:false})
@Type(() => CommentThreadCreateInput)
@ValidateNested({each: true})
@Type(() => CommentThreadCreateInput)
data!: CommentThreadCreateInput;
}

View File

@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadUpdateManyMutationInput } from './comment-thread-update-many-mutation.input';
import { Type } from 'class-transformer';
import { ValidateNested } from 'class-validator';
import { CommentThreadWhereInput } from './comment-thread-where.input';
@ArgsType()
@ -9,6 +10,8 @@ export class UpdateManyCommentThreadArgs {
@Field(() => CommentThreadUpdateManyMutationInput, {nullable:false})
@Type(() => CommentThreadUpdateManyMutationInput)
@ValidateNested({each: true})
@Type(() => CommentThreadUpdateManyMutationInput)
data!: CommentThreadUpdateManyMutationInput;
@Field(() => CommentThreadWhereInput, {nullable:true})

View File

@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadUpdateInput } from './comment-thread-update.input';
import { Type } from 'class-transformer';
import { ValidateNested } from 'class-validator';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
@ArgsType()
@ -9,6 +10,8 @@ export class UpdateOneCommentThreadArgs {
@Field(() => CommentThreadUpdateInput, {nullable:false})
@Type(() => CommentThreadUpdateInput)
@ValidateNested({each: true})
@Type(() => CommentThreadUpdateInput)
data!: CommentThreadUpdateInput;
@Field(() => CommentThreadWhereUniqueInput, {nullable:false})

View File

@ -8,15 +8,6 @@ export class CommentCountAggregateInput {
@Field(() => Boolean, {nullable:true})
id?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
@Field(() => Boolean, {nullable:true})
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
body?: true;
@ -29,6 +20,15 @@ export class CommentCountAggregateInput {
@HideField()
workspaceId?: true;
@HideField()
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
@Field(() => Boolean, {nullable:true})
_all?: true;
}

View File

@ -9,15 +9,6 @@ export class CommentCountAggregate {
@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})
body!: number;
@ -30,6 +21,15 @@ export class CommentCountAggregate {
@HideField()
workspaceId!: number;
@HideField()
deletedAt!: number;
@Field(() => Int, {nullable:false})
createdAt!: number;
@Field(() => Int, {nullable:false})
updatedAt!: number;
@Field(() => Int, {nullable:false})
_all!: number;
}

View File

@ -9,15 +9,6 @@ export class CommentCountOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
body?: keyof typeof SortOrder;
@ -29,4 +20,13 @@ export class CommentCountOrderByAggregateInput {
@HideField()
workspaceId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
}

View File

@ -1,23 +1,18 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateManyAuthorInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:false})
@Validator.IsString()
body!: string;
@Field(() => String, {nullable:false})
@ -25,4 +20,13 @@ export class CommentCreateManyAuthorInput {
@HideField()
workspaceId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -1,23 +1,18 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateManyCommentThreadInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:false})
@Validator.IsString()
body!: string;
@Field(() => String, {nullable:false})
@ -25,4 +20,13 @@ export class CommentCreateManyCommentThreadInput {
@HideField()
workspaceId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -1,22 +1,18 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateManyWorkspaceInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:false})
@Validator.IsString()
body!: string;
@Field(() => String, {nullable:false})
@ -24,4 +20,13 @@ export class CommentCreateManyWorkspaceInput {
@Field(() => String, {nullable:false})
commentThreadId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -1,23 +1,18 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateManyInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:false})
@Validator.IsString()
body!: string;
@Field(() => String, {nullable:false})
@ -28,4 +23,13 @@ export class CommentCreateManyInput {
@HideField()
workspaceId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -1,27 +1,31 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thread/comment-thread-create-nested-one-without-comments.input';
import { WorkspaceCreateNestedOneWithoutCommentsInput } from '../workspace/workspace-create-nested-one-without-comments.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateWithoutAuthorInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => String, {nullable:false})
@Validator.IsString()
body!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:false})
body!: string;
@Field(() => CommentThreadCreateNestedOneWithoutCommentsInput, {nullable:false})
commentThread!: CommentThreadCreateNestedOneWithoutCommentsInput;

View File

@ -1,27 +1,31 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { UserCreateNestedOneWithoutCommentsInput } from '../user/user-create-nested-one-without-comments.input';
import { WorkspaceCreateNestedOneWithoutCommentsInput } from '../workspace/workspace-create-nested-one-without-comments.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateWithoutCommentThreadInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => String, {nullable:false})
@Validator.IsString()
body!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:false})
body!: string;
@Field(() => UserCreateNestedOneWithoutCommentsInput, {nullable:false})
author!: UserCreateNestedOneWithoutCommentsInput;

View File

@ -1,5 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { UserCreateNestedOneWithoutCommentsInput } from '../user/user-create-nested-one-without-comments.input';
import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thread/comment-thread-create-nested-one-without-comments.input';
@ -7,20 +9,23 @@ import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thr
export class CommentCreateWithoutWorkspaceInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => String, {nullable:false})
@Validator.IsString()
body!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:false})
body!: string;
@Field(() => UserCreateNestedOneWithoutCommentsInput, {nullable:false})
author!: UserCreateNestedOneWithoutCommentsInput;

View File

@ -1,28 +1,32 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { UserCreateNestedOneWithoutCommentsInput } from '../user/user-create-nested-one-without-comments.input';
import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thread/comment-thread-create-nested-one-without-comments.input';
import { WorkspaceCreateNestedOneWithoutCommentsInput } from '../workspace/workspace-create-nested-one-without-comments.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateInput {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => String, {nullable:false})
@Validator.IsString()
body!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:false})
body!: string;
@Field(() => UserCreateNestedOneWithoutCommentsInput, {nullable:false})
author!: UserCreateNestedOneWithoutCommentsInput;

View File

@ -1,5 +1,6 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
import { CommentCountAggregate } from './comment-count-aggregate.output';
import { CommentMinAggregate } from './comment-min-aggregate.output';
@ -9,18 +10,12 @@ import { CommentMaxAggregate } from './comment-max-aggregate.output';
export class CommentGroupBy {
@Field(() => String, {nullable:false})
@Validator.IsString()
@Validator.IsOptional()
id!: string;
@Field(() => Date, {nullable:false})
createdAt!: Date | string;
@Field(() => Date, {nullable:false})
updatedAt!: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:false})
@Validator.IsString()
body!: string;
@Field(() => String, {nullable:false})
@ -32,6 +27,15 @@ export class CommentGroupBy {
@HideField()
workspaceId!: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:false})
createdAt!: Date | string;
@Field(() => Date, {nullable:false})
updatedAt!: Date | string;
@Field(() => CommentCountAggregate, {nullable:true})
_count?: CommentCountAggregate;

View File

@ -8,15 +8,6 @@ export class CommentMaxAggregateInput {
@Field(() => Boolean, {nullable:true})
id?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
@Field(() => Boolean, {nullable:true})
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
body?: true;
@ -28,4 +19,13 @@ export class CommentMaxAggregateInput {
@HideField()
workspaceId?: true;
@HideField()
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
}

View File

@ -1,23 +1,18 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentMaxAggregate {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:true})
@Validator.IsString()
body?: string;
@Field(() => String, {nullable:true})
@ -28,4 +23,13 @@ export class CommentMaxAggregate {
@HideField()
workspaceId?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -9,15 +9,6 @@ export class CommentMaxOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
body?: keyof typeof SortOrder;
@ -29,4 +20,13 @@ export class CommentMaxOrderByAggregateInput {
@HideField()
workspaceId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
}

View File

@ -8,15 +8,6 @@ export class CommentMinAggregateInput {
@Field(() => Boolean, {nullable:true})
id?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
@Field(() => Boolean, {nullable:true})
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
body?: true;
@ -28,4 +19,13 @@ export class CommentMinAggregateInput {
@HideField()
workspaceId?: true;
@HideField()
deletedAt?: true;
@Field(() => Boolean, {nullable:true})
createdAt?: true;
@Field(() => Boolean, {nullable:true})
updatedAt?: true;
}

View File

@ -1,23 +1,18 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentMinAggregate {
@Field(() => String, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
id?: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
@Field(() => Date, {nullable:true})
deletedAt?: Date | string;
@Field(() => String, {nullable:true})
@Validator.IsString()
body?: string;
@Field(() => String, {nullable:true})
@ -28,4 +23,13 @@ export class CommentMinAggregate {
@HideField()
workspaceId?: string;
@HideField()
deletedAt?: Date | string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}

View File

@ -9,15 +9,6 @@ export class CommentMinOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
body?: keyof typeof SortOrder;
@ -29,4 +20,13 @@ export class CommentMinOrderByAggregateInput {
@HideField()
workspaceId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
}

View File

@ -12,15 +12,6 @@ export class CommentOrderByWithAggregationInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
body?: keyof typeof SortOrder;
@ -33,6 +24,15 @@ export class CommentOrderByWithAggregationInput {
@HideField()
workspaceId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => CommentCountOrderByAggregateInput, {nullable:true})
_count?: CommentCountOrderByAggregateInput;

View File

@ -12,15 +12,6 @@ export class CommentOrderByWithRelationInput {
@Field(() => SortOrder, {nullable:true})
id?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
body?: keyof typeof SortOrder;
@ -33,6 +24,15 @@ export class CommentOrderByWithRelationInput {
@HideField()
workspaceId?: keyof typeof SortOrder;
@HideField()
deletedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, {nullable:true})
updatedAt?: keyof typeof SortOrder;
@Field(() => UserOrderByWithRelationInput, {nullable:true})
author?: UserOrderByWithRelationInput;

View File

@ -2,13 +2,13 @@ import { registerEnumType } from '@nestjs/graphql';
export enum CommentScalarFieldEnum {
id = "id",
createdAt = "createdAt",
updatedAt = "updatedAt",
deletedAt = "deletedAt",
body = "body",
authorId = "authorId",
commentThreadId = "commentThreadId",
workspaceId = "workspaceId"
workspaceId = "workspaceId",
deletedAt = "deletedAt",
createdAt = "createdAt",
updatedAt = "updatedAt"
}

Some files were not shown because too many files have changed in this diff Show More