Forward autoincrement property from field to column by smuething · Pull Request #674 · ormar-orm/ormar
The autoincrement property of ormar fields does not get propagated to the SQLAlchemy column definition. As a result, the autoincrement property of the SQLAlchemy column defaults to auto, making it impossible to create DDL that does not auto-increment the database column.
With this small patch, it becomes possible to create a table with a manually managed, integer-based PK.