CREATE TABLE IF NOT EXISTS travel_1_trip_day_item_categories (
    trip_day_item_id BIGINT UNSIGNED NOT NULL,
    category_id BIGINT UNSIGNED NOT NULL,
    PRIMARY KEY (trip_day_item_id, category_id),
    CONSTRAINT fk_trip_day_item_categories_item
        FOREIGN KEY (trip_day_item_id) REFERENCES travel_1_trip_day_items(id) ON DELETE CASCADE,
    CONSTRAINT fk_trip_day_item_categories_category
        FOREIGN KEY (category_id) REFERENCES travel_1_categories(id) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
