-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Enrico Marconi
committed
Aug 1, 2023
1 parent
ad05a85
commit 1ac5f67
Showing
22 changed files
with
1,027 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ db: | |
username: "emarconi" | ||
password: "supa_password" | ||
name: "todo" | ||
|
||
todo_handler: | ||
store_interval: 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREATE TABLE todo_lists ( | ||
id UUID PRIMARY KEY, | ||
name TEXT NOT NULL, | ||
created_at TIMESTAMP WITH TIME ZONE NOT NULL, | ||
last_updated_at TIMESTAMP WITH TIME ZONE NOT NULL | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE todo_tasks ( | ||
id UUID PRIMARY KEY, | ||
name TEXT NOT NULL, | ||
assignee UUID NOT NULL, | ||
done BOOLEAN NOT NULL, | ||
list UUID REFERENCES todo_lists(id) NOT NULL | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
"db": "PostgreSQL", | ||
"2576e00df7277d4c1bf5ed23bf01eba932db8104da0a89633052ab06524e17a1": { | ||
"describe": { | ||
"columns": [], | ||
"nullable": [], | ||
"parameters": { | ||
"Left": [ | ||
"Text" | ||
] | ||
} | ||
}, | ||
"query": "\nDELETE FROM user_sessions\nWHERE id = $1\n " | ||
}, | ||
"484df88c9bee2c5107f2dca07c1f7a63346431c3eefba163e2204cd71b9b98be": { | ||
"describe": { | ||
"columns": [], | ||
"nullable": [], | ||
"parameters": { | ||
"Left": [] | ||
} | ||
}, | ||
"query": "\nDELETE FROM user_sessions\n " | ||
}, | ||
"4fb43f8d72e705a5ba8c7c1d2827141b056667065d19daf87869d6dc5cf5f076": { | ||
"describe": { | ||
"columns": [], | ||
"nullable": [], | ||
"parameters": { | ||
"Left": [ | ||
"Varchar", | ||
"Varchar" | ||
] | ||
} | ||
}, | ||
"query": "\nINSERT INTO user_sessions (id, value)\nVALUES($1, $2)\nON CONFLICT (id)\nDO\n UPDATE SET value = $2\n " | ||
}, | ||
"54ad6e2dbc0f52961984df5ebaaae2271a717b044e684eb42c31f4555ff70410": { | ||
"describe": { | ||
"columns": [ | ||
{ | ||
"name": "id", | ||
"ordinal": 0, | ||
"type_info": "Uuid" | ||
}, | ||
{ | ||
"name": "name", | ||
"ordinal": 1, | ||
"type_info": "Text" | ||
}, | ||
{ | ||
"name": "created_at", | ||
"ordinal": 2, | ||
"type_info": "Timestamptz" | ||
}, | ||
{ | ||
"name": "last_updated_at", | ||
"ordinal": 3, | ||
"type_info": "Timestamptz" | ||
} | ||
], | ||
"nullable": [ | ||
false, | ||
false, | ||
false, | ||
false | ||
], | ||
"parameters": { | ||
"Left": [ | ||
"Uuid" | ||
] | ||
} | ||
}, | ||
"query": "\nSELECT id, name, created_at, last_updated_at \nFROM todo_lists\nWHERE id = $1\n " | ||
}, | ||
"67328670c994b74c20fcd4beb70fbea6391852bb54c23caf17256be4e2770cf3": { | ||
"describe": { | ||
"columns": [], | ||
"nullable": [], | ||
"parameters": { | ||
"Left": [ | ||
"Uuid", | ||
"Text", | ||
"Timestamptz", | ||
"Timestamptz" | ||
] | ||
} | ||
}, | ||
"query": "\nINSERT INTO todo_lists (id, name, created_at, last_updated_at)\n VALUES ($1, $2, $3, $4)\n ON CONFLICT (id) DO\n UPDATE SET name = $2,\n created_at = $3,\n last_updated_at = $4\n " | ||
}, | ||
"dd6a583d2d470d784302b97bf81c85c9ef620bd5f72f3b402ea16dd02dffa93a": { | ||
"describe": { | ||
"columns": [ | ||
{ | ||
"name": "value", | ||
"ordinal": 0, | ||
"type_info": "Varchar" | ||
} | ||
], | ||
"nullable": [ | ||
false | ||
], | ||
"parameters": { | ||
"Left": [ | ||
"Text" | ||
] | ||
} | ||
}, | ||
"query": "\nSELECT value\nFROM user_sessions\nWHERE id = $1\n " | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ pub mod settings; | |
pub mod startup; | ||
pub mod state; | ||
pub mod telemetry; | ||
pub mod todo; | ||
pub mod user; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.