mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-03 09:04:06 -05:00
19 lines
380 B
Python
19 lines
380 B
Python
from uuid import UUID
|
|
|
|
from pydantic import UUID4, ConfigDict
|
|
|
|
from mealie.schema._mealie import MealieModel
|
|
|
|
|
|
class UpdateGroupPreferences(MealieModel):
|
|
private_group: bool = True
|
|
|
|
|
|
class CreateGroupPreferences(UpdateGroupPreferences):
|
|
group_id: UUID
|
|
|
|
|
|
class ReadGroupPreferences(CreateGroupPreferences):
|
|
id: UUID4
|
|
model_config = ConfigDict(from_attributes=True)
|