Corrected id constraint syntax