mirror of
https://github.com/smyalygames/checklist-tester.git
synced 2025-07-07 14:50:59 +02:00
feat(connector): create basic Action SQLDelight file (I wanted to commit on the plane haha)
This commit is contained in:
parent
9ab92b6d62
commit
df3d9fbe31
@ -0,0 +1,16 @@
|
||||
CREATE TABLE IF NOT EXISTS Action (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
procedureId INTEGER NOT NULL,
|
||||
step INTEGER NOT NULL,
|
||||
type TEXT NOT NULL,
|
||||
goal TEXT NOT NULL,
|
||||
FOREIGN KEY (procedureId) REFERENCES Procedure(id)
|
||||
);
|
||||
|
||||
createAction:
|
||||
INSERT INTO Action(procedureId, step, type, goal)
|
||||
VALUES (?, ?, ?, ?);
|
||||
|
||||
selectActions:
|
||||
SELECT * FROM Action
|
||||
WHERE procedureId = ?;
|
Loading…
x
Reference in New Issue
Block a user