1from sqlalchemy import Column, DateTime, Integer, MetaData, Table
2from sqlalchemy.sql import func
3
4metadata = MetaData()
5
6example = Table('example', metadata,
7 Column('id', Integer, primary_key=True),
8 Column('date', DateTime(timezone=True), default=func.now())
9 )