Step 1: Add PricingConfig model and PricingRepository
- Create PricingConfig model with all required fields (premium settings, trade limits) - Implement PricingRepository with singleton pattern (get_current, create_or_update) - Add comprehensive tests for repository functionality - Export model and repository in __init__.py files
This commit is contained in:
parent
82c4d0168e
commit
32ce27180d
5 changed files with 291 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ from .enums import (
|
|||
from .exchange import Exchange
|
||||
from .invite import Invite
|
||||
from .price_history import PriceHistory
|
||||
from .pricing_config import PricingConfig
|
||||
|
||||
# Export role configuration
|
||||
from .role_config import ROLE_ADMIN, ROLE_DEFINITIONS, ROLE_REGULAR
|
||||
|
|
@ -34,6 +35,7 @@ __all__ = [
|
|||
"InviteStatus",
|
||||
"Permission",
|
||||
"PriceHistory",
|
||||
"PricingConfig",
|
||||
"Role",
|
||||
"RoleConfig",
|
||||
"TradeDirection",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue