feat(referral): add referral system with withdrawals

This commit is contained in:
2026-07-18 10:58:14 +05:00
parent 5e5bab91f2
commit a04734b8a7
17 changed files with 1750 additions and 60 deletions
+3
View File
@@ -160,10 +160,13 @@ async def prepare_database() -> None:
import tgbot.database.db_refill # noqa: F401
import tgbot.database.db_settings # noqa: F401
import tgbot.database.db_users # noqa: F401
import tgbot.database.db_referral # noqa: F401
async with engine.begin() as conn:
from tgbot.database.db_payments import ensure_payments_schema
from tgbot.database.db_referral import ensure_referrals_schema
await ensure_referrals_schema(conn)
await ensure_payments_schema(conn)
await conn.run_sync(Base.metadata.create_all)