Make fixtures generate IDs according to their limit

Hello,

If the primary key field's limit was defined at the schema definition level, previously fixtures would generate a random ID which limit would be 2^30 and not the specified one.

Fixes #12901

Have a nice day.