랭킹2024ERD
테이블 (20)
club
- club_uid — bigint(20) — 기본 키 — NOT NULL — 클럽 UID
- club_name — varchar(45) — 클럽명
- sports_type — varchar(45) — 스포츠 타입
- address — varchar(200) — 주소
- introduction — varchar(3000) — 소개글
- created_dt — datetime — 생성일시
club_rank_setting
- club_uid — bigint(20) — NOT NULL — 클럽 UID
- rank_name — varchar(30) — 랭크명
- min_range — int(11) — 점수 범위 최소값
- max_rangeint(11) — DEFAULT — 점수 범위 최대값
- created_dt — datetime — 생성일시
- creator_uid — bigint(20) — 생성자 UID
- updated_dt — datetime — 수정일시
- updator_uid — bigint(20) — 수정자 UID
club_rank_setting_history
- club_uid — bigint(20) — NOT NULL — 클럽 UID
- rank_name — varchar(30) — 랭크명
- min_range — int(11) — 점수 범위 최소값
- max_rangeint(11) — DEFAULT — 점수 범위 최대값
- updated_dt — datetime — 수정일시
- updator_uid — bigint(20) — 수정자 UID
club_score_setting
- club_uid — bigint(20) — NOT NULL — 클럽 UID
- win_score — int(11) — 승리 점수
- loss_scoreint(11) — DEFAULT — 패배 점수
- difference_score — int(11) — 차이 점수
- operator — varchar(30) — 차이 계산식
- updated_dt — datetime — 수정일시
- updator_uid — bigint(20) — 수정자 UID
club_score_setting_history
- club_uid — bigint(20) — NOT NULL — 클럽 UID
- win_score — int(11) — 승리 점수
- loss_scoreint(11) — DEFAULT — 패배 점수
- difference_score — int(11) — 차이 점수
- operator — varchar(30) — 차이 계산식
- updated_dt — datetime — 수정일시
- updator_uid — bigint(20) — 수정자 UID
game
- game_uid — bigint(20) — 기본 키 — NOT NULL — 게임 UID
- meet_uid — bigint(20) — NOT NULL — 모임 UID
- geme_status — int(11) — NOT NULL — 게임 상태(0:예정,1:게임중,2:게임종료)
- win_team_indexint(11) — DEFAULT — 승자 팀 인덱스
- approve_type — varchar(30) — 게임 승인 유형(ADMIN:관리자승인,VOTE:팀 과반수 승인)
- approve_dt — datetime — 게임 결과 승인(점수반영) 일시
- created_dt — datetime — 게임 등록 시간
- end_dt — datetime — 게임 종료 시간
game_player
- game_uid — bigint(20) — NOT NULL — 게임 UID
- player_uid — bigint(20) — NOT NULL — 사용자 UID
- team_indexint(11) — COMMENT — 팀 인덱스
- is_approve — varchar(30) — 게임 결과 승인
- approve_dt — datetime — 게임 승인 일시
- created_dt — datetime — 선수 등록 일시
game_result
- game_uid — bigint(20) — NOT NULL — 게임 UID
- team_indexint(11) — COMMENT — 팀 인덱 스
- scoreint(11) — DEFAULT — 게임 결과 점수
- created_dt — datetime — 게임 결과 등록 일시
meet
- meet_uid — bigint(20) — 기본 키 — NOT NULL — 모임 UID
- club_uid — bigint(20) — NOT NULL — 클럽 UID
- meet_name — varchar(45) — 모임 이름
- location — varchar(200) — 모임 장소
- limit_attend_userint(11) — DEFAULT — 모집 인원
- start_dt — datetime — 시작 일시
- end_dt — datetime — 종료 일시
meet_attend
- meet_uid — bigint(20) — NOT NULL — 모임 UID
- user_uid — bigint(20) — NOT NULL — 참 가자 UID
- attent_type — varchar(30) — 참가 타입(COMMON:일반,RANK:랭킹)
- attent_status — int(11) — 참가 상태(1:참가요청,2:취소,3:대기,4:출석,5:불참)
- created_dt — datetime — 최초 참가 요청 일시
- updated_dt — datetime — 업데이트 일시
meet_attend_history
- meet_uid — bigint(20) — NOT NULL — 모임 UID
- user_uid — bigint(20) — NOT NULL — 참 가자 UID
- attent_type — varchar(30) — 참가 타입(COMMON:일반,RANK:랭킹)
- attent_status — int(11) — 참가 상태(1:참가요청,2:취소,3:대기,4:출석,5:불참)
- created_dt — datetime — 생성일시
role
- role_uid — bigint(20) — 기본 키 — NOT NULL — 역할 UID
- role_name — varchar(45) — 역할명
- created_dt — datetime — 생성일시
user
- user_uid — bigint(20) — 기본 키 — NOT NULL — 사용자 UID
- user_name — varchar(45) — 사용자명
- phone_number — int(20) — 사용자 번호
- password — varchar(200) — 사용자 비밀번호
- email — varchar(200) — 사용자 이메일
- created_dt — datetime — 생성일시
- updated_dt — datetime — 수정일시
user_attend
- club_uid — bigint(20) — NOT NULL — 클럽 UID
- user_uid — bigint(20) — NOT NULL — 참 가자 UID
- attend_dt — datetime — 출석일시
user_club_join_request
- club_uid — bigint(20) — NOT NULL — 클럽 UID
- user_uid — bigint(20) — NOT NULL — 사용자 UID
- request_status — int(11) — 요청 상태(1:신청대기,2:승인,3:거절)
- request_dt — datetime — 최초 요청일시
- act_dt — datetime — 처리일시(승인,거절 처리)
- actor_uid — bigint(20) — 처리자 UID
user_club_mapp
- club_uid — bigint(20) — NOT NULL — 클럽 UID
- user_uid — bigint(20) — NOT NULL — 사용자 UID
- created_dt — datetime — 생성일시
user_login_history
- user_uid — bigint(20) — NOT NULL — 유저 UID
- user_name — varchar(45) — 유저 이름
- login_ip — varchar(45) — 로그인 IP
- login_resultint(11) — DEFAULT — 로그인 결과
- login_dt — datetime — 로그인 일시
user_role
- user_uid — bigint(20) — NOT NULL — 사용자 UID
- club_uid — bigint(20) — NOT NULL — 클럽 UID
- role_uid — bigint(20) — NOT NULL — 권한 UID
- created_dt — datetime — 생성일시
- updated_dt — datetime — 수정일시
- actor_uid — bigint(20) — NOT NULL — 처리자 UID
user_score
- club_uid — bigint(20) — NOT NULL — 클럽 UID
- user_uid — bigint(20) — NOT NULL — 사용자 UID
- score — int(11) — 점수
- win_count — int(11) — 승리한 시합 횟수
- loss_count — int(11) — 패배한 시합 횟수
- game_count — int(11) — 총 시합 횟수
- updated_dt — datetime — 수정일시
user_score_history
- club_uid — bigint(20) — NOT NULL — 클럽 UID
- game_uid — bigint(20) — NOT NULL — 게임 UID
- user_uid — bigint(20) — NOT NULL — 참 가자 UID
- is_winchar(1) — COMMENT — Y:승리,N:패배
- scoreint(11) — DEFAULT — 반영된 점수
- club_win_score_setting — int(11) — 승리 점수
- club_loss_score_settingint(11) — DEFAULT — 패배 점수
- club_difference_score_setting — int(11) — 차이 점수
- club_operator_setting — varchar(30) — 차이 계산식
- created_dt — datetime — 점수 반영 일시