mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-01-31 04:53:11 -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)
|