Alice wrote:
At least in Postgres it is db-level. It produces something like this in table definition:unique_together = (("driver", "restaurant"),)... and I don't think this is a db-level solution ..
CONSTRAINT polls_answers_driver_key UNIQUE (driver,restaurant) Don't know about other databases though...