Jaymon / prom

A PostgreSQL or SQLite orm for Python
MIT License
22 stars 4 forks source link

change name of _created and _updated to created and updated #92

Closed Jaymon closed 3 years ago

Jaymon commented 4 years ago

at some point it probably made sense to have the underscore, so it would match the _id being auto-generated and having an underscore but I think any sensible reasons for doing it are outweighed by the fact that we have properties on the orm to convert them to created and updated anyway.

Jaymon commented 3 years ago

The new alias functionality automatically handles created and updated being aliases for _created and _updated and I like the consistency of all the magic fields starting with an underscore.