aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorJoris2020-05-08 14:12:47 +0200
committerJoris2020-05-08 14:14:16 +0200
commitdf828c4b141f84f731afffbe17c80618cacf9480 (patch)
treeaeae4a185c3f23da0331b32139c072ebe50b50dd /src/model
parent2abfaddc6a3a5233018ad285421eaf531a01a283 (diff)
Bootstrap todo-next
Diffstat (limited to 'src/model')
-rw-r--r--src/model/task.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/model/task.py b/src/model/task.py
new file mode 100644
index 0000000..26496c4
--- /dev/null
+++ b/src/model/task.py
@@ -0,0 +1,13 @@
+from typing import NamedTuple
+from datetime import datetime
+
+class Task(NamedTuple):
+ id: int
+ created_at: int
+ modified_at: int
+ name: str
+ tag: str
+
+class TaskForm(NamedTuple):
+ name: str
+ tag: str