add constraints to the table