Unveränderter Stand von certvia/dev (a48c5fb) plus Craftvia-Spezifikation und Brandbook unter docs/craftvia/. ISMS-Module werden im Folgecommit entfernt. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
16 lines
715 B
TypeScript
16 lines
715 B
TypeScript
import "dotenv/config";
|
|
import { PrismaClient } from "@prisma/client";
|
|
import { PrismaPg } from "@prisma/adapter-pg";
|
|
import { importImplementationHints } from "../prisma/import-hints";
|
|
|
|
// Standalone-Import der C6-Umsetzungshinweise (Story B5-1). Idempotent.
|
|
const prisma = new PrismaClient({ adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) });
|
|
|
|
async function main() {
|
|
const n = await importImplementationHints(prisma);
|
|
const total = await prisma.implementationHint.count();
|
|
const proc = await prisma.implementationHint.count({ where: { procurement: true } });
|
|
console.log(JSON.stringify({ parsed: n, inDb: total, procurement: proc }));
|
|
}
|
|
main().finally(() => prisma.$disconnect());
|