Report question

Question: Unique constraint using data in multiple tables (SQL / SQLAlchemy)