added unique constraints