@merkl/api 0.10.98 → 0.10.100

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-d515924445ab1c5b67d5330d5678ca9f719160f69eadc02600cd389a916987d0",
2
+ "name": "prisma-client-c5cd36b1d8d445ad8eccb0fb8e8a827522bd513872a7dc9be14f1c1df5c7bce5",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -127,6 +127,7 @@ model AprRecord {
127
127
  opportunityId String
128
128
 
129
129
  @@unique([opportunityId, timestamp])
130
+ @@index([opportunityId], type: Hash)
130
131
  }
131
132
 
132
133
  model AprBreakdown {
@@ -136,6 +137,8 @@ model AprBreakdown {
136
137
  value Float
137
138
  AprRecord AprRecord @relation(fields: [aprRecordId], references: [id])
138
139
  aprRecordId String
140
+
141
+ @@index([aprRecordId], type: Hash)
139
142
  }
140
143
 
141
144
  model TVLRecord {
@@ -148,6 +151,7 @@ model TVLRecord {
148
151
  opportunityId String
149
152
 
150
153
  @@unique([opportunityId, timestamp])
154
+ @@index([opportunityId], type: Hash)
151
155
  }
152
156
 
153
157
  model TVLBreakdown {
@@ -158,6 +162,8 @@ model TVLBreakdown {
158
162
 
159
163
  TvlRecord TVLRecord @relation(fields: [tvlRecordId], references: [id])
160
164
  tvlRecordId String
165
+
166
+ @@index([tvlRecordId], type: Hash)
161
167
  }
162
168
 
163
169
  model DailyRewardsRecord {
@@ -179,6 +185,8 @@ model DailyRewardsBreakdown {
179
185
  Campaign Campaign @relation(fields: [campaignId], references: [id])
180
186
  DailyRewardsRecord DailyRewardsRecord @relation(fields: [dailyRewardsRecordId], references: [id])
181
187
  dailyRewardsRecordId String
188
+
189
+ @@index([dailyRewardsRecordId], type: Hash)
182
190
  }
183
191
 
184
192
  model User {
@@ -201,9 +209,8 @@ model Reward {
201
209
  Breakdown RewardBreakdown[]
202
210
 
203
211
  @@unique([root, recipient, rewardTokenId])
204
- @@index([root])
205
- @@index([root, recipient])
206
- @@index([root, rewardTokenId])
212
+ @@index([root], type: Hash)
213
+ @@index([recipient, rewardTokenId])
207
214
  }
208
215
 
209
216
  model RewardBreakdown {
@@ -222,7 +229,7 @@ model RewardBreakdown {
222
229
  Campaign Campaign @relation(fields: [campaignId], references: [id])
223
230
 
224
231
  @@unique([rewardId, campaignId, reason])
225
- @@index([rewardId])
232
+ @@index([rewardId], type: Hash)
226
233
  }
227
234
 
228
235
  model MerklRoot {
@@ -233,9 +240,9 @@ model MerklRoot {
233
240
  timestamp BigInt
234
241
  Rewards Reward[]
235
242
 
236
- @@index([chainId])
237
- @@index([epoch])
238
- @@index([root])
243
+ @@index([root], type: Hash)
244
+ @@index([chainId], type: Hash)
245
+ @@index([epoch(ops: Int4BloomOps)], type: Brin)
239
246
  }
240
247
 
241
248
  model PriceSource {