I am making a classic bdd and I had a doubt expressed by another dev: To put it simply, I have 2 tables (with very very few updates), one of which has an FK (foreign key) on the other. There is an autoincrement on the PK (primary key).
With Django I make fixtures (basic filling) to fill these 2 tables and I put the following PK values:
id | codes | name | zone_id
1 | 13 | bla1 | 1
2 | 84 | bla2 | 2
3 | 06 | bla3 | 4
Simple, basic. But this colleague changed my fixtures because it's "better", maybe for convenience:
id | codes | name | zone_id
13 | 13 | bla1 | 1
84 | 84 | bla2 | 2
6 | 06 | bla3 | 4
As a result, the values of the PK no longer follow each other. Is this correct?, or should the auto-increment be removed?. For me it's completely absurd to have changed that.