35 lines
679 B
Python
35 lines
679 B
Python
from __future__ import annotations
|
|
from typing import ClassVar
|
|
|
|
from common import ApiModel
|
|
|
|
|
|
class Household(ApiModel):
|
|
KEYS: ClassVar[list[str]] = ["id", "name", "slug"]
|
|
id: int
|
|
name: str
|
|
slug: str
|
|
|
|
|
|
class HouseholdMember(ApiModel):
|
|
KEYS: ClassVar[list[str]] = ["id", "display_name", "role"]
|
|
id: int
|
|
display_name: str
|
|
role: str
|
|
|
|
|
|
class HouseholdInvitation(ApiModel):
|
|
KEYS: ClassVar[list[str]] = [
|
|
"id",
|
|
"household_id",
|
|
"invited_by_user_id",
|
|
"token",
|
|
"expires_at",
|
|
"status",
|
|
]
|
|
id: int
|
|
household_id: int
|
|
invited_by_user_id: int
|
|
token: str
|
|
expires_at: str
|
|
status: str
|