System Initialization

Initialize subscription tiers and manage test data

Initialize Free Tier

Create the default Free tier in the subscription_tier table with limits: 10 AI chats/day, 3 cards/month, limited QR quality

Sync Stripe Products

Fetch active prices from the connected Stripe account and update local product records. Useful when switching API keys or updating Stripe configuration.

Note: Matching is done based on Price Amount, Currency, and Interval (Month/Year).

Clean Up Test Data

Remove test user profiles and usage data from the database

Setup Instructions

Follow these steps to fix the subscription system:

  1. Click "Initialize Free Tier" to create the default Free tier in the database
  2. Click "Clean Up All Data" to remove existing test user profiles and usage records
  3. Have test users log out and log back in to regenerate their profiles
  4. The system will now properly show Free tier limits (10 chats/day, 3 cards/month)

Note: After cleanup, usage_limits records will be created automatically when users first use AI chat or card generation features.