aboutsummaryrefslogtreecommitdiff
path: root/src/model/task.py
blob: afbb2ca590c74ef5e001dff68547d5d774951139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from typing import NamedTuple
from datetime import datetime

class Task(NamedTuple):
    id: int
    created_at: int
    modified_at: int
    name: str
    duration: int
    tag: str

class ValidTaskForm(NamedTuple):
    name: str
    duration: int
    tag: str