Files
open-saas/opensaas-sh/app_diff/schema.prisma.diff
vincanger cb3d75c0b6 add lemon squeezy as payment provider (#246)
* 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
2024-09-09 11:32:42 +02:00

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'