add model attrs

This commit is contained in:
Michael Genson
2026-03-27 20:22:40 +00:00
parent 312ba32fa0
commit 46259a3b4d
3 changed files with 8 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ from mealie.schema._mealie import MealieModel
class UpdateGroupPreferences(MealieModel):
private_group: bool = True
show_announcements: bool = True
class CreateGroupPreferences(UpdateGroupPreferences):

View File

@@ -9,6 +9,8 @@ from mealie.schema._mealie import MealieModel
class UpdateHouseholdPreferences(MealieModel):
private_household: bool = True
show_announcements: bool = True
lock_recipe_edits_from_other_households: bool = True
first_day_of_week: int = 0

View File

@@ -116,6 +116,11 @@ class UserBase(MealieModel):
household: str | None = None
advanced: bool = False
# Announcements
show_announcements: bool = True
last_read_announcement: str | None = None
# Permissions
can_invite: bool = False
can_manage: bool = False
can_manage_household: bool = False