Skip to content

Commit

Permalink
refactor(db): 🗃️ Add custom domain primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 22, 2022
1 parent b2bf6f0 commit a533552
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- DropIndex
DROP INDEX "CustomDomain_name_key";

-- AlterTable
ALTER TABLE "CustomDomain" ADD CONSTRAINT "CustomDomain_pkey" PRIMARY KEY ("name");
2 changes: 1 addition & 1 deletion packages/db/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ model User {
}

model CustomDomain {
name String @id
createdAt DateTime @default(now())
ownerId String
owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
name String @unique
}

model Credentials {
Expand Down

3 comments on commit a533552

@vercel
Copy link

@vercel vercel bot commented on a533552 Mar 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on a533552 Mar 22, 2022

@vercel
Copy link

@vercel vercel bot commented on a533552 Mar 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

app.typebot.io
builder-v2-typebot-io.vercel.app
builder-v2-git-main-typebot-io.vercel.app

Please sign in to comment.