import { PrismaClient } from '@prisma/client'; import { seedPropertyInventory } from '@/lib/properties'; const prisma = new PrismaClient(); async function main() { const existing = await prisma.siteSettings.findFirst(); if (!existing) { await prisma.siteSettings.create({ data: { businessName: 'Holiday Property Booking', tagline: 'Curated stays, clear availability, and a direct booking flow.', contactEmail: 'hello@example.com', defaultSeoTitle: 'Holiday Property Booking', defaultSeoDescription: 'Book holiday properties with live availability, clear pricing, and secure checkout.', }, }); } await seedPropertyInventory(); } main() .catch((error) => { console.error(error); process.exitCode = 1; }) .finally(async () => { await prisma.$disconnect(); });