@levrbet/shared 0.5.84 → 0.5.86
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
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
|
package/prisma/users.prisma
CHANGED
|
@@ -29,6 +29,7 @@ model User {
|
|
|
29
29
|
email String?
|
|
30
30
|
referralCode String? @unique
|
|
31
31
|
referrerCode String?
|
|
32
|
+
signupCampaign String?
|
|
32
33
|
timeZone String @default("UTC")
|
|
33
34
|
preferredTimeZone String?
|
|
34
35
|
userOddsPreference UserOddsPreference @default(American)
|
|
@@ -52,6 +53,8 @@ model User {
|
|
|
52
53
|
|
|
53
54
|
createdAt DateTime @default(now())
|
|
54
55
|
updatedAt DateTime @updatedAt
|
|
56
|
+
|
|
57
|
+
@@index([signupCampaign])
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
model TransactionHistory {
|