Hey. Just a quick question. I am rewriting a Postg...
# orm-help
v
Hey. Just a quick question. I am rewriting a Postgres DB to make it working nice with prisma 2. I am trying to create self m to m relation. Based on documentation: https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-schema/relations#many-to-many-self-relations But I’ve got an warning from CLI:
Copy code
These models do not have a unique identifier or id and are therefore commented out.
• "UserFollows"
And my generated schema doesn’t looks right:
Copy code
// The underlying table does not contain a unique identifier and can therefore currently not be handled.
// model UserFollows {
  // A                         String
  // B                         String
  // User_UserTo_UserFollows_A User   @relation("UserTo_UserFollows_A", fields: [A], references: [id])
  // User_UserTo_UserFollows_B User   @relation("UserTo_UserFollows_B", fields: [B], references: [id])

  // @@map("_UserFollows")
// }
So that is the correct way to implement self many to many relation?