feat: initialize Prisma database with migration and seed scripts for blog and afrolife data
Some checks failed
Build and Push App / build (push) Failing after 11m14s

This commit is contained in:
2026-04-28 16:03:37 +02:00
parent b55b15a2aa
commit 81b068e5c9
6 changed files with 996 additions and 1 deletions

View File

@@ -19,8 +19,12 @@ async function main() {
// 1. CLEANING DATA
console.log('🧹 Cleaning existing data...');
// Note: Only clean structure/system tables for a fresh core seed
await prisma.favorite.deleteMany({});
await prisma.rating.deleteMany({});
await prisma.comment.deleteMany({});
await prisma.message.deleteMany({});
await prisma.conversationParticipant.deleteMany({});
await prisma.conversation.deleteMany({});
await prisma.offer.deleteMany({});
await prisma.business.deleteMany({});
await prisma.businessCategory.deleteMany({});