use the sqlalchemy syntax for the directmedia constraint