mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-13 08:25:35 -04:00
add model attrs
This commit is contained in:
@@ -7,6 +7,7 @@ from mealie.schema._mealie import MealieModel
|
|||||||
|
|
||||||
class UpdateGroupPreferences(MealieModel):
|
class UpdateGroupPreferences(MealieModel):
|
||||||
private_group: bool = True
|
private_group: bool = True
|
||||||
|
show_announcements: bool = True
|
||||||
|
|
||||||
|
|
||||||
class CreateGroupPreferences(UpdateGroupPreferences):
|
class CreateGroupPreferences(UpdateGroupPreferences):
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ from mealie.schema._mealie import MealieModel
|
|||||||
|
|
||||||
class UpdateHouseholdPreferences(MealieModel):
|
class UpdateHouseholdPreferences(MealieModel):
|
||||||
private_household: bool = True
|
private_household: bool = True
|
||||||
|
show_announcements: bool = True
|
||||||
|
|
||||||
lock_recipe_edits_from_other_households: bool = True
|
lock_recipe_edits_from_other_households: bool = True
|
||||||
first_day_of_week: int = 0
|
first_day_of_week: int = 0
|
||||||
|
|
||||||
|
|||||||
@@ -116,6 +116,11 @@ class UserBase(MealieModel):
|
|||||||
household: str | None = None
|
household: str | None = None
|
||||||
advanced: bool = False
|
advanced: bool = False
|
||||||
|
|
||||||
|
# Announcements
|
||||||
|
show_announcements: bool = True
|
||||||
|
last_read_announcement: str | None = None
|
||||||
|
|
||||||
|
# Permissions
|
||||||
can_invite: bool = False
|
can_invite: bool = False
|
||||||
can_manage: bool = False
|
can_manage: bool = False
|
||||||
can_manage_household: bool = False
|
can_manage_household: bool = False
|
||||||
|
|||||||
Reference in New Issue
Block a user