nautechsystems / nautilus_trader

A high-performance algorithmic trading platform and event-driven backtester
https://nautilustrader.io
GNU Lesser General Public License v3.0
2.02k stars 460 forks source link

Change id as column name for primary key on all Postgres tables #1696

Closed filipmacek closed 3 months ago

filipmacek commented 3 months ago

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 know id column name is reserved for the primary identifier name.