aboutsummaryrefslogtreecommitdiff
path: root/generalresearch/models/morning/__init__.py
blob: 1bc15a7f0f59382f0e3326d6310cdcd7f65fc3d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from enum import Enum
from typing import Annotated

from pydantic import StringConstraints

# This is text-based, in lowercase. e.g. 'age', 'household_income'
MorningQuestionID = Annotated[
    str, StringConstraints(min_length=1, max_length=64, pattern=r"^[^A-Z]+$")
]


class MorningStatus(str, Enum):
    DRAFT = "draft"
    ACTIVE = "active"  # aka LIVE
    PAUSED = "paused"
    CLOSED = "closed"