-- Genitri Ecco Wellness inquiry desk
CREATE TABLE IF NOT EXISTS ecosystem_inquiries (
    id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    reference_code VARCHAR(32) NOT NULL UNIQUE,
    inquiry_type VARCHAR(80) NOT NULL,
    interest_area VARCHAR(120) NOT NULL,
    contact_name VARCHAR(120) NOT NULL,
    organization_name VARCHAR(160) NOT NULL,
    email VARCHAR(160) NOT NULL,
    phone VARCHAR(40) DEFAULT NULL,
    target_date VARCHAR(40) DEFAULT NULL,
    event_scale VARCHAR(80) DEFAULT NULL,
    preferred_location VARCHAR(120) DEFAULT NULL,
    notes TEXT NOT NULL,
    status VARCHAR(30) NOT NULL DEFAULT 'New',
    created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    INDEX idx_status_created (status, created_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
