Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update schema

Kiran Kb480b67bd1b1
diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prisma
index e09a79d16e..5a1afd4b7c 100644
--- a/apps/web/prisma/schema.prisma
+++ b/apps/web/prisma/schema.prisma
@@ -182,22 +182,22 @@ model Domain {
slug String @unique
verified Boolean @default(false)
placeholder String @default("https://dub.co/help/article/what-is-dub")
- description String?
primary Boolean @default(false)
archived Boolean @default(false)
- expiredUrl String? @db.LongText // URL to redirect to for expired links
- noindex Boolean @default(false)
lastChecked DateTime @default(now())
links Link[]
project Project? @relation(fields: [projectId], references: [id], onDelete: Cascade)
projectId String?
- // TODO: migrate these attributes to Link model
+ // TODO: Remove these columns after merging #977
target String?
type String @default("redirect")
clicks Int @default(0)
lastClicked DateTime? // when the link was last clicked
publicStats Boolean @default(false)
+ description String?
+ expiredUrl String? @db.LongText // URL to redirect to for expired links
+ noindex Boolean @default(false)
// these attributes will exist on both Link and Domain models
createdAt DateTime @default(now())