aboutsummaryrefslogtreecommitdiff
path: root/generalresearch/models/morning/__init__.py
blob: e74758603c1dcb3ef4d7ca07d40e81adf4154383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from enum import StrEnum
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(StrEnum):
    DRAFT = "draft"
    ACTIVE = "active"  # aka LIVE
    PAUSED = "paused"
    CLOSED = "closed"