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
Some checks failed
Build and Push App / build (push) Failing after 11m14s
This commit is contained in:
@@ -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({});
|
||||
|
||||
Reference in New Issue
Block a user