unlight / prisma-nestjs-graphql

Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module
MIT License
510 stars 76 forks source link

Type 'UserCreateInput' is not assignable to type '(Without<UserCreateInput>) #118

Open Signaturo opened 2 years ago

Signaturo commented 2 years ago

Hello! There was an error that didn't exist before. Everything worked correctly before I started migrating from Angular v13 → 14.

To do this, I updated...

  1. Typescript from 4.4.3 (I don't remember the version.) to 4.7.3
  2. Node.js from 12.2.. to 16.15.1

When i started api app i get this error:

ERROR in libs/users/api/src/lib/services/user.service.ts:61:17
TS2322: Type 'UserUpdateInput' is not assignable to type '(Without<UserUpdateInput, UserUncheckedUpdateInput> & UserUncheckedUpdateInput) | (Without<...> & UserUpdateInput)'.
  Type 'UserUpdateInput' is not assignable to type 'Without<UserUncheckedUpdateInput, UserUpdateInput> & UserUpdateInput'.
    Type 'import("prisma/src/lib/@generated/prisma-nestjs-graphql/user/user-update.input").UserUpdateInput' is not assignable to type 'import("project/node_modules/.prisma/client/index").Prisma.UserUpdateInput'.
      The types of 'products.create' are incompatible between these types.
        Type 'ProductCreateWithoutAuthorInput[]' is not assignable to type '(Without<ProductCreateWithoutAuthorInput, ProductUncheckedCreateWithoutAuthorInput> & ProductUncheckedCreateWithoutAuthorInput) | ... 6 more ... | (Without<...> & ProductCreateWithoutAuthorInput[])'.

    59 |             return this.prisma.user.update({
    60 |                 where: {id},
    61 |                 data
       |                 ^^^^
    62 |
    63 |             })
    64 |     } 

webpack compiled with 5 errors (c73eca68bbd75609)
async updateOneCat(where:CategoryWhereUniqueInput, data: CategoryUpdateInput): Promise<Category> {
    return this.prisma.category.update({
      where: where,
      data: data
    })

In general, type incompatibility is observed on different models that I don't use yet. More details in the attached bug-report.odt.

Configuration in schema.prisma:

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["fullTextIndex", "extendedIndexes"]

}

generator nestgraphql {
  provider                    = "node node_modules/prisma-nestjs-graphql"
  output                      = "../libs/data-access/prisma/src/lib/@generated/prisma-nestjs-graphql"
  useInputType_WhereInput_ALL = "WhereInput"
  fields_Validator_from       = "class-validator"
  fields_Validator_input      = true
}

datasource db {
  provider = "mongodb"
  url      = env("MONGODB_URI")
}

Examples of models of their schema:

model User {
  id         String       @id @default(auto()) @map("_id") @db.ObjectId
  ID         Int?         @unique
  email      String       @unique
  hash   String?
  hashedRt String?
  phone      String?      @unique
  firstName  String?
  secondName String?
  lastName   String?
  role       Role         @default(USER)
  isAdmin    Boolean      @default(false)
  products   Product[]    @relation("ProductAuthor") //1:n
  shops      Shop[] //1:n
  addressFrom AddressFrom[]
  account_id  String?  @unique @db.ObjectId
  account Account? @relation(fields: [account_id], references: [id])
  registerdAt DateTime  @default(now())
  updatedAt DateTime? @updatedAt
}

model Category {
  id         String      @id @default(auto()) @map("_id") @db.ObjectId
  ID         Int?
  name       String
  blueprints Blueprint[]
  color      String? 
  icon       String?
  image      String?
  productId String?  @unique @db.ObjectId
  products  Product? @relation("productCategory", fields: [productId], references: [id])
  createdAt DateTime? @default(now())
  updatedAt DateTime? @updatedAt
}

Environment "@prisma/client": "3.14.0", "prisma": "3.14.0", "prisma-nestjs-graphql": "16.0.1", "@nestjs/common": "^8.0.0", "@nestjs/core": "^8.0.0", "@nestjs/graphql": "^10.0.8", "typescript": "4.7.3"

I really appreciate your help in solving this problem 🙏 .

cchenot commented 2 years ago

Facing this issue as well after updating typescript, had to rollback to earlier version.

unlight commented 2 years ago

There is an issue related to typescript when trying compare big models with recursion, if you are brave to patch typescript try this solution https://github.com/unlight/prisma-nestjs-graphql/issues/65#issuecomment-994742228

Signaturo commented 2 years ago

I got rid of the "TS2321: Excessive stack depth comparing types" error the way you suggested, but only on Typescript 4.4.3. Run without errors.

On version 4.7.3 - error TS2321 pops up again and is no longer solved by editing "targetDepth = 200" in tsc.js. + With the update of the TS version, another error is added "TS2322: Type 'ModelnameCreateInput' is not assignable to type '(Without<ModelnameCreateInput).

Rollback to version TS 4.6.2 - doesn't solve the above errors.

On version TS 4.4.3 - api with prisma-nestjs-graphql runs without errors. I'm left here without typed forms on Angular 14. 😢

Tell me) At the basis of the TS2322 and TS2321 errors is the same problem that has not been solved since 2019? Is there any other way to bring this issue to the attention of the typescript team?)

AienTech commented 1 year ago

The issue appears to be coming from typescript package. For testing it, I upgraded from ^4.3.5 to ^4.8.4 and the issue is fixed now.

so far, it can be fixed by yarn add -D typescript

rchoffar commented 1 year ago

I got rid of the "TS2321: Excessive stack depth comparing types" error the way you suggested, but only on Typescript 4.4.3. Run without errors.

On version 4.7.3 - error TS2321 pops up again and is no longer solved by editing "targetDepth = 200" in tsc.js. + With the update of the TS version, another error is added "TS2322: Type 'ModelnameCreateInput' is not assignable to type '(Without<ModelnameCreateInput).

Rollback to version TS 4.6.2 - doesn't solve the above errors.

On version TS 4.4.3 - api with prisma-nestjs-graphql runs without errors. I'm left here without typed forms on Angular 14. 😢

Tell me) At the basis of the TS2322 and TS2321 errors is the same problem that has not been solved since 2019? Is there any other way to bring this issue to the attention of the typescript team?)

4.4.3 worked for me thx

bigfree commented 8 months ago

I have same problem. I run docker/wsl with nestjs and after start show me this messy type errors:

