-- Tipo de licencia de un programa corregido a mano (gratuito, pago, gratis solo personal o -- componente). Vale para todos los equipos que lo tengan y gana sobre el clasificador por reglas -- (softwareClassifier.js), que no se guarda: se calcula al leer. Idempotente. CREATE TABLE IF NOT EXISTS software_classifications ( name VARCHAR(255) NOT NULL PRIMARY KEY, license_type VARCHAR(20) NOT NULL, updated_by INT NULL, updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, CONSTRAINT fk_software_classifications_user FOREIGN KEY (updated_by) REFERENCES users(id) ON DELETE SET NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;