DROP TABLE IF EXISTS word_location;

CREATE TABLE word_location 
(
    word_id int(10) NOT NULL,
    location_id int(10) NOT NULL,

    UNIQUE KEY (word_id, location_id),
    UNIQUE KEY (location_id, word_id)
);
