token-validator: save ping state (0: ping ok, 1: arping only)
This commit is contained in:
parent
22a3d75645
commit
c35a8f5e6b
3 changed files with 16 additions and 9 deletions
|
@ -100,6 +100,7 @@ CREATE TABLE IF NOT EXISTS student_challenges(
|
|||
CREATE TABLE IF NOT EXISTS student_pong(
|
||||
id_student INTEGER NOT NULL,
|
||||
time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
state BOOLEAN NOT NULL DEFAULT 0,
|
||||
FOREIGN KEY(id_student) REFERENCES students(id_student)
|
||||
) DEFAULT CHARACTER SET = utf8 COLLATE = utf8_bin;
|
||||
`); err != nil {
|
||||
|
|
Reference in a new issue