This commit is contained in:
Alexander Kalinovsky
2025-02-01 20:21:55 +01:00
parent a22ab9b0de
commit 1ca90c633f
6 changed files with 16 additions and 9 deletions

View File

@@ -16,6 +16,8 @@ class UserBase(BotEntity, table=False):
lang: LanguageBase = Field(sa_type=EnumType(LanguageBase), default=LanguageBase.EN)
is_active: bool = True
name: str
roles: list[RoleBase] = Field(
sa_type=ARRAY(EnumType(RoleBase)), default=[RoleBase.DEFAULT_USER]
)