@levrbet/shared 0.5.84 → 0.5.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/campaigns.prisma +16 -0
package/package.json
CHANGED
package/prisma/campaigns.prisma
CHANGED
|
@@ -16,6 +16,22 @@ model FreeBetCampaign {
|
|
|
16
16
|
@@index([sourceRef])
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
model PreparedCampaign {
|
|
20
|
+
objectId String @id @default(auto()) @map("_id") @db.ObjectId
|
|
21
|
+
sourceRef String @unique // "referrals:2026W28"
|
|
22
|
+
provider String // "referrals"
|
|
23
|
+
title String // "Referral Rewards 2026W28"
|
|
24
|
+
totalUsd Float
|
|
25
|
+
entryCount Int
|
|
26
|
+
entries Json // [{ ethAddress, amount }]
|
|
27
|
+
usedByMerkleRoot String? // set when a campaign is created from it
|
|
28
|
+
|
|
29
|
+
createdAt DateTime @default(now())
|
|
30
|
+
updatedAt DateTime @updatedAt
|
|
31
|
+
|
|
32
|
+
@@index([provider])
|
|
33
|
+
}
|
|
34
|
+
|
|
19
35
|
model FreeBetCampaignEntry {
|
|
20
36
|
objectId String @id @default(auto()) @map("_id") @db.ObjectId
|
|
21
37
|
merkleRoot String
|