Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(db): add pauseAnonViews preference and firstViewEmailSentAt column

Richie McIlroyff31881bb473
diff --git a/packages/database/schema.ts b/packages/database/schema.ts
index fbdc89dad..2b1f99303 100644
--- a/packages/database/schema.ts
+++ b/packages/database/schema.ts
@@ -89,10 +89,8 @@ export const users = mysqlTable(
pauseReplies: boolean;
pauseViews: boolean;
pauseReactions: boolean;
+ pauseAnonViews?: boolean;
};
- // For analytics.
- // Adding in preferences so we don't have to
- // add a new column and can be dynamic going forward.
trackedEvents?: {
user_signed_up?: boolean;
};
@@ -339,6 +337,7 @@ export const videos = mysqlTable(
password: encryptedTextNullable("password"),
// LEGACY
xStreamInfo: text("xStreamInfo"),
+ firstViewEmailSentAt: timestamp("firstViewEmailSentAt"),
isScreenshot: boolean("isScreenshot").notNull().default(false),
// DEPRECATED
awsRegion: varchar("awsRegion", { length: 255 }),