@levrbet/shared 0.4.6 → 0.4.8
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 +2 -2
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -355,7 +355,7 @@ model Referral {
|
|
|
355
355
|
referralCode String
|
|
356
356
|
referralSource String? // e.g. campaign or link source
|
|
357
357
|
status ReferralStatus @default(Active)
|
|
358
|
-
greylistStatus GreylistStatus @default(
|
|
358
|
+
greylistStatus GreylistStatus @default(None) // Denormalized flag for fast filtering in fee computation
|
|
359
359
|
|
|
360
360
|
// Relations
|
|
361
361
|
referrer User @relation("ReferrerRelations", fields: [referrerId], references: [objectId])
|
|
@@ -518,7 +518,7 @@ model TransactionHistory {
|
|
|
518
518
|
model GreylistEntry {
|
|
519
519
|
objectId String @id @default(auto()) @map("_id") @db.ObjectId
|
|
520
520
|
walletAddress String // The greylisted wallet (referrer OR referee)
|
|
521
|
-
status GreylistStatus @default(
|
|
521
|
+
status GreylistStatus @default(None)
|
|
522
522
|
reason String // Why flagged (e.g. "velocity anomaly", "wallet clustering", "manual flag")
|
|
523
523
|
source String // What triggered it: "admin", "system:velocity", "system:clustering"
|
|
524
524
|
flaggedBy String? // Admin userId who flagged (null if system-flagged)
|