feat: add vorp_value column to participants table

Adds vorpValue decimal field to the participants schema to support
VORP (Value Over Replacement Player) calculation and caching.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Chris Parsons 2026-04-09 01:57:22 +00:00
parent 9e5d1cda5f
commit 30903bec19
4 changed files with 4489 additions and 0 deletions

View file

@ -316,6 +316,7 @@ export const participants = pgTable("participants", {
shortName: varchar("short_name", { length: 100 }),
externalId: varchar("external_id", { length: 255 }),
expectedValue: decimal("expected_value", { precision: 10, scale: 4 }).notNull().default("0"),
vorpValue: decimal("vorp_value", { precision: 10, scale: 4 }).notNull().default("0"),
createdAt: timestamp("created_at").defaultNow().notNull(),
updatedAt: timestamp("updated_at").defaultNow().notNull(),
}, (table) => [

View file

@ -0,0 +1 @@
ALTER TABLE "participants" ADD COLUMN "vorp_value" numeric(10, 4) DEFAULT '0' NOT NULL;

File diff suppressed because it is too large Load diff

View file

@ -519,6 +519,13 @@
"when": 1775679862606,
"tag": "0073_blushing_lady_vermin",
"breakpoints": true
},
{
"idx": 74,
"version": "7",
"when": 1775699707816,
"tag": "0074_clammy_tiger_shark",
"breakpoints": true
}
]
}