src/message-type/message-type.service.ts:23:54 - error TS2345: Argument of type 'CreateOneMessageTypeArgs' is not assignable to parameter of type '{ select?: MessageTypeSelect<DefaultArgs> | null | undefined; include?: MessageTypeInclude<DefaultArgs> | null | undefined; data: (Without<...> & MessageTypeUncheckedCreateInput) | (Without<...> & MessageTypeCreateInput); }'.
message-system-backend_ms-1  |   Types of property 'data' are incompatible.
message-system-backend_ms-1  |     Type 'MessageTypeCreateInput' is not assignable to type '(Without<MessageTypeCreateInput, MessageTypeUncheckedCreateInput> & MessageTypeUncheckedCreateInput) | (Without<...> & MessageTypeCreateInput)'.
message-system-backend_ms-1  |       Type 'MessageTypeCreateInput' is not assignable to type 'Without<MessageTypeUncheckedCreateInput, MessageTypeCreateInput> & MessageTypeCreateInput'.
message-system-backend_ms-1  |         Type 'import("/usr/src/message-system/src/generated/message-type/message-type-create.input").MessageTypeCreateInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageTypeCreateInput'.
message-system-backend_ms-1  |           The types of 'createdUser.create' are incompatible between these types.
message-system-backend_ms-1  |             Type 'UserCreateWithoutCreatedMessagesTypeInput | undefined' is not assignable to type '(Without<UserCreateWithoutCreatedMessagesTypeInput, UserUncheckedCreateWithoutCreatedMessagesTypeInput> & UserUncheckedCreateWithoutCreatedMessagesTypeInput) | (Without<...> & UserCreateWithoutCreatedMessagesTypeInput) | undefined'.
message-system-backend_ms-1  |               Type 'UserCreateWithoutCreatedMessagesTypeInput' is not assignable to type '(Without<UserCreateWithoutCreatedMessagesTypeInput, UserUncheckedCreateWithoutCreatedMessagesTypeInput> & UserUncheckedCreateWithoutCreatedMessagesTypeInput) | (Without<...> & UserCreateWithoutCreatedMessagesTypeInput) | undefined'.
message-system-backend_ms-1  |                 Type 'UserCreateWithoutCreatedMessagesTypeInput' is not assignable to type 'Without<UserUncheckedCreateWithoutCreatedMessagesTypeInput, UserCreateWithoutCreatedMessagesTypeInput> & UserCreateWithoutCreatedMessagesTypeInput'.
message-system-backend_ms-1  |                   Type 'import("/usr/src/message-system/src/generated/user/user-create-without-created-messages-type.input").UserCreateWithoutCreatedMessagesTypeInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserCreateWithoutCreatedMessagesTypeInput'.
message-system-backend_ms-1  |                     Types of property 'userContacts' are incompatible.
message-system-backend_ms-1  |                       Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-create-nested-many-without-user.input").UserContactCreateNestedManyWithoutUserInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactCreateNestedManyWithoutUserInput | undefined'.
message-system-backend_ms-1  |
message-system-backend_ms-1  | 23         return this.prismaService.messageType.create(createOneMessageTypeArgs);
message-system-backend_ms-1  |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  | src/message-type/message-type.service.ts:59:54 - error TS2345: Argument of type '{ include: { message: true; createdUser: true; }; data: MessageTypeUpdateInput; where: ({ id: string | undefined; } & MessageTypeWhereUniqueInput) | ({ ...; } & MessageTypeWhereUniqueInput) | ({ ...; } & MessageTypeWhereUniqueInput); }' is not assignable to parameter of type '{ select?: MessageTypeSelect<DefaultArgs> | null | undefined; include?: MessageTypeInclude<DefaultArgs> | null | undefined; data: (Without<...> & MessageTypeUncheckedUpdateInput) | (Without<...> & MessageTypeUpdateInput); where: MessageTypeWhereUniqueInput; }'.
message-system-backend_ms-1  |   Types of property 'data' are incompatible.
message-system-backend_ms-1  |     Type 'MessageTypeUpdateInput' is not assignable to type '(Without<MessageTypeUpdateInput, MessageTypeUncheckedUpdateInput> & MessageTypeUncheckedUpdateInput) | (Without<...> & MessageTypeUpdateInput)'.
message-system-backend_ms-1  |       Type 'MessageTypeUpdateInput' is not assignable to type 'Without<MessageTypeUncheckedUpdateInput, MessageTypeUpdateInput> & MessageTypeUpdateInput'.
message-system-backend_ms-1  |         Type 'import("/usr/src/message-system/src/generated/message-type/message-type-update.input").MessageTypeUpdateInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageTypeUpdateInput'.
message-system-backend_ms-1  |           Types of property 'createdUser' are incompatible.
message-system-backend_ms-1  |             Type 'import("/usr/src/message-system/src/generated/user/user-update-one-required-without-created-messages-type-nested.input").UserUpdateOneRequiredWithoutCreatedMessagesTypeNestedInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserUpdateOneRequiredWithoutCreatedMessagesTypeNestedInput | undefined'.
message-system-backend_ms-1  |               Type 'import("/usr/src/message-system/src/generated/user/user-update-one-required-without-created-messages-type-nested.input").UserUpdateOneRequiredWithoutCreatedMessagesTypeNestedInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserUpdateOneRequiredWithoutCreatedMessagesTypeNestedInput'.
message-system-backend_ms-1  |                 Types of property 'create' are incompatible.
message-system-backend_ms-1  |                   Type 'UserCreateWithoutCreatedMessagesTypeInput | undefined' is not assignable to type '(Without<UserCreateWithoutCreatedMessagesTypeInput, UserUncheckedCreateWithoutCreatedMessagesTypeInput> & UserUncheckedCreateWithoutCreatedMessagesTypeInput) | (Without<...> & UserCreateWithoutCreatedMessagesTypeInput) | undefined'.
message-system-backend_ms-1  |
message-system-backend_ms-1  |  59         return this.prismaService.messageType.update({
message-system-backend_ms-1  |                                                          ~
message-system-backend_ms-1  |  60             ...updateOneMessageTypeArgs,
message-system-backend_ms-1  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
message-system-backend_ms-1  | ...
message-system-backend_ms-1  |  64             },
message-system-backend_ms-1  |     ~~~~~~~~~~~~~~
message-system-backend_ms-1  |  65         });
message-system-backend_ms-1  |     ~~~~~~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  | src/message/message.service.ts:23:15 - error TS2322: Type '{ id: string; prefix: string | null; title: string; body: string; createdUserId: string; messageTypeId: string; status: MessageStatus | null; createdAt: Date | null; }' is not assignable to type '{ messageType: { id: string; name: string; description: string | null; color: string | null; createdUserId: string; createdAt: Date | null; }; createdUser: { id: string; firstName: string; ... 4 more ...; createdAt: Date | null; }; assignUsers: ({ ...; } & { ...; })[]; assignGroups: ({ ...; } & { ...; })[]; } & { .....'.
message-system-backend_ms-1  |   Type '{ id: string; prefix: string | null; title: string; body: string; createdUserId: string; messageTypeId: string; status: MessageStatus | null; createdAt: Date | null; }' is missing the following properties from type '{ messageType: { id: string; name: string; description: string | null; color: string | null; createdUserId: string; createdAt: Date | null; }; createdUser: { id: string; firstName: string; ... 4 more ...; createdAt: Date | null; }; assignUsers: ({ ...; } & { ...; })[]; assignGroups: ({ ...; } & { ...; })[]; }': messageType, createdUser, assignUsers, assignGroups
message-system-backend_ms-1  |
message-system-backend_ms-1  | 23         const newMessage: Prisma.MessageGetPayload<{
message-system-backend_ms-1  |                  ~~~~~~~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  | src/message/message.service.ts:50:20 - error TS2321: Excessive stack depth comparing types '{ include: { createdUser: true; messageType: true; assignGroups: { include: { userGroup: { include: { assignUsers: { include: { userContacts: true; }; }; }; }; }; }; assignUsers: { include: { user: { include: { ...; }; }; }; }; }; data: MessageCreateInput; }' and 'MessageCreateArgs<DefaultArgs>'.
message-system-backend_ms-1  |
message-system-backend_ms-1  |  50         }> = await this.prismaService.message.create({
message-system-backend_ms-1  |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
message-system-backend_ms-1  |  51             ...createOneMessageArgs,
message-system-backend_ms-1  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
message-system-backend_ms-1  | ...
message-system-backend_ms-1  |  77             },
message-system-backend_ms-1  |     ~~~~~~~~~~~~~~
message-system-backend_ms-1  |  78         });
message-system-backend_ms-1  |     ~~~~~~~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  |
message-system-backend_ms-1  | src/message/message.service.ts:50:54 - error TS2345: Argument of type '{ include: { createdUser: true; messageType: true; assignGroups: { include: { userGroup: { include: { assignUsers: { include: { userContacts: true; }; }; }; }; }; }; assignUsers: { include: { user: { include: { ...; }; }; }; }; }; data: MessageCreateInput; }' is not assignable to parameter of type '{ select?: MessageSelect<DefaultArgs> | null | undefined; include?: MessageInclude<DefaultArgs> | null | undefined; data: (Without<...> & MessageUncheckedCreateInput) | (Without<...> & MessageCreateInput); }'.
message-system-backend_ms-1  |   Types of property 'data' are incompatible.
message-system-backend_ms-1  |     Type 'MessageCreateInput' is not assignable to type '(Without<MessageCreateInput, MessageUncheckedCreateInput> & MessageUncheckedCreateInput) | (Without<...> & MessageCreateInput)'.
message-system-backend_ms-1  |       Type 'MessageCreateInput' is not assignable to type 'Without<MessageUncheckedCreateInput, MessageCreateInput> & MessageCreateInput'.
message-system-backend_ms-1  |         Type 'import("/usr/src/message-system/src/generated/message/message-create.input").MessageCreateInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageCreateInput'.
message-system-backend_ms-1  |           The types of 'createdUser.create' are incompatible between these types.
message-system-backend_ms-1  |             Type 'UserCreateWithoutCreatedMessagesInput | undefined' is not assignable to type '(Without<UserCreateWithoutCreatedMessagesInput, UserUncheckedCreateWithoutCreatedMessagesInput> & UserUncheckedCreateWithoutCreatedMessagesInput) | (Without<...> & UserCreateWithoutCreatedMessagesInput) | undefined'.
message-system-backend_ms-1  |               Type 'UserCreateWithoutCreatedMessagesInput' is not assignable to type '(Without<UserCreateWithoutCreatedMessagesInput, UserUncheckedCreateWithoutCreatedMessagesInput> & UserUncheckedCreateWithoutCreatedMessagesInput) | (Without<...> & UserCreateWithoutCreatedMessagesInput) | undefined'.
message-system-backend_ms-1  |                 Type 'UserCreateWithoutCreatedMessagesInput' is not assignable to type 'Without<UserUncheckedCreateWithoutCreatedMessagesInput, UserCreateWithoutCreatedMessagesInput> & UserCreateWithoutCreatedMessagesInput'.
message-system-backend_ms-1  |                   Type 'import("/usr/src/message-system/src/generated/user/user-create-without-created-messages.input").UserCreateWithoutCreatedMessagesInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserCreateWithoutCreatedMessagesInput'.
message-system-backend_ms-1  |                     Types of property 'userContacts' are incompatible.
message-system-backend_ms-1  |                       Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-create-nested-many-without-user.input").UserContactCreateNestedManyWithoutUserInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactCreateNestedManyWithoutUserInput | undefined'.
message-system-backend_ms-1  |                         Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-create-nested-many-without-user.input").UserContactCreateNestedManyWithoutUserInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactCreateNestedManyWithoutUserInput'.
message-system-backend_ms-1  |                           Types of property 'create' are incompatible.
message-system-backend_ms-1  |                             Type 'UserContactCreateWithoutUserInput[] | undefined' is not assignable to type '(Without<UserContactCreateWithoutUserInput, UserContactUncheckedCreateWithoutUserInput> & UserContactUncheckedCreateWithoutUserInput) | (Without<...> & UserContactCreateWithoutUserInput) | UserContactCreateWithoutUserInput[] | UserContactUncheckedCreateWithoutUserInput[] | undefined'.
message-system-backend_ms-1  |                               Type 'UserContactCreateWithoutUserInput[]' is not assignable to type '(Without<UserContactCreateWithoutUserInput, UserContactUncheckedCreateWithoutUserInput> & UserContactUncheckedCreateWithoutUserInput) | (Without<...> & UserContactCreateWithoutUserInput) | UserContactCreateWithoutUserInput[] | UserContactUncheckedCreateWithoutUserInput[] | undefined'.
message-system-backend_ms-1  |                                 Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-create-without-user.input").UserContactCreateWithoutUserInput[]' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactCreateWithoutUserInput[]'.
message-system-backend_ms-1  |                                   Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-create-without-user.input").UserContactCreateWithoutUserInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactCreateWithoutUserInput'.
message-system-backend_ms-1  |                                     Types of property 'queue' are incompatible.
message-system-backend_ms-1  |                                       Type 'import("/usr/src/message-system/src/generated/queue/queue-create-nested-many-without-user-contact.input").QueueCreateNestedManyWithoutUserContactInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.QueueCreateNestedManyWithoutUserContactInput | undefined'.
message-system-backend_ms-1  |                                         Type 'import("/usr/src/message-system/src/generated/queue/queue-create-nested-many-without-user-contact.input").QueueCreateNestedManyWithoutUserContactInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.QueueCreateNestedManyWithoutUserContactInput'.
message-system-backend_ms-1  |                                           Types of property 'create' are incompatible.
message-system-backend_ms-1  |                                             Type 'QueueCreateWithoutUserContactInput[] | undefined' is not assignable to type '(Without<QueueCreateWithoutUserContactInput, QueueUncheckedCreateWithoutUserContactInput> & QueueUncheckedCreateWithoutUserContactInput) | (Without<...> & QueueCreateWithoutUserContactInput) | QueueCreateWithoutUserContactInput[] | QueueUncheckedCreateWithoutUserContactInput[] | undefined'.
message-system-backend_ms-1  |                                               Type 'QueueCreateWithoutUserContactInput[]' is not assignable to type '(Without<QueueCreateWithoutUserContactInput, QueueUncheckedCreateWithoutUserContactInput> & QueueUncheckedCreateWithoutUserContactInput) | (Without<...> & QueueCreateWithoutUserContactInput) | QueueCreateWithoutUserContactInput[] | QueueUncheckedCreateWithoutUserContactInput[] | undefined'.
message-system-backend_ms-1  |                                                 Type 'import("/usr/src/message-system/src/generated/queue/queue-create-without-user-contact.input").QueueCreateWithoutUserContactInput[]' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.QueueCreateWithoutUserContactInput[]'.
message-system-backend_ms-1  |                                                   Type 'import("/usr/src/message-system/src/generated/queue/queue-create-without-user-contact.input").QueueCreateWithoutUserContactInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.QueueCreateWithoutUserContactInput'.
message-system-backend_ms-1  |                                                     The types of 'user.create' are incompatible between these types.
message-system-backend_ms-1  |                                                       Type 'UserCreateWithoutQueueInput | undefined' is not assignable to type '(Without<UserCreateWithoutQueueInput, UserUncheckedCreateWithoutQueueInput> & UserUncheckedCreateWithoutQueueInput) | (Without<...> & UserCreateWithoutQueueInput) | undefined'.
message-system-backend_ms-1  |                                                         Type 'UserCreateWithoutQueueInput' is not assignable to type '(Without<UserCreateWithoutQueueInput, UserUncheckedCreateWithoutQueueInput> & UserUncheckedCreateWithoutQueueInput) | (Without<...> & UserCreateWithoutQueueInput) | undefined'.
message-system-backend_ms-1  |                                                           Type 'UserCreateWithoutQueueInput' is not assignable to type 'Without<UserUncheckedCreateWithoutQueueInput, UserCreateWithoutQueueInput> & UserCreateWithoutQueueInput'.
message-system-backend_ms-1  |                                                             Type 'import("/usr/src/message-system/src/generated/user/user-create-without-queue.input").UserCreateWithoutQueueInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserCreateWithoutQueueInput'.
message-system-backend_ms-1  |                                                               Types of property 'createdMessages' are incompatible.
message-system-backend_ms-1  |                                                                 Type 'import("/usr/src/message-system/src/generated/message/message-create-nested-many-without-created-user.input").MessageCreateNestedManyWithoutCreatedUserInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageCreateNestedManyWithoutCreatedUserInput | undefined'.
message-system-backend_ms-1  |                                                                   Type 'import("/usr/src/message-system/src/generated/message/message-create-nested-many-without-created-user.input").MessageCreateNestedManyWithoutCreatedUserInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageCreateNestedManyWithoutCreatedUserInput'.
message-system-backend_ms-1  |                                                                     Types of property 'create' are incompatible.
message-system-backend_ms-1  |                                                                       Type 'MessageCreateWithoutCreatedUserInput[] | undefined' is not assignable to type '(Without<MessageCreateWithoutCreatedUserInput, MessageUncheckedCreateWithoutCreatedUserInput> & MessageUncheckedCreateWithoutCreatedUserInput) | (Without<...> & MessageCreateWithoutCreatedUserInput) | MessageCreateWithoutCreatedUserInput[] | MessageUncheckedCreateWithoutCreatedUserInput[] | undefined'.
message-system-backend_ms-1  |                                                                         Type 'MessageCreateWithoutCreatedUserInput[]' is not assignable to type '(Without<MessageCreateWithoutCreatedUserInput, MessageUncheckedCreateWithoutCreatedUserInput> & MessageUncheckedCreateWithoutCreatedUserInput) | (Without<...> & MessageCreateWithoutCreatedUserInput) | MessageCreateWithoutCreatedUserInput[] | MessageUncheckedCreateWithoutCreatedUserInput[] | undefined'.
message-system-backend_ms-1  |                                                                           Type 'import("/usr/src/message-system/src/generated/message/message-create-without-created-user.input").MessageCreateWithoutCreatedUserInput[]' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageCreateWithoutCreatedUserInput[]'.
message-system-backend_ms-1  |                                                                             Type 'import("/usr/src/message-system/src/generated/message/message-create-without-created-user.input").MessageCreateWithoutCreatedUserInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageCreateWithoutCreatedUserInput'.
message-system-backend_ms-1  |                                                                               Types of property 'assignUsers' are incompatible.
message-system-backend_ms-1  |                                                                                 Type 'import("/usr/src/message-system/src/generated/assign-users-on-message/assign-users-on-message-create-nested-many-without-message.input").AssignUsersOnMessageCreateNestedManyWithoutMessageInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.AssignUsersOnMessageCreateNestedManyWithoutMessageInput | undefined'.
message-system-backend_ms-1  |                                                                                   Type 'import("/usr/src/message-system/src/generated/assign-users-on-message/assign-users-on-message-create-nested-many-without-message.input").AssignUsersOnMessageCreateNestedManyWithoutMessageInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.AssignUsersOnMessageCreateNestedManyWithoutMessageInput'.
message-system-backend_ms-1  |                                                                                     Types of property 'create' are incompatible.
message-system-backend_ms-1  |                                                                                       Type 'AssignUsersOnMessageCreateWithoutMessageInput[] | undefined' is not assignable to type '(Without<AssignUsersOnMessageCreateWithoutMessageInput, AssignUsersOnMessageUncheckedCreateWithoutMessageInput> & AssignUsersOnMessageUncheckedCreateWithoutMessageInput) | (Without<...> & AssignUsersOnMessageCreateWithoutMessageInput) | AssignUsersOnMessageCreateWithoutMessageInput[] | AssignUsersOnMessageUncheckedC...'.
message-system-backend_ms-1  |                                                                                         Type 'AssignUsersOnMessageCreateWithoutMessageInput[]' is not assignable to type '(Without<AssignUsersOnMessageCreateWithoutMessageInput, AssignUsersOnMessageUncheckedCreateWithoutMessageInput> & AssignUsersOnMessageUncheckedCreateWithoutMessageInput) | (Without<...> & AssignUsersOnMessageCreateWithoutMessageInput) | AssignUsersOnMessageCreateWithoutMessageInput[] | AssignUsersOnMessageUncheckedC...'.
message-system-backend_ms-1  |                                                                                           Type 'import("/usr/src/message-system/src/generated/assign-users-on-message/assign-users-on-message-create-without-message.input").AssignUsersOnMessageCreateWithoutMessageInput[]' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.AssignUsersOnMessageCreateWithoutMessageInput[]'.
message-system-backend_ms-1  |                                                                                             Type 'import("/usr/src/message-system/src/generated/assign-users-on-message/assign-users-on-message-create-without-message.input").AssignUsersOnMessageCreateWithoutMessageInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.AssignUsersOnMessageCreateWithoutMessageInput'.
message-system-backend_ms-1  |                                                                                               The types of 'user.create' are incompatible between these types.
message-system-backend_ms-1  |                                                                                                 Type 'UserCreateWithoutAssignMessagesInput | undefined' is not assignable to type '(Without<UserCreateWithoutAssignMessagesInput, UserUncheckedCreateWithoutAssignMessagesInput> & UserUncheckedCreateWithoutAssignMessagesInput) | (Without<...> & UserCreateWithoutAssignMessagesInput) | undefined'.
message-system-backend_ms-1  |                                                                                                   Type 'UserCreateWithoutAssignMessagesInput' is not assignable to type '(Without<UserCreateWithoutAssignMessagesInput, UserUncheckedCreateWithoutAssignMessagesInput> & UserUncheckedCreateWithoutAssignMessagesInput) | (Without<...> & UserCreateWithoutAssignMessagesInput) | undefined'.
message-system-backend_ms-1  |                                                                                                     Type 'UserCreateWithoutAssignMessagesInput' is not assignable to type 'Without<UserUncheckedCreateWithoutAssignMessagesInput, UserCreateWithoutAssignMessagesInput> & UserCreateWithoutAssignMessagesInput'.
message-system-backend_ms-1  |                                                                                                       Type 'import("/usr/src/message-system/src/generated/user/user-create-without-assign-messages.input").UserCreateWithoutAssignMessagesInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserCreateWithoutAssignMessagesInput'.
message-system-backend_ms-1  |                                                                                                         Types of property 'createdMessagesType' are incompatible.
message-system-backend_ms-1  |                                                                                                           Type 'import("/usr/src/message-system/src/generated/message-type/message-type-create-nested-many-without-created-user.input").MessageTypeCreateNestedManyWithoutCreatedUserInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageTypeCreateNestedManyWithoutCreatedUserInput | undefined'.
message-system-backend_ms-1  |                                                                                                             Type 'import("/usr/src/message-system/src/generated/message-type/message-type-create-nested-many-without-created-user.input").MessageTypeCreateNestedManyWithoutCreatedUserInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageTypeCreateNestedManyWithoutCreatedUserInput'.
message-system-backend_ms-1  |                                                                                                               Types of property 'create' are incompatible.
message-system-backend_ms-1  |                                                                                                                 Type 'MessageTypeCreateWithoutCreatedUserInput[] | undefined' is not assignable to type '(Without<MessageTypeCreateWithoutCreatedUserInput, MessageTypeUncheckedCreateWithoutCreatedUserInput> & MessageTypeUncheckedCreateWithoutCreatedUserInput) | (Without<...> & MessageTypeCreateWithoutCreatedUserInput) | MessageTypeCreateWithoutCreatedUserInput[] | MessageTypeUncheckedCreateWithoutCreatedUserInput[] | u...'.
message-system-backend_ms-1  |                                                                                                                   Type 'MessageTypeCreateWithoutCreatedUserInput[]' is not assignable to type '(Without<MessageTypeCreateWithoutCreatedUserInput, MessageTypeUncheckedCreateWithoutCreatedUserInput> & MessageTypeUncheckedCreateWithoutCreatedUserInput) | (Without<...> & MessageTypeCreateWithoutCreatedUserInput) | MessageTypeCreateWithoutCreatedUserInput[] | MessageTypeUncheckedCreateWithoutCreatedUserInput[] | u...'.
message-system-backend_ms-1  |                                                                                                                     Type 'import("/usr/src/message-system/src/generated/message-type/message-type-create-without-created-user.input").MessageTypeCreateWithoutCreatedUserInput[]' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageTypeCreateWithoutCreatedUserInput[]'.
message-system-backend_ms-1  |                                                                                                                       Type 'import("/usr/src/message-system/src/generated/message-type/message-type-create-without-created-user.input").MessageTypeCreateWithoutCreatedUserInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageTypeCreateWithoutCreatedUserInput'.
message-system-backend_ms-1  |                                                                                                                         Types of property 'message' are incompatible.
message-system-backend_ms-1  |
 Type 'import("/usr/src/message-system/src/generated/message/message-create-nested-many-without-message-type.input").MessageCreateNestedManyWithoutMessageTypeInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageCreateNestedManyWithoutMessageTypeInput | undefined'.
