xnuinside / omymodels

O!My Models (omymodels) is a library to generate Pydantic, Dataclasses, GinoORM Models, SqlAlchemy ORM, SqlAlchemy Core Table, Models from SQL DDL. And convert one models to another.
MIT License
176 stars 20 forks source link

added Postgres current_timestamp function #38

Closed HarryVeilleux closed 2 years ago

HarryVeilleux commented 2 years ago

Just added Postgres's current_timestamp function as a valid default setting of datetime fields, following the same behavior as if it was set "now()".

xnuinside commented 2 years ago

@HarryVeilleux thanks for PR, let me release it in the patch version after merge

xnuinside commented 2 years ago

I added also same logic to over models types: https://github.com/xnuinside/omymodels/pull/39 and released version 0.12.1