feat(planning): ship holiday-aware planning and assistant upgrades

This commit is contained in:
2026-03-28 22:49:28 +01:00
parent 2a005794e7
commit 4f48afe7b4
151 changed files with 17738 additions and 1940 deletions
+5
View File
@@ -8,6 +8,10 @@
*/
import { PrismaClient } from "@prisma/client";
import { loadWorkspaceEnv } from "./load-workspace-env.js";
import { assertSafeSeedTarget } from "./safe-destructive-env.js";
loadWorkspaceEnv();
const prisma = new PrismaClient();
@@ -75,6 +79,7 @@ const YEARS = [2025, 2026, 2027];
// ─── Main ─────────────────────────────────────────────────────────────────────
async function main() {
assertSafeSeedTarget("db:seed:vacations");
// Get admin user to act as approver (fall back to manager, then any user)
const admin =
(await prisma.user.findFirst({ where: { systemRole: "ADMIN" }, select: { id: true } })) ??