aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
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