mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-11-23 06:37:22 +01:00
* add lemon squeezy checkout and webhook * add lemonSqueezy customer portal url * Update AccountPage.tsx * add lemon squeezy total revenue function * update app diff * update app diff * add LS docs * Update PricingPage.tsx * add unified payment processor * unify customer portal url * Update paymentProcessor.ts * update paymentProcessor logic * update app diff to use both payments processors * Update contentSections.ts.diff * finishing touches * Update e2e-tests.yml * remove lemonsqueezy from app diff * Update webhook.ts
19 lines
1.0 KiB
Diff
19 lines
1.0 KiB
Diff
--- template/app/schema.prisma
|
|
+++ opensaas-sh/app/schema.prisma
|
|
@@ -14,10 +14,12 @@
|
|
email String? @unique
|
|
username String? @unique
|
|
lastActiveTimestamp DateTime @default(now())
|
|
- isAdmin Boolean @default(false)
|
|
+ isAdmin Boolean @default(true)
|
|
+ // isMockUser is an extra property for the demo app ensuring that all users can access
|
|
+ // the admin dashboard but won't be able to see the other users' data, only mock user data.
|
|
+ isMockUser Boolean @default(false)
|
|
|
|
- paymentProcessorUserId String? @unique
|
|
- lemonSqueezyCustomerPortalUrl String? // You can delete this if you're not using Lemon Squeezy as your payments processor.
|
|
+ stripeId String? @unique
|
|
checkoutSessionId String?
|
|
subscriptionStatus String? // 'active', 'canceled', 'past_due', 'deleted'
|
|
subscriptionPlan String? // 'hobby', 'pro'
|