refactors
This commit is contained in:
parent
4e1a339432
commit
82c4d0168e
28 changed files with 1042 additions and 782 deletions
43
backend/models/__init__.py
Normal file
43
backend/models/__init__.py
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# Export all enums
|
||||
# Export association tables
|
||||
from .associations import role_permissions, user_roles
|
||||
|
||||
# Export models
|
||||
from .availability import Availability
|
||||
from .enums import (
|
||||
BitcoinTransferMethod,
|
||||
ExchangeStatus,
|
||||
InviteStatus,
|
||||
Permission,
|
||||
TradeDirection,
|
||||
)
|
||||
from .exchange import Exchange
|
||||
from .invite import Invite
|
||||
from .price_history import PriceHistory
|
||||
|
||||
# Export role configuration
|
||||
from .role_config import ROLE_ADMIN, ROLE_DEFINITIONS, ROLE_REGULAR
|
||||
|
||||
# Export types
|
||||
from .types import RoleConfig
|
||||
from .user import Role, User
|
||||
|
||||
__all__ = [
|
||||
"ROLE_ADMIN",
|
||||
"ROLE_DEFINITIONS",
|
||||
"ROLE_REGULAR",
|
||||
"Availability",
|
||||
"BitcoinTransferMethod",
|
||||
"Exchange",
|
||||
"ExchangeStatus",
|
||||
"Invite",
|
||||
"InviteStatus",
|
||||
"Permission",
|
||||
"PriceHistory",
|
||||
"Role",
|
||||
"RoleConfig",
|
||||
"TradeDirection",
|
||||
"User",
|
||||
"role_permissions",
|
||||
"user_roles",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue