Private
Public Access
forked from FOSS/AutoShop-Djimbo-Simple
feat(referral): add referral system with withdrawals
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user