rewrite kd leaderboard generation, add explicit relations to schema

This commit is contained in:
2025-09-18 19:09:44 +02:00
parent 950431ce88
commit 6a76c52acc
5 changed files with 128 additions and 42 deletions

View File

@@ -3,7 +3,6 @@ import { getLoots } from "db/schema";
import type { inventory } from "items";
import type User from "user";
export async function createGetLootRecord(user: User, qbucks: number, inventory: inventory) {
await db.insert(getLoots).values({
user: parseInt(user.id),