2
0

Add user account page

This commit is contained in:
Baptiste Arnaud
2021-12-27 15:59:32 +01:00
parent 698867da5d
commit e10fe1a186
33 changed files with 911 additions and 129 deletions

View File

@ -0,0 +1,22 @@
/*
Warnings:
- A unique constraint covering the columns `[stripeId]` on the table `User` will be added. If there are existing duplicate values, this will fail.
*/
-- AlterEnum
-- This migration adds more than one value to an enum.
-- With PostgreSQL versions 11 and earlier, this is not possible
-- in a single migration. This can be worked around by creating
-- multiple migrations, each migration adding only one value to
-- the enum.
ALTER TYPE "Plan" ADD VALUE 'LIFETIME';
ALTER TYPE "Plan" ADD VALUE 'OFFERED';
-- AlterTable
ALTER TABLE "User" ADD COLUMN "stripeId" TEXT;
-- CreateIndex
CREATE UNIQUE INDEX "User_stripeId_key" ON "User"("stripeId");

View File

@ -48,11 +48,14 @@ model User {
typebots Typebot[]
folders DashboardFolder[]
plan Plan @default(FREE)
stripeId String? @unique
}
enum Plan {
FREE
PRO
LIFETIME
OFFERED
}
model VerificationToken {