216
216
ws_prob_id SERIAL PRIMARY KEY,
217
217
worksheetid INT4 REFERENCES worksheet (worksheetid) NOT NULL,
218
218
problemid TEXT REFERENCES problem (identifier) NOT NULL,
224
225
CREATE TABLE problem_attempt (
225
226
loginid INT4 REFERENCES login (loginid) NOT NULL,
226
227
ws_prob_id INT4 REFERENCES worksheet_problem (ws_prob_id) NOT NULL,
229
230
complete BOOLEAN NOT NULL,
230
231
active BOOLEAN NOT NULL DEFAULT true,
234
235
CREATE TABLE problem_save (