I have a table:
table votes ( id, user, email, address, primary key(id), );
Now I want to make the columns user
this tutorial works for me
ALTER TABLE table_name ADD CONSTRAINT constraint_name UNIQUE (column1, column2, ... column_n);
https://www.mysqltutorial.org/mysql-unique-constraint/