It is a good practice to keep the same name for the primary key column, for example id. It keeps schema clean and organized, and follows best practices. This can also help later for possible parametrized queries or CRUD generators as you know id column name is reserved for the primary identifier name.
refactor general and currency tables to have id as the primary column name and propagated these changes in Postgres rust code and tests
Pull Request
It is a good practice to keep the same name for the primary key column, for example
id
. It keeps schema clean and organized, and follows best practices. This can also help later for possible parametrized queries or CRUD generators as you knowid
column name is reserved for the primary identifier name.general
andcurrency
tables to haveid
as the primary column name and propagated these changes in Postgres rust code and tests