Just in case, ORMs send DDL statements with uniqueness constraints to the DBMS, they don't do any magic here.
Just in case, ORMs send DDL statements with uniqueness constraints to the DBMS, they don't do any magic here.