The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update schema
Kiran Kb480b67bd1b1
diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prismaindex e09a79d16e..5a1afd4b7c 100644--- a/apps/web/prisma/schema.prisma+++ b/apps/web/prisma/schema.prisma@@ -182,22 +182,22 @@ model Domain {slug String @uniqueverified 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 #977target String?type String @default("redirect")clicks Int @default(0)lastClicked DateTime? // when the link was last clickedpublicStats 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 modelscreatedAt DateTime @default(now())