message-system-backend_ms-1  |
   Type 'import("/usr/src/message-system/src/generated/message/message-create-nested-many-without-message-type.input").MessageCreateNestedManyWithoutMessageTypeInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageCreateNestedManyWithoutMessageTypeInput'.
message-system-backend_ms-1  |
     Types of property 'create' are incompatible.
message-system-backend_ms-1  |
       Type 'MessageCreateWithoutMessageTypeInput[] | undefined' is not assignable to type '(Without<MessageCreateWithoutMessageTypeInput, MessageUncheckedCreateWithoutMessageTypeInput> & MessageUncheckedCreateWithoutMessageTypeInput) | (Without<...> & MessageCreateWithoutMessageTypeInput) | MessageCreateWithoutMessageTypeInput[] | MessageUncheckedCreateWithoutMessageTypeInput[] | undefined'.
message-system-backend_ms-1  |
         Type 'MessageCreateWithoutMessageTypeInput[]' is not assignable to type '(Without<MessageCreateWithoutMessageTypeInput, MessageUncheckedCreateWithoutMessageTypeInput> & MessageUncheckedCreateWithoutMessageTypeInput) | (Without<...> & MessageCreateWithoutMessageTypeInput) | MessageCreateWithoutMessageTypeInput[] | MessageUncheckedCreateWithoutMessageTypeInput[] | undefined'.
