Define abstract storage interfaces (Protocols): - RoomStorage: for room/group bounties (load, save, add/update/delete/get_bounty) - PersonalStorage: same operations for personal/DM bounties - TrackingStorage: for tracking data (load, save, track/untrack_bounty)
24 lines
367 B
Python
24 lines
367 B
Python
"""Core domain models for JIGAIDO."""
|
|
|
|
from core.models import (
|
|
Bounty,
|
|
TrackedBounty,
|
|
RoomData,
|
|
TrackingData,
|
|
)
|
|
from core.ports import (
|
|
RoomStorage,
|
|
PersonalStorage,
|
|
TrackingStorage,
|
|
)
|
|
|
|
__all__ = [
|
|
"Bounty",
|
|
"TrackedBounty",
|
|
"RoomData",
|
|
"TrackingData",
|
|
"RoomStorage",
|
|
"PersonalStorage",
|
|
"TrackingStorage",
|
|
]
|