CREATE DATABASE custom_license;

USE custom_license;

CREATE TABLE licenses (
    id INT AUTO_INCREMENT PRIMARY KEY,
    license_key VARCHAR(32) NOT NULL,
    domain VARCHAR(255) NOT NULL,
    ip VARCHAR(45) NOT NULL,
    expiry_date DATE NOT NULL,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);