message-system-backend_ms-1  |
           Type 'import("/usr/src/message-system/src/generated/message/message-create-without-message-type.input").MessageCreateWithoutMessageTypeInput[]' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageCreateWithoutMessageTypeInput[]'.
message-system-backend_ms-1  |
             Type 'import("/usr/src/message-system/src/generated/message/message-create-without-message-type.input").MessageCreateWithoutMessageTypeInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageCreateWithoutMessageTypeInput'.
message-system-backend_ms-1  |
               The types of 'createdUser.create' are incompatible between these types.
message-system-backend_ms-1  |
                 Type 'UserCreateWithoutCreatedMessagesInput | undefined' is not assignable to type '(Without<UserCreateWithoutCreatedMessagesInput, UserUncheckedCreateWithoutCreatedMessagesInput> & UserUncheckedCreateWithoutCreatedMessagesInput) | (Without<...> & UserCreateWithoutCreatedMessagesInput) | undefined'.
message-system-backend_ms-1  |
                   Type 'UserCreateWithoutCreatedMessagesInput' is not assignable to type '(Without<UserCreateWithoutCreatedMessagesInput, UserUncheckedCreateWithoutCreatedMessagesInput> & UserUncheckedCreateWithoutCreatedMessagesInput) | (Without<...> & UserCreateWithoutCreatedMessagesInput) | undefined'.
