Implement property detail and enquiry entry flow

This commit is contained in:
2026-05-26 09:39:10 +00:00
parent d1314f2181
commit 3d334a6b96
11 changed files with 966 additions and 133 deletions

View File

@@ -1,23 +1,24 @@
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) {
return;
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 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()
@@ -28,4 +29,3 @@ main()
.finally(async () => {
await prisma.$disconnect();
});