Are there any variants to create complex UniqueConstraint (ex. with 2 fields), like in SQLAlchemy?
SQLAlchemy example:
__table_args__ = (
UniqueConstraint('foo_id', 'bar_id',
name='_foobar_constraint'),
)
foo_id = Column(ForeignKey('foos.id'), nullable=False)
bar_id = Column(ForeignKey('bars.id'), nullable=False)
Or maybe it can be an enhancement?
Are there any variants to create complex UniqueConstraint (ex. with 2 fields), like in SQLAlchemy?
SQLAlchemy example:
Or maybe it can be an enhancement?