spec: score.nome diventa score.elemento, coerente con la tabella pesi

This commit is contained in:
2026-08-21 19:17:42 +02:00
parent ad2fc0d510
commit 1821a0a8d4
+1 -1
View File
@@ -179,7 +179,7 @@ CREATE TABLE score (
client_code TEXT NOT NULL REFERENCES soggetti(client_code), client_code TEXT NOT NULL REFERENCES soggetti(client_code),
sessione_id INTEGER NOT NULL REFERENCES sessioni(id), sessione_id INTEGER NOT NULL REFERENCES sessioni(id),
tipo TEXT NOT NULL CHECK (tipo IN ('asse','macro','fitness_age')), tipo TEXT NOT NULL CHECK (tipo IN ('asse','macro','fitness_age')),
nome TEXT NOT NULL, -- 'Forza & Struttura', 'PERFORMANCE', ... elemento TEXT NOT NULL, -- 'Forza & Struttura', 'PERFORMANCE', ...
valore REAL, -- NULL quando stato='insufficiente' valore REAL, -- NULL quando stato='insufficiente'
copertura REAL NOT NULL, copertura REAL NOT NULL,
stato TEXT NOT NULL CHECK (stato IN ('ok','insufficiente')), stato TEXT NOT NULL CHECK (stato IN ('ok','insufficiente')),