message-system-backend_ms-1  |
message-system-backend_ms-1  |  50         }> = await this.prismaService.message.create({
message-system-backend_ms-1  |                                                          ~
message-system-backend_ms-1  |  51             ...createOneMessageArgs,
message-system-backend_ms-1  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
message-system-backend_ms-1  | ...
message-system-backend_ms-1  |  77             },
message-system-backend_ms-1  |     ~~~~~~~~~~~~~~
message-system-backend_ms-1  |  78         });
message-system-backend_ms-1  |     ~~~~~~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  |
message-system-backend_ms-1  | src/user-contact/user-contact.service.ts:20:13 - error TS2322: Type 'UserContactCreateInput' is not assignable to type '(Without<UserContactCreateInput, UserContactUncheckedCreateInput> & UserContactUncheckedCreateInput) | (Without<...> & UserContactCreateInput)'.
message-system-backend_ms-1  |   Type 'UserContactCreateInput' is not assignable to type 'Without<UserContactUncheckedCreateInput, UserContactCreateInput> & UserContactCreateInput'.
message-system-backend_ms-1  |     Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-create.input").UserContactCreateInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactCreateInput'.
message-system-backend_ms-1  |       The types of 'user.create' are incompatible between these types.
message-system-backend_ms-1  |         Type 'UserCreateWithoutUserContactsInput | undefined' is not assignable to type '(Without<UserCreateWithoutUserContactsInput, UserUncheckedCreateWithoutUserContactsInput> & UserUncheckedCreateWithoutUserContactsInput) | (Without<...> & UserCreateWithoutUserContactsInput) | undefined'.
message-system-backend_ms-1  |           Type 'UserCreateWithoutUserContactsInput' is not assignable to type '(Without<UserCreateWithoutUserContactsInput, UserUncheckedCreateWithoutUserContactsInput> & UserUncheckedCreateWithoutUserContactsInput) | (Without<...> & UserCreateWithoutUserContactsInput) | undefined'.
message-system-backend_ms-1  |             Type 'UserCreateWithoutUserContactsInput' is not assignable to type 'Without<UserUncheckedCreateWithoutUserContactsInput, UserCreateWithoutUserContactsInput> & UserCreateWithoutUserContactsInput'.
message-system-backend_ms-1  |               Type 'import("/usr/src/message-system/src/generated/user/user-create-without-user-contacts.input").UserCreateWithoutUserContactsInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserCreateWithoutUserContactsInput'.
message-system-backend_ms-1  |                 Types of property 'createdMessages' are incompatible.
message-system-backend_ms-1  |                   Type 'import("/usr/src/message-system/src/generated/message/message-create-nested-many-without-created-user.input").MessageCreateNestedManyWithoutCreatedUserInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.MessageCreateNestedManyWithoutCreatedUserInput | undefined'.
message-system-backend_ms-1  |
message-system-backend_ms-1  | 20             data: createOneUserContactArgs.data,
message-system-backend_ms-1  |                ~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  |   node_modules/.prisma/client/index.d.ts:4911:5
message-system-backend_ms-1  |     4911     data: XOR<UserContactCreateInput, UserContactUncheckedCreateInput>
message-system-backend_ms-1  |              ~~~~
message-system-backend_ms-1  |     The expected type comes from property 'data' which is declared here on type '{ select?: UserContactSelect<DefaultArgs> | null | undefined; include?: UserContactInclude<DefaultArgs> | null | undefined; data: (Without<...> & UserContactUncheckedCreateInput) | (Without<...> & UserContactCreateInput); }'
message-system-backend_ms-1  |
message-system-backend_ms-1  |
message-system-backend_ms-1  | src/user-contact/user-contact.service.ts:36:54 - error TS2345: Argument of type 'UpdateOneUserContactArgs' is not assignable to parameter of type '{ select?: UserContactSelect<DefaultArgs> | null | undefined; include?: UserContactInclude<DefaultArgs> | null | undefined; data: (Without<...> & UserContactUncheckedUpdateInput) | (Without<...> & UserContactUpdateInput); where: UserContactWhereUniqueInput; }'.
message-system-backend_ms-1  |   Types of property 'data' are incompatible.
message-system-backend_ms-1  |     Type 'UserContactUpdateInput' is not assignable to type '(Without<UserContactUpdateInput, UserContactUncheckedUpdateInput> & UserContactUncheckedUpdateInput) | (Without<...> & UserContactUpdateInput)'.
message-system-backend_ms-1  |       Type 'UserContactUpdateInput' is not assignable to type 'Without<UserContactUncheckedUpdateInput, UserContactUpdateInput> & UserContactUpdateInput'.
message-system-backend_ms-1  |         Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-update.input").UserContactUpdateInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactUpdateInput'.
message-system-backend_ms-1  |           Types of property 'user' are incompatible.
message-system-backend_ms-1  |             Type 'import("/usr/src/message-system/src/generated/user/user-update-one-required-without-user-contacts-nested.input").UserUpdateOneRequiredWithoutUserContactsNestedInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserUpdateOneRequiredWithoutUserContactsNestedInput | undefined'.
message-system-backend_ms-1  |               Type 'import("/usr/src/message-system/src/generated/user/user-update-one-required-without-user-contacts-nested.input").UserUpdateOneRequiredWithoutUserContactsNestedInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserUpdateOneRequiredWithoutUserContactsNestedInput'.
message-system-backend_ms-1  |                 Types of property 'create' are incompatible.
message-system-backend_ms-1  |                   Type 'UserCreateWithoutUserContactsInput | undefined' is not assignable to type '(Without<UserCreateWithoutUserContactsInput, UserUncheckedCreateWithoutUserContactsInput> & UserUncheckedCreateWithoutUserContactsInput) | (Without<...> & UserCreateWithoutUserContactsInput) | undefined'.
message-system-backend_ms-1  |
message-system-backend_ms-1  | 36         return this.prismaService.userContact.update(updateOneUserContactArgs);
message-system-backend_ms-1  |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  |
message-system-backend_ms-1  | src/user-group/user-group.service.ts:21:52 - error TS2345: Argument of type '{ include: { _count: { select: { userGroupContact: true; assignUsers: true; assignMessages: true; }; }; createdBy: true; assignUsers: true; userGroupContact: true; assignMessages: true; userGroupSettings: true; }; data: UserGroupCreateInput; }' is not assignable to parameter of type '{ select?: UserGroupSelect<DefaultArgs> | null | undefined; include?: UserGroupInclude<DefaultArgs> | null | undefined; data: (Without<...> & UserGroupUncheckedCreateInput) | (Without<...> & UserGroupCreateInput); }'.
message-system-backend_ms-1  |   Types of property 'data' are incompatible.
message-system-backend_ms-1  |     Type 'UserGroupCreateInput' is not assignable to type '(Without<UserGroupCreateInput, UserGroupUncheckedCreateInput> & UserGroupUncheckedCreateInput) | (Without<...> & UserGroupCreateInput)'.
message-system-backend_ms-1  |       Type 'UserGroupCreateInput' is not assignable to type 'Without<UserGroupUncheckedCreateInput, UserGroupCreateInput> & UserGroupCreateInput'.
message-system-backend_ms-1  |         Type 'import("/usr/src/message-system/src/generated/user-group/user-group-create.input").UserGroupCreateInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserGroupCreateInput'.
message-system-backend_ms-1  |           Types of property 'assignUsers' are incompatible.
message-system-backend_ms-1  |             Type 'import("/usr/src/message-system/src/generated/user/user-create-nested-many-without-belong-groups.input").UserCreateNestedManyWithoutBelongGroupsInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserCreateNestedManyWithoutBelongGroupsInput | undefined'.
message-system-backend_ms-1  |               Type 'import("/usr/src/message-system/src/generated/user/user-create-nested-many-without-belong-groups.input").UserCreateNestedManyWithoutBelongGroupsInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserCreateNestedManyWithoutBelongGroupsInput'.
message-system-backend_ms-1  |                 Types of property 'create' are incompatible.
message-system-backend_ms-1  |                   Type 'UserCreateWithoutBelongGroupsInput[] | undefined' is not assignable to type '(Without<UserCreateWithoutBelongGroupsInput, UserUncheckedCreateWithoutBelongGroupsInput> & UserUncheckedCreateWithoutBelongGroupsInput) | (Without<...> & UserCreateWithoutBelongGroupsInput) | UserCreateWithoutBelongGroupsInput[] | UserUncheckedCreateWithoutBelongGroupsInput[] | undefined'.
message-system-backend_ms-1  |                     Type 'UserCreateWithoutBelongGroupsInput[]' is not assignable to type '(Without<UserCreateWithoutBelongGroupsInput, UserUncheckedCreateWithoutBelongGroupsInput> & UserUncheckedCreateWithoutBelongGroupsInput) | (Without<...> & UserCreateWithoutBelongGroupsInput) | UserCreateWithoutBelongGroupsInput[] | UserUncheckedCreateWithoutBelongGroupsInput[] | undefined'.
message-system-backend_ms-1  |                       Type 'import("/usr/src/message-system/src/generated/user/user-create-without-belong-groups.input").UserCreateWithoutBelongGroupsInput[]' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserCreateWithoutBelongGroupsInput[]'.
message-system-backend_ms-1  |                         Type 'import("/usr/src/message-system/src/generated/user/user-create-without-belong-groups.input").UserCreateWithoutBelongGroupsInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserCreateWithoutBelongGroupsInput'.
message-system-backend_ms-1  |                           Types of property 'userContacts' are incompatible.
message-system-backend_ms-1  |                             Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-create-nested-many-without-user.input").UserContactCreateNestedManyWithoutUserInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactCreateNestedManyWithoutUserInput | undefined'.
message-system-backend_ms-1  |                               Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-create-nested-many-without-user.input").UserContactCreateNestedManyWithoutUserInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactCreateNestedManyWithoutUserInput'.
message-system-backend_ms-1  |                                 Types of property 'create' are incompatible.
message-system-backend_ms-1  |                                   Type 'UserContactCreateWithoutUserInput[] | undefined' is not assignable to type '(Without<UserContactCreateWithoutUserInput, UserContactUncheckedCreateWithoutUserInput> & UserContactUncheckedCreateWithoutUserInput) | (Without<...> & UserContactCreateWithoutUserInput) | UserContactCreateWithoutUserInput[] | UserContactUncheckedCreateWithoutUserInput[] | undefined'.
message-system-backend_ms-1  |                                     Type 'UserContactCreateWithoutUserInput[]' is not assignable to type '(Without<UserContactCreateWithoutUserInput, UserContactUncheckedCreateWithoutUserInput> & UserContactUncheckedCreateWithoutUserInput) | (Without<...> & UserContactCreateWithoutUserInput) | UserContactCreateWithoutUserInput[] | UserContactUncheckedCreateWithoutUserInput[] | undefined'.
message-system-backend_ms-1  |                                       Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-create-without-user.input").UserContactCreateWithoutUserInput[]' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactCreateWithoutUserInput[]'.
message-system-backend_ms-1  |
message-system-backend_ms-1  |  21         return this.prismaService.userGroup.create({
message-system-backend_ms-1  |                                                        ~
message-system-backend_ms-1  |  22             ...createOneUserGroupArgs,
message-system-backend_ms-1  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
message-system-backend_ms-1  | ...
message-system-backend_ms-1  |  36             },
message-system-backend_ms-1  |     ~~~~~~~~~~~~~~
message-system-backend_ms-1  |  37         });
message-system-backend_ms-1  |     ~~~~~~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  | src/user-group/user-group.service.ts:93:52 - error TS2345: Argument of type '{ include: { _count: { select: { userGroupContact: true; assignUsers: true; assignMessages: true; }; }; createdBy: true; assignUsers: true; userGroupContact: true; assignMessages: true; userGroupSettings: true; }; data: UserGroupUpdateInput; where: ({ ...; } & UserGroupWhereUniqueInput) | ... 1 more ... | ({ ...; } ...' is not assignable to parameter of type '{ select?: UserGroupSelect<DefaultArgs> | null | undefined; include?: UserGroupInclude<DefaultArgs> | null | undefined; data: (Without<...> & UserGroupUncheckedUpdateInput) | (Without<...> & UserGroupUpdateInput); where: UserGroupWhereUniqueInput; }'.
message-system-backend_ms-1  |   Types of property 'data' are incompatible.
message-system-backend_ms-1  |     Type 'UserGroupUpdateInput' is not assignable to type '(Without<UserGroupUpdateInput, UserGroupUncheckedUpdateInput> & UserGroupUncheckedUpdateInput) | (Without<...> & UserGroupUpdateInput)'.
message-system-backend_ms-1  |       Type 'UserGroupUpdateInput' is not assignable to type 'Without<UserGroupUncheckedUpdateInput, UserGroupUpdateInput> & UserGroupUpdateInput'.
message-system-backend_ms-1  |         Type 'import("/usr/src/message-system/src/generated/user-group/user-group-update.input").UserGroupUpdateInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserGroupUpdateInput'.
message-system-backend_ms-1  |           Types of property 'assignUsers' are incompatible.
message-system-backend_ms-1  |             Type 'import("/usr/src/message-system/src/generated/user/user-update-many-without-belong-groups-nested.input").UserUpdateManyWithoutBelongGroupsNestedInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserUpdateManyWithoutBelongGroupsNestedInput | undefined'.
message-system-backend_ms-1  |               Type 'import("/usr/src/message-system/src/generated/user/user-update-many-without-belong-groups-nested.input").UserUpdateManyWithoutBelongGroupsNestedInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserUpdateManyWithoutBelongGroupsNestedInput'.
message-system-backend_ms-1  |                 Types of property 'create' are incompatible.
message-system-backend_ms-1  |                   Type 'UserCreateWithoutBelongGroupsInput[] | undefined' is not assignable to type '(Without<UserCreateWithoutBelongGroupsInput, UserUncheckedCreateWithoutBelongGroupsInput> & UserUncheckedCreateWithoutBelongGroupsInput) | (Without<...> & UserCreateWithoutBelongGroupsInput) | UserCreateWithoutBelongGroupsInput[] | UserUncheckedCreateWithoutBelongGroupsInput[] | undefined'.
message-system-backend_ms-1  |
message-system-backend_ms-1  |  93         return this.prismaService.userGroup.update({
message-system-backend_ms-1  |                                                        ~
message-system-backend_ms-1  |  94             ...updateOneUserGroupArgs,
message-system-backend_ms-1  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
message-system-backend_ms-1  | ...
message-system-backend_ms-1  | 108             },
message-system-backend_ms-1  |     ~~~~~~~~~~~~~~
message-system-backend_ms-1  | 109         });
message-system-backend_ms-1  |     ~~~~~~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  |
message-system-backend_ms-1  | src/user-profile/user-profile.service.ts:18:54 - error TS2345: Argument of type '{ data: UserProfileCreateInput; }' is not assignable to parameter of type '{ select?: UserProfileSelect<DefaultArgs> | null | undefined; include?: UserProfileInclude<DefaultArgs> | null | undefined; data: (Without<...> & UserProfileUncheckedCreateInput) | (Without<...> & UserProfileCreateInput); }'.
message-system-backend_ms-1  |   Types of property 'data' are incompatible.
message-system-backend_ms-1  |     Type 'UserProfileCreateInput' is not assignable to type '(Without<UserProfileCreateInput, UserProfileUncheckedCreateInput> & UserProfileUncheckedCreateInput) | (Without<...> & UserProfileCreateInput)'.
message-system-backend_ms-1  |       Type 'UserProfileCreateInput' is not assignable to type 'Without<UserProfileUncheckedCreateInput, UserProfileCreateInput> & UserProfileCreateInput'.
message-system-backend_ms-1  |         Type 'import("/usr/src/message-system/src/generated/user-profile/user-profile-create.input").UserProfileCreateInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserProfileCreateInput'.
message-system-backend_ms-1  |           The types of 'user.create' are incompatible between these types.
message-system-backend_ms-1  |             Type 'UserCreateWithoutProfileInput | undefined' is not assignable to type '(Without<UserCreateWithoutProfileInput, UserUncheckedCreateWithoutProfileInput> & UserUncheckedCreateWithoutProfileInput) | (Without<...> & UserCreateWithoutProfileInput) | undefined'.
message-system-backend_ms-1  |               Type 'UserCreateWithoutProfileInput' is not assignable to type '(Without<UserCreateWithoutProfileInput, UserUncheckedCreateWithoutProfileInput> & UserUncheckedCreateWithoutProfileInput) | (Without<...> & UserCreateWithoutProfileInput) | undefined'.
message-system-backend_ms-1  |                 Type 'UserCreateWithoutProfileInput' is not assignable to type 'Without<UserUncheckedCreateWithoutProfileInput, UserCreateWithoutProfileInput> & UserCreateWithoutProfileInput'.
message-system-backend_ms-1  |                   Type 'import("/usr/src/message-system/src/generated/user/user-create-without-profile.input").UserCreateWithoutProfileInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserCreateWithoutProfileInput'.
message-system-backend_ms-1  |                     Types of property 'userContacts' are incompatible.
message-system-backend_ms-1  |                       Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-create-nested-many-without-user.input").UserContactCreateNestedManyWithoutUserInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactCreateNestedManyWithoutUserInput | undefined'.
message-system-backend_ms-1  |
message-system-backend_ms-1  | 18         return this.prismaService.userProfile.create({
message-system-backend_ms-1  |                                                         ~
message-system-backend_ms-1  | 19             ...createOneUserProfileArgs,
message-system-backend_ms-1  |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
message-system-backend_ms-1  | 20         });
message-system-backend_ms-1  |    ~~~~~~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  | src/user-profile/user-profile.service.ts:30:54 - error TS2345: Argument of type '{ data: UserProfileUpdateInput; where: ({ id: string | undefined; } & UserProfileWhereUniqueInput) | ({ userId: string | undefined; } & UserProfileWhereUniqueInput) | ({ ...; } & UserProfileWhereUniqueInput); }' is not assignable to parameter of type '{ select?: UserProfileSelect<DefaultArgs> | null | undefined; include?: UserProfileInclude<DefaultArgs> | null | undefined; data: (Without<...> & UserProfileUncheckedUpdateInput) | (Without<...> & UserProfileUpdateInput); where: UserProfileWhereUniqueInput; }'.
message-system-backend_ms-1  |   Types of property 'data' are incompatible.
message-system-backend_ms-1  |     Type 'UserProfileUpdateInput' is not assignable to type '(Without<UserProfileUpdateInput, UserProfileUncheckedUpdateInput> & UserProfileUncheckedUpdateInput) | (Without<...> & UserProfileUpdateInput)'.
message-system-backend_ms-1  |       Type 'UserProfileUpdateInput' is not assignable to type 'Without<UserProfileUncheckedUpdateInput, UserProfileUpdateInput> & UserProfileUpdateInput'.
message-system-backend_ms-1  |         Type 'import("/usr/src/message-system/src/generated/user-profile/user-profile-update.input").UserProfileUpdateInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserProfileUpdateInput'.
message-system-backend_ms-1  |           Types of property 'user' are incompatible.
message-system-backend_ms-1  |             Type 'import("/usr/src/message-system/src/generated/user/user-update-one-required-without-profile-nested.input").UserUpdateOneRequiredWithoutProfileNestedInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserUpdateOneRequiredWithoutProfileNestedInput | undefined'.
message-system-backend_ms-1  |               Type 'import("/usr/src/message-system/src/generated/user/user-update-one-required-without-profile-nested.input").UserUpdateOneRequiredWithoutProfileNestedInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserUpdateOneRequiredWithoutProfileNestedInput'.
message-system-backend_ms-1  |                 Types of property 'create' are incompatible.
message-system-backend_ms-1  |                   Type 'UserCreateWithoutProfileInput | undefined' is not assignable to type '(Without<UserCreateWithoutProfileInput, UserUncheckedCreateWithoutProfileInput> & UserUncheckedCreateWithoutProfileInput) | (Without<...> & UserCreateWithoutProfileInput) | undefined'.
message-system-backend_ms-1  |
message-system-backend_ms-1  | 30         return this.prismaService.userProfile.update({
message-system-backend_ms-1  |                                                         ~
message-system-backend_ms-1  | 31             ...updateOneUserProfileArgs,
message-system-backend_ms-1  |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
message-system-backend_ms-1  | 32         });
message-system-backend_ms-1  |    ~~~~~~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  |
message-system-backend_ms-1  | src/user/user.service.ts:28:13 - error TS2322: Type '{ password: string; profile: { create: { acronym: string; }; }; id?: string | undefined; firstName: string; lastName: string; username?: string | undefined; email: string; createdAt?: string | Date | undefined; ... 6 more ...; belongGroups?: UserGroupCreateNestedManyWithoutAssignUsersInput | undefined; }' is not assignable to type '(Without<UserCreateInput, UserUncheckedCreateInput> & UserUncheckedCreateInput) | (Without<...> & UserCreateInput)'.
message-system-backend_ms-1  |   Type '{ password: string; profile: { create: { acronym: string; }; }; id?: string | undefined; firstName: string; lastName: string; username?: string | undefined; email: string; createdAt?: string | Date | undefined; ... 6 more ...; belongGroups?: UserGroupCreateNestedManyWithoutAssignUsersInput | undefined; }' is not assignable to type 'Without<UserUncheckedCreateInput, UserCreateInput> & UserCreateInput'.
message-system-backend_ms-1  |     Type '{ password: string; profile: { create: { acronym: string; }; }; id?: string | undefined; firstName: string; lastName: string; username?: string | undefined; email: string; createdAt?: string | Date | undefined; ... 6 more ...; belongGroups?: UserGroupCreateNestedManyWithoutAssignUsersInput | undefined; }' is not assignable to type 'UserCreateInput'.
message-system-backend_ms-1  |       Types of property 'userContacts' are incompatible.
message-system-backend_ms-1  |         Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-create-nested-many-without-user.input").UserContactCreateNestedManyWithoutUserInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactCreateNestedManyWithoutUserInput | undefined'.
message-system-backend_ms-1  |
message-system-backend_ms-1  | 28             data: {
message-system-backend_ms-1  |                ~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  |   node_modules/.prisma/client/index.d.ts:2876:5
message-system-backend_ms-1  |     2876     data: XOR<UserCreateInput, UserUncheckedCreateInput>
message-system-backend_ms-1  |              ~~~~
message-system-backend_ms-1  |     The expected type comes from property 'data' which is declared here on type '{ select?: UserSelect<DefaultArgs> | null | undefined; include?: UserInclude<DefaultArgs> | null | undefined; data: (Without<UserCreateInput, UserUncheckedCreateInput> & UserUncheckedCreateInput) | (Without<...> & UserCreateInput); }'
message-system-backend_ms-1  |
message-system-backend_ms-1  | src/user/user.service.ts:107:47 - error TS2345: Argument of type '{ include: { _count: { select: { userContacts: true; queue: true; assignMessages: true; createdMessagesType: true; belongGroups: true; createdUserGroup: true; createdMessages: true; }; }; createdUserGroup: true; ... 6 more ...; profile: true; }; data: UserUpdateInput; where: ({ ...; } & UserWhereUniqueInput) | ... 2...' is not assignable to parameter of type '{ select?: UserSelect<DefaultArgs> | null | undefined; include?: UserInclude<DefaultArgs> | null | undefined; data: (Without<UserUpdateInput, UserUncheckedUpdateInput> & UserUncheckedUpdateInput) | (Without<...> & UserUpdateInput); where: UserWhereUniqueInput; }'.
message-system-backend_ms-1  |   Types of property 'data' are incompatible.
message-system-backend_ms-1  |     Type 'UserUpdateInput' is not assignable to type '(Without<UserUpdateInput, UserUncheckedUpdateInput> & UserUncheckedUpdateInput) | (Without<...> & UserUpdateInput)'.
message-system-backend_ms-1  |       Type 'UserUpdateInput' is not assignable to type 'Without<UserUncheckedUpdateInput, UserUpdateInput> & UserUpdateInput'.
message-system-backend_ms-1  |         Type 'import("/usr/src/message-system/src/generated/user/user-update.input").UserUpdateInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserUpdateInput'.
message-system-backend_ms-1  |           Types of property 'userContacts' are incompatible.
message-system-backend_ms-1  |             Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-update-many-without-user-nested.input").UserContactUpdateManyWithoutUserNestedInput | undefined' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactUpdateManyWithoutUserNestedInput | undefined'.
message-system-backend_ms-1  |               Type 'import("/usr/src/message-system/src/generated/user-contact/user-contact-update-many-without-user-nested.input").UserContactUpdateManyWithoutUserNestedInput' is not assignable to type 'import("/usr/src/message-system/node_modules/.prisma/client/index").Prisma.UserContactUpdateManyWithoutUserNestedInput'.
message-system-backend_ms-1  |                 Types of property 'create' are incompatible.
message-system-backend_ms-1  |                   Type 'UserContactCreateWithoutUserInput[] | undefined' is not assignable to type '(Without<UserContactCreateWithoutUserInput, UserContactUncheckedCreateWithoutUserInput> & UserContactUncheckedCreateWithoutUserInput) | (Without<...> & UserContactCreateWithoutUserInput) | UserContactCreateWithoutUserInput[] | UserContactUncheckedCreateWithoutUserInput[] | undefined'.
message-system-backend_ms-1  |
message-system-backend_ms-1  | 107         return this.prismaService.user.update({
message-system-backend_ms-1  |                                                   ~
message-system-backend_ms-1  | 108             ...updateOneUserArgs,
message-system-backend_ms-1  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
message-system-backend_ms-1  | ...
message-system-backend_ms-1  | 129             }
message-system-backend_ms-1  |     ~~~~~~~~~~~~~
message-system-backend_ms-1  | 130         });
message-system-backend_ms-1  |     ~~~~~~~~~
message-system-backend_ms-1  |
message-system-backend_ms-1  |
message-system-backend_ms-1  | [1:36:52 PM] Found 13 errors. Watching for file changes.

