aboutsummaryrefslogtreecommitdiff
path: root/src/model/tag.py
blob: 030b223b9df0384d656f2bfa97440434274f9e79 (plain)
1
2
3
4
5
6
7
8
9
10
11
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