Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(database): add dedup index on developer credit transactions

Richie McIlroy0e20029cee43
diff --git a/packages/database/schema.ts b/packages/database/schema.ts
index 9e2058017..7d214cb64 100644
--- a/packages/database/schema.ts
+++ b/packages/database/schema.ts
@@ -1051,6 +1051,11 @@ export const developerCreditTransactions = mysqlTable(
table.type,
table.createdAt,
),
+ index("account_ref_dedup_idx").on(
+ table.accountId,
+ table.referenceId,
+ table.referenceType,
+ ),
],
);