/** * Development/Test fixture seeding. Idempotent: running it twice must not * duplicate anything. Real fixtures (users, ponds, pages) arrive with their * feature stories (#20, #32); until then this only proves the wiring. */ import { PrismaClient } from '@prisma/client'; const prisma = new PrismaClient(); async function main(): Promise { await prisma.instanceSetting.upsert({ where: { key: 'seed.marker' }, create: { key: 'seed.marker', value: { seededAt: new Date().toISOString() } }, update: { value: { seededAt: new Date().toISOString() } }, }); console.log('seed: done (no fixtures defined yet)'); } main() .catch((error) => { console.error(error); process.exitCode = 1; }) .finally(() => prisma.$disconnect());