module.exports = {
  up: async (queryInterface, Sequelize) => {
    // 샘플 클럽 5개 생성 (ownerId는 1~5)
    const clubs = [];
    for (let i = 1; i <= 5; i++) {
      clubs.push({
        name: `샘플 볼링 클럽 ${i}`,
        description: `샘플 볼링 클럽 ${i} 설명입니다.`,
        location: `도시${i} 구${i}`,
        ownerId: i+1,
        status: 'active',
        memberCount: 10,
        createdAt: new Date(),
        updatedAt: new Date()
      });
    }
    await queryInterface.bulkInsert('Clubs', clubs, {});
  },
  down: async (queryInterface, Sequelize) => {
    await queryInterface.bulkDelete('Clubs', { name: { [Sequelize.Op.like]: '샘플 볼링 클럽 %' } }, {});
  }
};
