1. event

gifuroge: event_table key:event_code
rogdb:  rog_newevent2 key:id (event_name=event_code)

１）
gifuroge.self_rogaining=Falseで、event_day<'2024-10-01'のデータをrogdb.rog_newevent2 に移行したい。
フィールドの移行条件は、
gifuroge.event_table.event_code を rogdb.rog_newevent2.event_name へ
gifuroge.event_table.event_name を rogdb.rog_newevent2.event_description へ
gifuroge.event_table.event_day+start_time を rogdb.rog_newevent2.start_datetime へ
gifuroge.event_table.event_day+start_time+5H を rogdb.rog_newevent2.end_datetime へ
gifuroge.event_table.event_day+start_time-3day を rogdb.rog_newevent2.deadlineDateTime へ
gifuroge.event_table.self_rogaining=False
gifuroge.event_table.class_family | class_general | class_solo_female | cla
ss_solo_male | hour_3 | hour_5 | public=True
である。
SQLで更新するようなスクリプトを作成しなさい。
=>
docker compose exec app python migrate_event_table_to_rog_newevent2.py
insert into rog_newevent2 (event_name,start_datetime,end_datetime,"deadlineDateTime",class_family,class_general,class_solo_female,class_solo_male,hour_3,hour_5,public, self_rogaining, event_description) values ('関ケ原','2022-07-30 01:00:00+00','2022-07-30 06:00:00+00','2022-07-25 06:00:00+00',True,True,True,True,True,True,True,False,'岐阜ロゲin関ケ原');

2. checkpoint

gifuroge: checkpoint_table key:event_code,cp_number
rogdb: rog_location key:id (groupにevent_codeが含まれている)

===以降はFC岐阜より後のもの（以前のものは別途移行が必要）====

3. user

4. team

gifuroge: team_table key:event_code,zekken_number
rogdb: rog_team key:id

team_table : zekken_number,event_code,team_name,class_name,password,trial 
rogdb : 

5. member

gifuroge:
rogdb: rog_member key:id, team_id

6. entry

gifuroge:
rogdb: rog_entry key:id,date,event_id,team_id,zekken_number ,zekken_label (=team.zekken_number)

7. checkin_history

gifuroge: (gps_detail) gps_information key:event_code,zekken_number,cp_number
rogdb: rog_gpscheckin key:



. checkin_image

gifuroge:
rogdb:

8. goal_image

gifuroge:
rogdb:

9. waypoint

gifuroge:
rogdb:
