Implement property detail and enquiry entry flow
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user