Fas 2 steg 2: Inventory Trust Engine - decay-profiler och cache-jobb
This commit is contained in:
@@ -590,6 +590,19 @@ async function main() {
|
||||
}
|
||||
console.log(`[seed] ${flags.length} feature flags`);
|
||||
|
||||
// 7. Default trust decay profile (Fas 2 §5.2)
|
||||
await db
|
||||
.insert(schema.inventoryDecayProfiles)
|
||||
.values({
|
||||
name: "default",
|
||||
description: "Standardprofil: confidence halveras efter 7 dagar, stale efter 30 dagar.",
|
||||
halfLifeDays: 7,
|
||||
staleAfterDays: 30,
|
||||
active: true,
|
||||
})
|
||||
.onConflictDoNothing();
|
||||
console.log("[seed] 1 default decay profile");
|
||||
|
||||
console.log("[seed] Klart.");
|
||||
await pool.end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user