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:
parent
9e5d1cda5f
commit
30903bec19
4 changed files with 4489 additions and 0 deletions
|
|
@ -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) => [
|
||||
|
|
|
|||
1
drizzle/0074_clammy_tiger_shark.sql
Normal file
1
drizzle/0074_clammy_tiger_shark.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "participants" ADD COLUMN "vorp_value" numeric(10, 4) DEFAULT '0' NOT NULL;
|
||||
4480
drizzle/meta/0074_snapshot.json
Normal file
4480
drizzle/meta/0074_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue