CREATE TABLE licenses (
    id INT AUTO_INCREMENT PRIMARY KEY,
    license_key VARCHAR(255) UNIQUE,
    domain VARCHAR(255),
    expires_at DATETIME,
    status ENUM('active','inactive') DEFAULT 'active'
);

INSERT INTO licenses (license_key, domain, expires_at, status)
VALUES (
    'TEST-123-KEY',
    'dalali.gstsolutions.co.tz',
    '2026-12-31 23:59:59',
    'active'
);