When creating a many2many relationship between 2 models, if there is a CHECK constraint on the primary key of one, that setting gets copied over to the same field of the many2many joinTable, where the column has a different name, which makes the check invalid.
When creating a many2many relationship between 2 models, if there is a CHECK constraint on the primary key of one, that setting gets copied over to the same field of the many2many joinTable, where the column has a different name, which makes the check invalid.