it will help me if I delete the "generated" folder in the system and run the command again:

yarn prisma generate

Here is my model:

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native", "linux-musl-openssl-3.0.x", "debian-openssl-1.1.x"]
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

// https://github.com/unlight/prisma-nestjs-graphql
generator nestgraphql {
  provider               = "node node_modules/prisma-nestjs-graphql"
  output                 = "../src/generated"
  purgeOutput            = true
  reExport               = Directories
  fields_Validator_from  = "class-validator"
  fields_Validator_input = true
}

model User {
  /// @HideField({ match: 'User*@(Create|Update)*Input' })
  id                  String                 @id @default(cuid())
  firstName           String                 @db.VarChar(100)
  lastName            String                 @db.VarChar(100)
  username            String?                @unique @db.VarChar(100)
  /// @Validator.IsEmail()
  email               String                 @unique @db.VarChar(100)
  /// @HideField({ match: 'User*@(Where)*Input', output: true })
  password            String
  userContacts        UserContact[]
  /// @HideField({ match: 'User*@(Create|Update)*Input' })
  createdMessages     Message[]              @relation(name: "createdMessagesRelation")
  /// @HideField({ match: 'User*@(Create|Update)*Input' })
  createdMessagesType MessageType[]
  /// @HideField({ match: 'User*@(Create|Update)*Input' })
  createdUserGroup    UserGroup[]
  /// @HideField({ match: 'User*@(Create|Update)*Input' })
  assignMessages      AssignUsersOnMessage[]
  /// @HideField({ match: 'User*@(Create|Update)*Input' })
  queue               Queue[]
  /// @HideField({ match: 'User*@(Create|Update)*Input' })
  belongGroups        UserGroup[]            @relation("AssignUserOnUserGroup")
  profile             UserProfile?
  /// @HideField({ match: 'User*@(Create|Update)*Input' })
  createdAt           DateTime?              @default(now())
}

