问题 The following EventInvitation model is a simple invitation for one event, sent from a user to another user. I would like to ensure that the invitations are unique across three columns: to_user, from_user and event. class EventInvitation(db.Model): __tablename__ = 'event_invitations' id = db.Column(db.Integer, primary_key = True) event_id = db.Column(db.Integer, db.ForeignKey('events.id')) event = db.relationship('Event', foreign_keys=[event_id]) created = db.Column(db.DateTime(), default