정리
This commit is contained in:
@@ -2,6 +2,7 @@ module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
// 각 클럽마다 3개의 이벤트 생성
|
||||
const events = [];
|
||||
const now = new Date();
|
||||
for (let clubId = 1; clubId <= 5; clubId++) {
|
||||
for (let i = 1; i <= 3; i++) {
|
||||
events.push({
|
||||
@@ -9,15 +10,15 @@ module.exports = {
|
||||
title: `클럽${clubId} 이벤트${i}`,
|
||||
description: `클럽${clubId}의 이벤트${i} 설명입니다.`,
|
||||
eventType: '정기전', // ENUM 값 중 하나
|
||||
startDate: new Date(2025, 3, 10 + i, 19, 0, 0),
|
||||
endDate: new Date(2025, 3, 10 + i, 22, 0, 0),
|
||||
startDate: new Date(now.getFullYear(), now.getMonth(), now.getDate() + i, 20, 0, 0),
|
||||
endDate: new Date(now.getFullYear(), now.getMonth(), now.getDate() + i, 23, 0, 0),
|
||||
location: `클럽${clubId} 이벤트장소${i}`,
|
||||
gameCount: 3,
|
||||
participantFee: 10000,
|
||||
maxParticipants: 30,
|
||||
registrationDeadline: new Date(2025, 3, 9 + i, 23, 59, 59),
|
||||
registrationDeadline: new Date(now.getFullYear(), now.getMonth(), now.getDate() + i, 18, 0, 0),
|
||||
participantCount: 0,
|
||||
status: '활성', // ENUM 값 중 하나
|
||||
status: '준비', // ENUM 값 중 하나
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user