model UserProfile {
  /// @HideField({ match: 'UserProfile*@(Create|Update)*Input' })
  id        String    @id @default(cuid())
  user      User      @relation(fields: [userId], references: [id])
  userId    String    @unique
  avatar    String?   @db.VarChar(255)
  /// @HideField({ input: true, output: false })
  acronym   String?   @db.VarChar(2)
  /// @HideField({ match: 'UserProfile*@(Create|Update)*Input' })
  createdAt DateTime? @default(now())
}

model UserContact {
  /// @HideField({ match: 'UserContact*@(Create|Update)*Input' })
  id          String            @id @default(cuid())
  contactType UserContactType
  value       String            @unique @db.VarChar(255)
  status      UserContactStatus @default(ACTIVE)
  user        User              @relation(fields: [userId], references: [id])
  userId      String
  /// @HideField({ match: 'UserContact*@(Create|Update)*Input' })
  queue       Queue[]
  /// @HideField({ match: 'UserContact*@(Create|Update)*Input' })
  createdAt   DateTime?         @default(now())
}

model Message {
  /// @HideField({ match: 'Message*@(Create|Update)*Input' })
  id            String                     @id @default(cuid())
  prefix        String?                    @db.VarChar(255)
  title         String                     @db.VarChar(255)
  body          String                     @db.Text
  createdUser   User                       @relation(fields: [createdUserId], references: [id], name: "createdMessagesRelation")
  createdUserId String
  assignUsers   AssignUsersOnMessage[]
  assignGroups  AssignUserGroupOnMessage[]
  messageType   MessageType                @relation(fields: [messageTypeId], references: [id])
  messageTypeId String
  status        MessageStatus?             @default(CREATED)
  /// @HideField({ match: 'Message*@(Create|Update)*Input' })
  createdAt     DateTime?                  @default(now())
}

