Add unique constraints in model