This website requires JavaScript.
Explore
Help
Register
Sign In
andika
/
membership-be
Watch
1
Star
0
Fork
1
You've already forked membership-be
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
9754f2db6e3412c7a4cbcec811f4e02f098181df
membership-be
/
alembic
/
versions
History
Koncept Kit
9754f2db6e
1. Models (backend/models.py)- Added PaymentMethodType enum (card, cash, bank_transfer, check)- Added stripe_customer_id column to User model- Created new PaymentMethod model with all fields specified in the plan2. Alembic Migration (backend/alembic/versions/add_payment_methods.py)- Creates payment_methods table- Adds stripe_customer_id to users table- Creates appropriate indexes3. API Endpoints (backend/server.py)Added 12 new endpoints:Member Endpoints:- GET /api/payment-methods - List user's payment methods- POST /api/payment-methods/setup-intent - Create Stripe SetupIntent- POST /api/payment-methods - Save payment method after setup- PUT /api/payment-methods/{id}/default - Set as default- DELETE /api/payment-methods/{id} - Remove payment methodAdmin Endpoints:- GET /api/admin/users/{user_id}/payment-methods - List user's methods (masked)- POST /api/admin/users/{user_id}/payment-methods/reveal - Reveal sensitive details (requires password)- POST /api/admin/users/{user_id}/payment-methods/setup-intent - Create SetupIntent for user- POST /api/admin/users/{user_id}/payment-methods - Save method on behalf- POST /api/admin/users/{user_id}/payment-methods/manual - Record manual method (cash/check)- PUT /api/admin/users/{user_id}/payment-methods/{id}/default - Set default- DELETE /api/admin/users/{user_id}/payment-methods/{id} - Delete method4. Permissions (backend/permissions_seed.py)Added 5 new permissions:- payment_methods.view- payment_methods.view_sensitive- payment_methods.create- payment_methods.delete- payment_methods.set_default
2026-01-31 01:03:17 +07:00
..
4fa11836f7fd_add_role_audit_fields.py
- Add Settings menu for Stripe configuration- In the Member Profile page, Superadmin can assign new Role to the member- Stripe Configuration is now stored with encryption in Database
2026-01-16 19:07:58 +07:00
001_initial_baseline.py
Prod Deployment Preparation
2026-01-04 19:08:54 +07:00
002_add_missing_user_fields.py
Fix migration 002 - skip existing columns
2026-01-05 02:30:54 +07:00
003_add_user_invitation_fields.py
Fix migration 003: add column existence checks to prevent duplicate column errors
2026-01-05 02:43:15 +07:00
004_add_document_file_sizes.py
Fix migrations 004-006: add column existence checks to prevent duplicate column errors
2026-01-05 11:50:26 +07:00
005_fix_subscriptions_and_storage.py
Fix migrations 004-006: add column existence checks to prevent duplicate column errors
2026-01-05 11:50:26 +07:00
006_rename_is_active.py
Fix migrations 004-006: add column existence checks to prevent duplicate column errors
2026-01-05 11:50:26 +07:00
007_add_subscription_plan_fields.py
Fix migration 007 - skip existing columns
2026-01-04 23:05:32 +07:00
008_add_donation_columns.py
Add missing donations table columns
2026-01-04 23:09:28 +07:00
009_add_all_missing_columns.py
Add comprehensive column check and migration 009
2026-01-04 23:19:05 +07:00
010_add_email_verification_expires.py
Fix migration 010: add column existence check for email_verification_expires
2026-01-05 13:56:37 +07:00
011_align_prod_with_dev.py
Alembic Database fix
2026-01-05 17:15:16 +07:00
012_fix_remaining_differences.py
Alembic fix for PROD
2026-01-05 17:29:41 +07:00
013_sync_role_permissions.py
Alembic migration for synchronize Database
2026-01-05 21:13:49 +07:00
956ea1628264_add_stripe_transaction_metadata.py
- Details Column - Expandable chevron button for each row- Expandable Transaction Details - Click chevron to show/hide details- Payment Information Section:- Stripe Transaction IDs Section- Copy to Clipboard - One-click copy for all transaction IDs- Update Stripe webhook event permission on Stripe Config page.
2026-01-20 23:51:38 +07:00
add_payment_methods.py
1. Models (backend/models.py)- Added PaymentMethodType enum (card, cash, bank_transfer, check)- Added stripe_customer_id column to User model- Created new PaymentMethod model with all fields specified in the plan2. Alembic Migration (backend/alembic/versions/add_payment_methods.py)- Creates payment_methods table- Adds stripe_customer_id to users table- Creates appropriate indexes3. API Endpoints (backend/server.py)Added 12 new endpoints:Member Endpoints:- GET /api/payment-methods - List user's payment methods- POST /api/payment-methods/setup-intent - Create Stripe SetupIntent- POST /api/payment-methods - Save payment method after setup- PUT /api/payment-methods/{id}/default - Set as default- DELETE /api/payment-methods/{id} - Remove payment methodAdmin Endpoints:- GET /api/admin/users/{user_id}/payment-methods - List user's methods (masked)- POST /api/admin/users/{user_id}/payment-methods/reveal - Reveal sensitive details (requires password)- POST /api/admin/users/{user_id}/payment-methods/setup-intent - Create SetupIntent for user- POST /api/admin/users/{user_id}/payment-methods - Save method on behalf- POST /api/admin/users/{user_id}/payment-methods/manual - Record manual method (cash/check)- PUT /api/admin/users/{user_id}/payment-methods/{id}/default - Set default- DELETE /api/admin/users/{user_id}/payment-methods/{id} - Delete method4. Permissions (backend/permissions_seed.py)Added 5 new permissions:- payment_methods.view- payment_methods.view_sensitive- payment_methods.create- payment_methods.delete- payment_methods.set_default
2026-01-31 01:03:17 +07:00
ec4cb4a49cde_add_system_settings_table.py
- Add Settings menu for Stripe configuration- In the Member Profile page, Superadmin can assign new Role to the member- Stripe Configuration is now stored with encryption in Database
2026-01-16 19:07:58 +07:00