spec: score.nome diventa score.elemento, coerente con la tabella pesi
This commit is contained in:
@@ -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')),
|
||||||
|
|||||||
Reference in New Issue
Block a user