add ruff format, ruff check, time_picker, project structure and imports reorganized
This commit is contained in:
@@ -10,11 +10,12 @@ from .fsm_storage import FSMStorage as FSMStorage
|
||||
from .view_setting import ViewSetting as ViewSetting
|
||||
|
||||
|
||||
class UserBase(BotEntity, table = False):
|
||||
|
||||
class UserBase(BotEntity, table=False):
|
||||
__tablename__ = "user"
|
||||
|
||||
lang: LanguageBase = Field(sa_type = EnumType(LanguageBase), default = LanguageBase.EN)
|
||||
lang: LanguageBase = Field(sa_type=EnumType(LanguageBase), default=LanguageBase.EN)
|
||||
is_active: bool = True
|
||||
|
||||
roles: list[RoleBase] = Field(sa_type=ARRAY(EnumType(RoleBase)), default = [RoleBase.DEFAULT_USER])
|
||||
|
||||
roles: list[RoleBase] = Field(
|
||||
sa_type=ARRAY(EnumType(RoleBase)), default=[RoleBase.DEFAULT_USER]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user