ALTER TABLE bvur.pet_prescription ADD UNIQUE KEY `uidx` (`pet_id`, `appointment_id`);