CREATE TABLE licenses (
    id INT AUTO_INCREMENT PRIMARY KEY,
    license_key VARCHAR(64),
    status ENUM('active','expired','suspended'),
    expires_at DATE
);

CREATE TABLE trials (
    device_id VARCHAR(128),
    expires_at DATETIME
);

CREATE TABLE updates (
    version VARCHAR(20),
    file_url TEXT
);

CREATE TABLE branding (
    license_key VARCHAR(64),
    app_name VARCHAR(100),
    primary_color VARCHAR(20)
);