aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/model')
-rw-r--r--src/model/tag.py12
-rw-r--r--src/model/task.py2
2 files changed, 13 insertions, 1 deletions
diff --git a/src/model/tag.py b/src/model/tag.py
new file mode 100644
index 0000000..030b223
--- /dev/null
+++ b/src/model/tag.py
@@ -0,0 +1,12 @@
+from typing import NamedTuple
+
+class Tag(NamedTuple):
+ id: int
+ created_at: int
+ updated_at: int
+ name: str
+ color: str
+
+class ValidTagForm(NamedTuple):
+ name: str
+ color: str
diff --git a/src/model/task.py b/src/model/task.py
index f5e0ae5..4bb9a89 100644
--- a/src/model/task.py
+++ b/src/model/task.py
@@ -6,7 +6,7 @@ from model.priority import Priority
class Task(NamedTuple):
id: int
created_at: int
- modified_at: int
+ updated_at: int
name: str
duration: int
tag: str