Table(
'table_name', metadata,
Column('id', None, nullable=False),
Column('email', None, nullable=False),
PrimaryKeyConstraint('id', 'email'),
)
Reference :
python - Creating container relationship in declarative SQLAlchemy - Stack Overflow
沒有留言:
張貼留言