Add SCUM trade catalog projections

This commit is contained in:
npc0-hue
2026-08-27 16:14:59 +08:00
parent 316efbe780
commit a0e7ae362b
16 changed files with 267 additions and 23 deletions
@@ -5,10 +5,15 @@
"required": ["occurredAt", "playerId", "tradeKind", "itemCount", "currencyDelta", "suspicious"],
"properties": {
"occurredAt": { "type": "string", "format": "date-time", "minLength": 1, "maxLength": 40 },
"source": { "type": "string", "enum": ["companion", "log-projection", "scum.trade"] },
"playerId": { "type": "string", "minLength": 1, "maxLength": 96 },
"counterpartyPlayerId": { "type": "string", "minLength": 1, "maxLength": 96 },
"itemCode": { "type": "string", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128 },
"tradeVerb": { "type": "string", "enum": ["purchased", "sold"] },
"tradeKind": { "type": "string", "enum": ["purchase", "sale", "transfer", "unknown"] },
"quantity": { "type": "integer", "minimum": 0, "maximum": 1000000000 },
"itemCount": { "type": "integer", "minimum": 0, "maximum": 1000 },
"price": { "type": "integer", "minimum": -1000000000, "maximum": 1000000000 },
"currencyDelta": { "type": "integer", "minimum": -1000000000, "maximum": 1000000000 },
"suspicious": { "type": "boolean" }
}