diff --git a/backend/prisma/migrations/20260516_default_plan_legend/migration.sql b/backend/prisma/migrations/20260516_default_plan_legend/migration.sql new file mode 100644 index 0000000..75c4689 --- /dev/null +++ b/backend/prisma/migrations/20260516_default_plan_legend/migration.sql @@ -0,0 +1,7 @@ +-- Temporary: while the plan-tier toggle is missing from settings, all users +-- get 'legend' so testers can exercise premium paths. Revert via follow-up +-- migration once the toggle is back. + +UPDATE rebreak.profiles SET plan = 'legend'; + +ALTER TABLE rebreak.profiles ALTER COLUMN plan SET DEFAULT 'legend'; diff --git a/backend/prisma/schema.prisma b/backend/prisma/schema.prisma index 9b85558..8ce2b25 100644 --- a/backend/prisma/schema.prisma +++ b/backend/prisma/schema.prisma @@ -14,7 +14,7 @@ model Profile { username String? nickname String? avatar String? - plan String @default("free") + plan String @default("legend") streak Int @default(0) followersCount Int @default(0) @map("followers_count") stripeCustomerId String? @map("stripe_customer_id")