From df828c4b141f84f731afffbe17c80618cacf9480 Mon Sep 17 00:00:00 2001 From: Joris Date: Fri, 8 May 2020 14:12:47 +0200 Subject: Bootstrap todo-next --- src/model/task.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/model/task.py (limited to 'src/model') 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 -- cgit v1.2.3