model MessageType {
  /// @HideField({ match: 'MessageType*@(Create|Update)*Input' })
  id            String    @id @default(cuid())
  name          String    @unique @db.VarChar(100)
  description   String?   @db.VarChar(400)
  color         String?   @db.VarChar(20)
  createdUser   User      @relation(fields: [createdUserId], references: [id])
  createdUserId String
  /// @HideField({ match: 'MessageType*@(Create|Update)*Input' })
  message       Message[]
  /// @HideField({ match: 'MessageType*@(Create|Update)*Input' })
  createdAt     DateTime? @default(now())
}

model UserGroup {
  /// @HideField({ match: 'UserGroup*@(Create|Update)*Input' })
  id                String                     @id @default(cuid())
  name              String                     @unique @db.VarChar(255)
  userGroupSettings UserGroupSettings?
  assignUsers       User[]                     @relation("AssignUserOnUserGroup")
  userGroupContact  UserGroupContact[]
  /// @HideField({ match: 'UserGroup*@(Create|Update)*Input' })
  assignMessages    AssignUserGroupOnMessage[]
  status            UserGroupStatus            @default(ACTIVE)
  createdBy         User                       @relation(fields: [createdById], references: [id])
  createdById       String
  /// @HideField({ match: 'UserGroup*@(Create|Update)*Input' })
  createdAt         DateTime?                  @default(now())
}

model UserGroupContact {
  /// @HideField({ match: 'UserGroupContact*@(Create|Update)*Input' })
  id          String            @id @default(cuid())
  contactType UserContactType
  value       String            @unique @db.VarChar(255)
  status      UserContactStatus
  userGroup   UserGroup         @relation(fields: [uerGroupId], references: [id])
  uerGroupId  String
  /// @HideField({ match: 'UserGroupContact*@(Create|Update)*Input' })
  createdAt   DateTime?         @default(now())
}

model UserGroupSettings {
  /// @HideField({ match: 'UserGroupSettings*@(Create|Update)*Input' })
  id          String    @id @default(cuid())
  userGroup   UserGroup @relation(fields: [userGroupId], references: [id])
  userGroupId String    @unique
  description String?   @db.VarChar(500)
  color       String?   @db.VarChar(20)
  avatar      String?   @db.VarChar(255)
}

model Queue {
  /// @HideField({ match: 'Queue*@(Create|Update)*Input' })
  id            String      @id @default(cuid())
  user          User        @relation(fields: [userId], references: [id])
  userId        String
  userContact   UserContact @relation(fields: [userContactId], references: [id])
  userContactId String
  /// @HideField({ input: true, output: false })
  jobId         Int?        @db.Integer()
  status        String?     @db.VarChar(20)
  /// @HideField({ input: true, output: false })
  failedReason  String?     @db.VarChar(400)
  /// @HideField({ input: true, output: false })
  enqueueAt     DateTime?
  /// @HideField({ input: true, output: false })
  attempt       Int?
  /// @HideField({ input: true, output: false })
  finishedAt    DateTime?

  @@index([userId, userContactId, jobId])
}

model AssignUsersOnMessage {
  user      User      @relation(fields: [userId], references: [id])
  userId    String
  message   Message   @relation(fields: [messageId], references: [id])
  messageId String
  /// @HideField({ match: 'AssignUsersOnMessage*@(Create|Update)*Input' })
  createdAt DateTime? @default(now())

  @@id([userId, messageId])
}

model AssignUserGroupOnMessage {
  userGroup   UserGroup @relation(fields: [userGroupId], references: [id])
  userGroupId String
  message     Message   @relation(fields: [messageId], references: [id])
  messageId   String
  /// @HideField({ match: 'AssignUserGroupOnMessage*@(Create|Update)*Input' })
  createdAt   DateTime? @default(now())

  @@id([userGroupId, messageId])
}

enum UserContactStatus {
  ACTIVE
  PENDING
  UNACTIVE
  DELETED
}

enum UserGroupStatus {
  ACTIVE
  PENDING
  UNACTIVE
  DELETED
}

enum UserContactType {
  SMS
  EMAIL
}

enum MessageStatus {
  CREATED
  PROCESS
  DONE
}

it's annoying to keep deleting the "generated" folder every time you run it. Can anyone help me?

garysb commented 4 months ago

Hi @bigfree , did you manage to find a solution to the error you have above as I have the same problem and any suggestions would be highly appreciated.

bigfree commented 3 months ago

Hi @bigfree , did you manage to find a solution to the error you have above as I have the same problem and any suggestions would be highly appreciated.

Hi @garysb , I don't have good news for you. I couldn't solve the problem, it is a hobby project so i parked it for a while. If you could come up with any solution that would help, i would be very grateful.

btw, it doesn't happen to me in new projects, so i don't really understand it..