const { PrismaClient } = require('@prisma/client');
const prisma = new PrismaClient();

async function main() {
  const tourId = '84d84c21-c12b-4a18-9655-043c85f5c0c5'; // Use existing tour ID from seed
  
  console.log('Inserting first manual member...');
  try {
    const p1 = await prisma.tourParticipant.create({
      data: {
        tourId,
        role: 'MEMBER',
        displayName: 'Manual Member 1'
      }
    });
    console.log('Inserted:', p1);
  } catch (err) {
    console.error('Failed to insert first:', err);
  }

  console.log('Inserting second manual member...');
  try {
    const p2 = await prisma.tourParticipant.create({
      data: {
        tourId,
        role: 'MEMBER',
        displayName: 'Manual Member 2'
      }
    });
    console.log('Inserted:', p2);
  } catch (err) {
    console.error('Failed to insert second:', err);
  }
}

main().catch(console.error).finally(() => prisma.$disconnect());
