- FastAPI REST API with JWT auth - aiogram 3 Telegram bot with admin middleware - APScheduler daily tasks (expiry, reminders, revoke, sync) - SQLAlchemy 2 async ORM with Alembic migrations - Jinja2 admin panel (Dashboard, Users, Payments, Servers, Tariffs) - VPN provider abstraction with MockProvider - Stats service with revenue/subscription analytics - Docker Compose (PostgreSQL + Redis + app) - Healthcheck endpoint
20 lines
477 B
Python
20 lines
477 B
Python
from app.models.user import User
|
|
from app.models.server import Server, ServerProtocol
|
|
from app.models.tariff import Tariff
|
|
from app.models.payment import Payment, PaymentStatus
|
|
from app.models.notification import Notification, NotificationType
|
|
from app.models.admin import Admin, AdminRole
|
|
|
|
__all__ = [
|
|
"User",
|
|
"Server",
|
|
"ServerProtocol",
|
|
"Tariff",
|
|
"Payment",
|
|
"PaymentStatus",
|
|
"Notification",
|
|
"NotificationType",
|
|
"Admin",
|
|
"AdminRole",
|
|
]
|