-- schema.sql — run this in phpMyAdmin
CREATE DATABASE IF NOT EXISTS ali_site CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
USE ali_site;

CREATE TABLE IF NOT EXISTS leads (
    id INT AUTO_INCREMENT PRIMARY KEY,
    name VARCHAR(150) NOT NULL,
    email VARCHAR(150) NOT NULL,
    phone VARCHAR(50),
    message TEXT,
    page_url VARCHAR(255),
    referer_url VARCHAR(255),
    utm_source VARCHAR(100),
    utm_medium VARCHAR(100),
    utm_campaign VARCHAR(100),
    utm_term VARCHAR(100),
    utm_content VARCHAR(100),
    extra TEXT,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
