Agregar restricciones a las columnas SQL
ALTER TABLE departments
ADD CONSTRAINT unique_id_constraint UNIQUE (id);
Tired Trout
ALTER TABLE departments
ADD CONSTRAINT unique_id_constraint UNIQUE (id);