feat: add Eventify ID (EVT-XXXXXXXX) to User model and all APIs

- Add eventify_id CharField (unique, indexed, editable=False) to User
- Auto-generate on save() with charset excluding I/O/0/1 for clarity
- Migration 0012: add field nullable, backfill all existing users, make non-null
- Sync migration 0011 (allowed_modules) pulled from server
- Expose eventify_id in accounts/api.py, partner/api.py serializers
- Expose eventify_id in mobile_api login response (populates localStorage)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-02 10:25:25 +05:30
parent 291fa40283
commit 35a99c08fd
5 changed files with 88 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ def _partner_user_to_dict(user, request=None):
user,
fields=[
"id",
"eventify_id",
"username",
"email",
"phone_number",