mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-03-05 13:13:12 -05:00
28 lines
664 B
Python
28 lines
664 B
Python
from uuid import UUID
|
|
|
|
from pydantic import UUID4, ConfigDict
|
|
|
|
from mealie.schema._mealie import MealieModel
|
|
|
|
|
|
class UpdateGroupPreferences(MealieModel):
|
|
private_group: bool = False
|
|
first_day_of_week: int = 0
|
|
|
|
# Recipe Defaults
|
|
recipe_public: bool = True
|
|
recipe_show_nutrition: bool = False
|
|
recipe_show_assets: bool = False
|
|
recipe_landscape_view: bool = False
|
|
recipe_disable_comments: bool = False
|
|
recipe_disable_amount: bool = True
|
|
|
|
|
|
class CreateGroupPreferences(UpdateGroupPreferences):
|
|
group_id: UUID
|
|
|
|
|
|
class ReadGroupPreferences(CreateGroupPreferences):
|
|
id: UUID4
|
|
model_config = ConfigDict(from_attributes=True)
|