CREATE TABLE IF NOT EXISTS tourist_centers (
    center_id INT AUTO_INCREMENT PRIMARY KEY,
    name VARCHAR(255) NOT NULL,
    description TEXT NOT NULL,
    location VARCHAR(255) NOT NULL,
    conditions TEXT NULL,
    fee DECIMAL(10, 2) DEFAULT 0.00,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE IF NOT EXISTS tourist_center_features (
    feature_id INT AUTO_INCREMENT PRIMARY KEY,
    center_id INT NOT NULL,
    feature VARCHAR(255) NOT NULL,
    FOREIGN KEY (center_id) REFERENCES tourist_centers(center_id) ON DELETE CASCADE
);

CREATE TABLE IF NOT EXISTS tourist_center_images (
    image_id INT AUTO_INCREMENT PRIMARY KEY,
    center_id INT NOT NULL,
    image_path VARCHAR(255) NOT NULL,
    FOREIGN KEY (center_id) REFERENCES tourist_centers(center_id) ON DELETE CASCADE
);
