diff options
Diffstat (limited to 'src/model/tag.py')
-rw-r--r-- | src/model/tag.py | 12 |
1 files changed, 12 insertions, 0 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 |