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.

npx prisma format

Steven Teya14b5c4e7458
diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prisma
index 8a5c338f61..d2541f7134 100644
--- a/apps/web/prisma/schema.prisma
+++ b/apps/web/prisma/schema.prisma
@@ -211,7 +211,7 @@ model Link {
expiresAt DateTime? // when the link expires – stored on Redis via ttl
expiredUrl String? @db.LongText // URL to redirect the user to when the link is expired
password String? // password to access the link
- externalId String?
+ externalId String?
proxy Boolean @default(false) // Proxy to use custom OG tags (stored on redis) – if false, will use OG tags from target url
title String? // OG title for the link (e.g. Dub.co - Open-Source Link Management Infrastructure)
@@ -243,14 +243,14 @@ model Link {
// Relational reference to the project domain
projectDomain Domain? @relation(fields: [domain], references: [slug], onUpdate: Cascade, onDelete: Cascade)
- publicStats Boolean @default(false) // whether to show public stats or not
- clicks Int @default(0) // number of clicks
- lastClicked DateTime? // when the link was last clicked
- createdAt DateTime @default(now())
- updatedAt DateTime @updatedAt
+ publicStats Boolean @default(false) // whether to show public stats or not
+ clicks Int @default(0) // number of clicks
+ lastClicked DateTime? // when the link was last clicked
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
// Link tags
- tags LinkTag[]
+ tags LinkTag[]
// Comments on the particular shortlink
comments String? @db.LongText