sqlalchemy datetime default now create table

Solutions on MaxInterview for sqlalchemy datetime default now create table by the best coders in the world

showing results for - "sqlalchemy datetime default now create table"
Till
09 May 2020
1from sqlalchemy.sql import func
2
3time_created = Column(DateTime(timezone=True), server_default=func.now())
4time_updated = Column(DateTime(timezone=True), onupdate=func.now())
5