Add referral system and user balance tracking

Introduce balance field to User model with Alembic migration. Add
referral menu, admin /refpay command, and deep link sharing. Update
Dockerfile to multi-stage build and add Postgres service to compose.
Fix deep link parsing logic and conditional proxy initialization.
This commit is contained in:
2026-04-10 22:20:53 +07:00
parent 60de871e0c
commit 0ed0ad2b92
17 changed files with 337 additions and 80 deletions

6
.gitignore vendored
View File

@@ -130,6 +130,7 @@ celerybeat.pid
# Environments
.env
dev.env
.venv
env/
venv/
@@ -172,7 +173,4 @@ cython_debug/
.ruff_cache/
# PyPI configuration file
.pypirc
# Static / IMG
static/img
.pypirc