sqlalchemy datetime default now create table code example
Example: sqlalchemy datetime default now create table
from sqlalchemy.sql import func
time_created = Column(DateTime(timezone=True), server_default=func.now())
time_updated = Column(DateTime(timezone=True), onupdate=func.now())