Files
project.linkedcorp.net/backend/database/migrations/040_software_classifications.sql
T
Milton Gonzalez 420a794c9e feat: version 4.16.0 -- Equipos: tipo de licencia y software agrupado por fabricante
Clasificador por reglas sin IA, correccion manual (migracion 040) y filas desplegables en ListView.
Flyout por encima de popups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 12:36:02 -05:00

11 lines
690 B
SQL

-- 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;