@levrbet/shared 0.5.38 → 0.5.39
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/schema.prisma +27 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -589,3 +589,30 @@ model ClosedOrder {
|
|
|
589
589
|
@@index([ethAddress, resolvedAt(sort: Desc)])
|
|
590
590
|
@@index([chainId, gameMarketId])
|
|
591
591
|
}
|
|
592
|
+
|
|
593
|
+
model FreeBetCampaign {
|
|
594
|
+
objectId String @id @default(auto()) @map("_id") @db.ObjectId
|
|
595
|
+
merkleRoot String @unique
|
|
596
|
+
chainId Int
|
|
597
|
+
name String
|
|
598
|
+
description String
|
|
599
|
+
merkleTreeDump Json
|
|
600
|
+
relayerTxId String?
|
|
601
|
+
|
|
602
|
+
entries FreeBetCampaignEntry[]
|
|
603
|
+
|
|
604
|
+
createdAt DateTime @default(now())
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
model FreeBetCampaignEntry {
|
|
608
|
+
objectId String @id @default(auto()) @map("_id") @db.ObjectId
|
|
609
|
+
merkleRoot String
|
|
610
|
+
ethAddress String
|
|
611
|
+
|
|
612
|
+
campaign FreeBetCampaign @relation(fields: [merkleRoot], references: [merkleRoot])
|
|
613
|
+
|
|
614
|
+
@@unique([merkleRoot, ethAddress])
|
|
615
|
+
@@index([ethAddress])
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
|