Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

default to trial plan

Marc Seitzf388af299900
diff --git a/pages/settings/billing.tsx b/pages/settings/billing.tsx
index 80bcce01..f53b5414 100644
--- a/pages/settings/billing.tsx
+++ b/pages/settings/billing.tsx
@@ -49,7 +49,7 @@ export default function Billing() {
<p className="text-sm text-secondary-foreground">
You are currently on the{" "}
{plan ? (
- <Badge>Pro</Badge>
+ <Badge>{plan}</Badge>
) : (
<span className="rounded-full bg-border px-2 py-0.5 text-xs text-foreground">
load
@@ -154,7 +154,7 @@ export default function Billing() {
)}
<div>
{plan ? (
- plan === "free" ? (
+ plan !== "pro" ? (
<UpgradePlanModal>
<Button type="button">Upgrade</Button>
</UpgradePlanModal>
diff --git a/prisma/schema.prisma b/prisma/schema.prisma
index bf56b0c5..6604e87e 100644
--- a/prisma/schema.prisma
+++ b/prisma/schema.prisma
@@ -48,7 +48,7 @@ model User {
sessions Session[]
documents Document[]
domains Domain[]
- plan String @default("free")
+ plan String @default("trial")
stripeId String? @unique // Stripe subscription / customer ID
subscriptionId String? @unique // Stripe subscription ID
startsAt DateTime? // Stripe subscription start date