CREATE TABLE IF NOT EXISTS drop_mode_survey (
    id BIGINT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
    drop_mode_id BIGINT NOT NULL REFERENCES drop_modes(id) ON DELETE CASCADE,
    survey_mode_id BIGINT NOT NULL REFERENCES survey_modes(id) ON DELETE CASCADE,
    CONSTRAINT uq_drop_mode_survey UNIQUE(drop_mode_id, survey_mode_id)
);

CREATE INDEX IF NOT EXISTS idx_drop_mode_survey_drop_id ON drop_mode_survey(drop_mode_id);
CREATE INDEX IF NOT EXISTS idx_drop_mode_survey_survey_id ON drop_mode_survey(survey_mode_id);
