ALTER TABLE customers
    ADD UNIQUE KEY uniq_customers_name (name);

ALTER TABLE projects
    ADD UNIQUE KEY uniq_projects_customer_name (customer_id, name);
