@@ -3069,7 +3069,7 @@ INSERT INTO diet_log_ingredient(diet_log_id, ingredient_id)
30693069VALUES (8 , 54 ); -- 쫄면
30703070
30713071-- 챌린지 더미 데이터
3072- -- 6월
3072+ -- 2월
30733073INSERT INTO challenge (
30743074 name, description, purpose, month, year, achievement_name,
30753075 step1goal1type, step1goal2type, step2goal1type, step2goal2type,
@@ -3079,20 +3079,20 @@ INSERT INTO challenge (
30793079 achievement_image_url, gray_achievement_image_url
30803080)
30813081VALUES (
3082- " 6월 챌린지" ,
3083- " 설명- 6월 챌린지입니다.(식재료: 오이 id: 1166 )" ,
3084- " 목적- 6월 챌린지입니다." ,
3085- 6 , 2025 ,
3082+ " 2월 챌린지" ,
3083+ " 설명- 2월 챌린지입니다.(식재료: 봄동 id: 1111 )" ,
3084+ " 목적- 2월 챌린지입니다." ,
3085+ 2 , 2025 ,
30863086 " 비타민 수호자" ,
30873087 ' DIET_SEASONAL_ONCE' , ' DIET_LUNCH' , ' DIET_SEASONAL_ONCE' , ' DIET_BREAKFAST' ,
30883088 ' DIET_SEASONAL_ONCE' , ' DIET_THREE_MEALS' , ' RECIPE_SEASONAL_ONCE' , ' DIET_60_A_MONTH' ,
30893089 ' 하루 한 끼 재철 식재료를 포함한 식사' , ' 점심 챙겨 먹기' , ' 하루 한 끼 재철 식재료를 포함한 식사' , ' 아침 챙겨 먹기' ,
30903090 ' 하루 한 끼 재철 식재료를 포함한 식사' , ' 하루 3끼 식단 기록' , ' 재철 식재료를 활용한 레시피 작성' , ' 1달 동안 누적 60끼 식단 기록' ,
3091- ' https://example.com/images/color_6 .png' ,
3092- ' https://example.com/images/gray_6 .png'
3091+ ' https://example.com/images/color_2 .png' ,
3092+ ' https://example.com/images/gray_2 .png'
30933093);
30943094
3095- -- 5월
3095+ -- 3월
30963096INSERT INTO challenge (
30973097 name, description, purpose, month, year, achievement_name,
30983098 step1goal1type, step1goal2type, step2goal1type, step2goal2type,
@@ -3102,20 +3102,19 @@ INSERT INTO challenge (
31023102 achievement_image_url, gray_achievement_image_url
31033103)
31043104VALUES (
3105- " 5월 봄맞이 챌린지" ,
3106- " 설명- 5월 챌린지입니다.(식재료: 딸기 id: 142 )" ,
3107- " 목적- 5월 챌린지입니다." ,
3108- 5 , 2025 ,
3105+ " 3월 챌린지" ,
3106+ " 설명- 3월 챌린지입니다.(식재료: 쑥 id: 1142 )" ,
3107+ " 목적- 3월 챌린지입니다." ,
3108+ 3 , 2025 ,
31093109 " 비타민 수호자" ,
31103110 ' DIET_SEASONAL_ONCE' , ' DIET_LUNCH' , ' DIET_SEASONAL_ONCE' , ' DIET_BREAKFAST' ,
31113111 ' DIET_SEASONAL_ONCE' , ' DIET_THREE_MEALS' , ' RECIPE_SEASONAL_ONCE' , ' DIET_60_A_MONTH' ,
31123112 ' 하루 한 끼 재철 식재료를 포함한 식사' , ' 점심 챙겨 먹기' , ' 하루 한 끼 재철 식재료를 포함한 식사' , ' 아침 챙겨 먹기' ,
31133113 ' 하루 한 끼 재철 식재료를 포함한 식사' , ' 하루 3끼 식단 기록' , ' 재철 식재료를 활용한 레시피 작성' , ' 1달 동안 누적 60끼 식단 기록' ,
3114- ' https://example.com/images/color_5 .png' ,
3115- ' https://example.com/images/gray_5 .png'
3114+ ' https://example.com/images/color_3 .png' ,
3115+ ' https://example.com/images/gray_3 .png'
31163116);
31173117
3118-
31193118-- 4월
31203119INSERT INTO challenge (
31213120 name, description, purpose, month, year, achievement_name,
@@ -3139,7 +3138,7 @@ VALUES (
31393138 ' https://example.com/images/gray_4.png'
31403139);
31413140
3142- -- 3월
3141+ -- 5월
31433142INSERT INTO challenge (
31443143 name, description, purpose, month, year, achievement_name,
31453144 step1goal1type, step1goal2type, step2goal1type, step2goal2type,
@@ -3149,20 +3148,20 @@ INSERT INTO challenge (
31493148 achievement_image_url, gray_achievement_image_url
31503149)
31513150VALUES (
3152- " 3월 챌린지" ,
3153- " 설명- 3월 챌린지입니다.(식재료: 쑥 id: 1142 )" ,
3154- " 목적- 3월 챌린지입니다." ,
3155- 3 , 2025 ,
3151+ " 5월 봄맞이 챌린지" ,
3152+ " 설명- 5월 챌린지입니다.(식재료: 딸기 id: 142 )" ,
3153+ " 목적- 5월 챌린지입니다." ,
3154+ 5 , 2025 ,
31563155 " 비타민 수호자" ,
31573156 ' DIET_SEASONAL_ONCE' , ' DIET_LUNCH' , ' DIET_SEASONAL_ONCE' , ' DIET_BREAKFAST' ,
31583157 ' DIET_SEASONAL_ONCE' , ' DIET_THREE_MEALS' , ' RECIPE_SEASONAL_ONCE' , ' DIET_60_A_MONTH' ,
31593158 ' 하루 한 끼 재철 식재료를 포함한 식사' , ' 점심 챙겨 먹기' , ' 하루 한 끼 재철 식재료를 포함한 식사' , ' 아침 챙겨 먹기' ,
31603159 ' 하루 한 끼 재철 식재료를 포함한 식사' , ' 하루 3끼 식단 기록' , ' 재철 식재료를 활용한 레시피 작성' , ' 1달 동안 누적 60끼 식단 기록' ,
3161- ' https://example.com/images/color_3 .png' ,
3162- ' https://example.com/images/gray_3 .png'
3160+ ' https://example.com/images/color_5 .png' ,
3161+ ' https://example.com/images/gray_5 .png'
31633162);
31643163
3165- -- 2월
3164+ -- 6월
31663165INSERT INTO challenge (
31673166 name, description, purpose, month, year, achievement_name,
31683167 step1goal1type, step1goal2type, step2goal1type, step2goal2type,
@@ -3172,19 +3171,176 @@ INSERT INTO challenge (
31723171 achievement_image_url, gray_achievement_image_url
31733172)
31743173VALUES (
3175- " 2월 챌린지" ,
3176- " 설명- 2월 챌린지입니다.(식재료: 봄동 id: 1111 )" ,
3177- " 목적- 2월 챌린지입니다." ,
3178- 2 , 2025 ,
3174+ " 6월 챌린지" ,
3175+ " 설명- 6월 챌린지입니다.(식재료: 오이 id: 1166 )" ,
3176+ " 목적- 6월 챌린지입니다." ,
3177+ 6 , 2025 ,
31793178 " 비타민 수호자" ,
31803179 ' DIET_SEASONAL_ONCE' , ' DIET_LUNCH' , ' DIET_SEASONAL_ONCE' , ' DIET_BREAKFAST' ,
31813180 ' DIET_SEASONAL_ONCE' , ' DIET_THREE_MEALS' , ' RECIPE_SEASONAL_ONCE' , ' DIET_60_A_MONTH' ,
31823181 ' 하루 한 끼 재철 식재료를 포함한 식사' , ' 점심 챙겨 먹기' , ' 하루 한 끼 재철 식재료를 포함한 식사' , ' 아침 챙겨 먹기' ,
31833182 ' 하루 한 끼 재철 식재료를 포함한 식사' , ' 하루 3끼 식단 기록' , ' 재철 식재료를 활용한 레시피 작성' , ' 1달 동안 누적 60끼 식단 기록' ,
3184- ' https://example.com/images/color_2.png' ,
3185- ' https://example.com/images/gray_2.png'
3183+ ' https://example.com/images/color_6.png' ,
3184+ ' https://example.com/images/gray_6.png'
3185+ );
3186+
3187+ -- 챌린지 미션 더미데이터
3188+ -- A 회원의 2월 챌린지 달성
3189+ INSERT INTO challenge_achievement (
3190+ challenge_completed,
3191+ step1goal1achieved, step1goal1active,
3192+ step1goal2achieved, step1goal2active,
3193+ step2goal1achieved, step2goal1active,
3194+ step2goal2achieved, step2goal2active,
3195+ step3goal1achieved, step3goal1active,
3196+ step3goal2achieved, step3goal2active,
3197+ step4goal1achieved, step4goal1active,
3198+ step4goal2achieved, step4goal2active,
3199+ challenge_completed_at,
3200+ challenge_id,
3201+ member_id,
3202+ opened_at
3203+ ) VALUES (
3204+ 1 , -- challenge_completed
3205+ 1 , 1 , -- step1goal1achieved, step1goal1active
3206+ 1 , 1 , -- step1goal2achieved, step1goal2active
3207+ 1 , 1 , -- step2goal1achieved, step2goal1active
3208+ 1 , 1 , -- step2goal2achieved, step2goal2active
3209+ 1 , 1 , -- step3goal1achieved, step3goal1active
3210+ 1 , 1 , -- step3goal2achieved, step3goal2active
3211+ 1 , 1 , -- step4goal1achieved, step4goal1active
3212+ 1 , 1 , -- step4goal2achieved, step4goal2active
3213+ NOW(), -- challenge_completed_at
3214+ 1 , -- challenge_id (2월)
3215+ 2 , -- member_id (A@example.com)
3216+ NOW() -- opened_at
31863217);
31873218
3219+ -- A 회원의 3월 챌린지 달성
3220+ INSERT INTO challenge_achievement (
3221+ challenge_completed,
3222+ step1goal1achieved, step1goal1active,
3223+ step1goal2achieved, step1goal2active,
3224+ step2goal1achieved, step2goal1active,
3225+ step2goal2achieved, step2goal2active,
3226+ step3goal1achieved, step3goal1active,
3227+ step3goal2achieved, step3goal2active,
3228+ step4goal1achieved, step4goal1active,
3229+ step4goal2achieved, step4goal2active,
3230+ challenge_completed_at,
3231+ challenge_id,
3232+ member_id,
3233+ opened_at
3234+ ) VALUES (
3235+ 1 , -- challenge_completed
3236+ 1 , 1 , -- step1goal1achieved, step1goal1active
3237+ 1 , 1 , -- step1goal2achieved, step1goal2active
3238+ 1 , 1 , -- step2goal1achieved, step2goal1active
3239+ 1 , 1 , -- step2goal2achieved, step2goal2active
3240+ 1 , 1 , -- step3goal1achieved, step3goal1active
3241+ 1 , 1 , -- step3goal2achieved, step3goal2active
3242+ 1 , 1 , -- step4goal1achieved, step4goal1active
3243+ 1 , 1 , -- step4goal2achieved, step4goal2active
3244+ NOW(), -- challenge_completed_at
3245+ 2 , -- challenge_id (3월)
3246+ 2 , -- member_id (A@example.com)
3247+ NOW() -- opened_at
3248+ );
3249+
3250+ -- A 회원의 4월 챌린지 달성
3251+ INSERT INTO challenge_achievement (
3252+ challenge_completed,
3253+ step1goal1achieved, step1goal1active,
3254+ step1goal2achieved, step1goal2active,
3255+ step2goal1achieved, step2goal1active,
3256+ step2goal2achieved, step2goal2active,
3257+ step3goal1achieved, step3goal1active,
3258+ step3goal2achieved, step3goal2active,
3259+ step4goal1achieved, step4goal1active,
3260+ step4goal2achieved, step4goal2active,
3261+ challenge_completed_at,
3262+ challenge_id,
3263+ member_id,
3264+ opened_at
3265+ ) VALUES (
3266+ 1 , -- challenge_completed
3267+ 1 , 1 , -- step1goal1achieved, step1goal1active
3268+ 1 , 1 , -- step1goal2achieved, step1goal2active
3269+ 1 , 1 , -- step2goal1achieved, step2goal1active
3270+ 1 , 1 , -- step2goal2achieved, step2goal2active
3271+ 1 , 1 , -- step3goal1achieved, step3goal1active
3272+ 1 , 1 , -- step3goal2achieved, step3goal2active
3273+ 1 , 1 , -- step4goal1achieved, step4goal1active
3274+ 1 , 1 , -- step4goal2achieved, step4goal2active
3275+ NOW(), -- challenge_completed_at
3276+ 3 , -- challenge_id (4월)
3277+ 2 , -- member_id (A@example.com)
3278+ NOW() -- opened_at
3279+ );
3280+
3281+ -- A 회원의 5월 챌린지 3개만 달성
3282+ INSERT INTO challenge_achievement (
3283+ challenge_completed,
3284+ step1goal1achieved, step1goal1active,
3285+ step1goal2achieved, step1goal2active,
3286+ step2goal1achieved, step2goal1active,
3287+ step2goal2achieved, step2goal2active,
3288+ step3goal1achieved, step3goal1active,
3289+ step3goal2achieved, step3goal2active,
3290+ step4goal1achieved, step4goal1active,
3291+ step4goal2achieved, step4goal2active,
3292+ challenge_completed_at,
3293+ challenge_id,
3294+ member_id,
3295+ opened_at
3296+ ) VALUES (
3297+ 0 , -- challenge_completed
3298+ 1 , 1 , -- step1goal1achieved, step1goal1active
3299+ 1 , 1 , -- step1goal2achieved, step1goal2active
3300+ 1 , 1 , -- step2goal1achieved, step2goal1active
3301+ 0 , 1 , -- step2goal2achieved, step2goal2active
3302+ 0 , 0 , -- step3goal1achieved, step3goal1active
3303+ 0 , 0 , -- step3goal2achieved, step3goal2active
3304+ 0 , 0 , -- step4goal1achieved, step4goal1active
3305+ 0 , 0 , -- step4goal2achieved, step4goal2active
3306+ NULL , -- challenge_completed_at
3307+ 4 , -- challenge_id (5월)
3308+ 2 , -- member_id (A@example.com)
3309+ NOW() -- opened_at
3310+ );
3311+
3312+ -- B 회원의 2월 챌린지 3개만 달성
3313+ INSERT INTO challenge_achievement (
3314+ challenge_completed,
3315+ step1goal1achieved, step1goal1active,
3316+ step1goal2achieved, step1goal2active,
3317+ step2goal1achieved, step2goal1active,
3318+ step2goal2achieved, step2goal2active,
3319+ step3goal1achieved, step3goal1active,
3320+ step3goal2achieved, step3goal2active,
3321+ step4goal1achieved, step4goal1active,
3322+ step4goal2achieved, step4goal2active,
3323+ challenge_completed_at,
3324+ challenge_id,
3325+ member_id,
3326+ opened_at
3327+ ) VALUES (
3328+ 0 , -- challenge_completed
3329+ 1 , 1 , -- step1goal1achieved, step1goal1active
3330+ 1 , 1 , -- step1goal2achieved, step1goal2active
3331+ 1 , 1 , -- step2goal1achieved, step2goal1active
3332+ 0 , 1 , -- step2goal2achieved, step2goal2active
3333+ 0 , 0 , -- step3goal1achieved, step3goal1active
3334+ 0 , 0 , -- step3goal2achieved, step3goal2active
3335+ 0 , 0 , -- step4goal1achieved, step4goal1active
3336+ 0 , 0 , -- step4goal2achieved, step4goal2active
3337+ NULL , -- challenge_completed_at
3338+ 1 , -- challenge_id (2월)
3339+ 3 , -- member_id (B@example.com)
3340+ NOW() -- opened_at
3341+ );
3342+
3343+
31883344
31893345
31903346-- 회원
0 commit comments