Save subscription status
“Create a subscriptions table in my database with columns for user_id, stripe_customer_id, stripe_subscription_id, price_id, status, current_period_end, and cancel_at_period_end. Whenever Stripe sends a webhook for customer.subscription.created, customer.subscription.updated, customer.subscription.deleted, invoice.payment_succeeded, or invoice.payment_failed, upsert the matching row. Then give me a helper isPro(user) that returns true if status is active or trialing.”