module.exports = {
  up: async (queryInterface, Sequelize) => {
    // 샘플 멤버 30명 생성 (각 클럽마다 6명씩)
    const members = [];
    let userId = 2;
    for (let clubId = 1; clubId <= 5; clubId++) {
      for (let i = 1; i <= 6; i++) {
        members.push({
          clubId,
          userId: userId <= 10 ? userId : null,
          name: `클럽${clubId}멤버${i}`,
          gender: i % 2 === 0 ? 'female' : 'male',
          memberType: i === 1 ? 'owner' : (i % 2 === 0 ? 'regular' : 'associate'),
          status: 'active',
          joinDate: new Date(),
          createdAt: new Date(),
          updatedAt: new Date()
        });
        userId++;
      }
    }
    await queryInterface.bulkInsert('Members', members, {});
  },
  down: async (queryInterface, Sequelize) => {
    await queryInterface.bulkDelete('Members', { name: { [Sequelize.Op.like]: '클럽%멤버%' } }, {});
  }
};
