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.prisma

Steven Tey18d26d614eef
diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prisma
index d2541f7134..fa82e60aca 100644
--- a/apps/web/prisma/schema.prisma
+++ b/apps/web/prisma/schema.prisma
@@ -103,7 +103,6 @@ model Project {
domainsLimit Int @default(3)
tagsLimit Int @default(5)
usersLimit Int @default(1)
- monitoringId String? @unique // cron job ID for monitoring
users ProjectUsers[]
invites ProjectInvite[]
@@ -213,6 +212,8 @@ model Link {
password String? // password to access the link
externalId String?
+ trackConversion Boolean @default(false) // whether to track conversions or not
+
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)
description String? @db.VarChar(280) // OG description for the link (e.g. An open-source link management tool for modern marketing teams to create, share, and track short links.)
@@ -261,6 +262,7 @@ model Link {
@@unique([projectId, externalId])
@@index(projectId)
@@index(domain)
+ @@index(trackConversion)
@@index(proxy)
@@index(password)
@@index(createdAt(sort: Desc))