task order is unique

This commit is contained in:
2025-09-18 21:44:51 +02:00
parent dae0d1cd51
commit 2c864b67e3
2 changed files with 5 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ CREATE TABLE TASKS (
cipher_id INTEGER NOT NULL,
position_id INTEGER NOT NULL,
difficulty_level INTEGER NOT NULL,
order_num INTEGER NOT NULL,
order_num INTEGER UNIQUE NOT NULL,
end_clue TEXT NOT NULL,
FOREIGN KEY (cipher_id) REFERENCES CIPHERS(id),
FOREIGN KEY (position_id) REFERENCES POSITIONS(id),