스포츠 팀의 스코어 통계를 추적하는 ERD

테이블 (7)

Season (시즌)

  • 시즌 아이디 (season_id) — Int — 기본 키 — NOT NULL
  • 시즌 명 (season_name) — String

경기 (Match)

  • 각 경기의 고유한 id (match_id) — Int — 기본 키 — NOT NULL
  • 경기 날짜 (match_date) — Date
  • 이겼는지 (isWin) — Boolean
  • 시즌 아이디 (seawon_id) — Int — 외래 키 → Season.시즌 아이디 — NOT NULL
  • 스포츠 팀 아이디 (team_id) — Int — 외래 키 → 스포츠 팀.스포츠 팀 아이디 — NOT NULL
  • 상대팀 아이디 (Opponent) — Int
  • 점수 (match_score) — Int

경기 별 선수 점수 통계 (PlayerMatchStatus)

  • 각 경기의 고유한 id (match_id) — Int — 외래 키 → 경기.각 경기의 고유한 id — NOT NULL
  • 선수의 고유한 id (player_id) — Int — 외래 키 → 선수.선수의 고유한 id — NOT NULL
  • 선수의 득점 점수 (player_score) — Int
  • 선수의 어시스트 횟수 (player_assist) — Int

선수 (Player)

  • 선수의 고유한 id (player_id) — Int — 기본 키 — NOT NULL
  • 스포츠 팀의 고유한 아이디 (team_id) — Int — 외래 키 → 스포츠 팀.스포츠 팀 아이디 — NOT NULL
  • 선수 이름 (player_name) — String
  • 총 승리 횟수 (total_player_win_count) — Int
  • 총 경기 수 (total_player_match_count) — Int
  • 승률 (total_player_odd_wining) — Float
  • 한 경기당 평균 득점 (total_average_per_match) — Float

스포츠 팀 (Team)

  • 스포츠 팀 아이디 (team_id) — Int — 기본 키 — NOT NULL
  • 팀 이름 (team_name) — String
  • 총 승리 횟수 (total_team_win_count) — Int
  • 총 경기 참여 횟수 (total_team_match_count)
  • 승률 (total_team_odds_wining) — Float
  • 한 경기 당 평균 득점 (total_team_average_per_score) — Float

시즌 별 선수 통계 (SeasonPlayerStatus)

  • 시즌 아이디 (season_id) — Int — 외래 키 → Season.시즌 아이디 — NOT NULL
  • 선수의 고유한 id (player_id) — Int — 외래 키 → 선수.선수의 고유한 id — NOT NULL
  • 시즌 승리 횟수 (season_player_win_count) — Int
  • 시즌 진 횟수 (season_player_lose_count) — Int
  • 시즌 비긴 횟수 (season_player_tie_count) — Int
  • 시즌 출전 경기 수 (season_player_match_count) — Int
  • 시즌 총 득점 수 (season_player_total_score) — Int
  • 시즌 총 어시 횟수 (season_player_total_asists) — Int
  • 시즌 한 경기 당 평균 득점 수 (season_player_average_score_per_match) — Float
  • 한 경기 당 평균 어시 수 (season_player_average_asists_per_match) — Float
  • 시즌 선수의 승률 (season_player_odds_wining) — Float

시즌 별 팀 통계 (SeasonTeamStatus)

  • 스포츠 팀 아이디 (team_id) — Int — 외래 키 → 스포츠 팀.스포츠 팀 아이디 — NOT NULL
  • 시즌 아이디 (season_id) — Int — 외래 키 → Season.시즌 아이디 — NOT NULL
  • 시즌 승리 횟수 (season_team_win_count) — Int
  • 시즌 진 횟수 (season_team_lose_count) — Int
  • 시즌 비긴 횟수 (season_team_tie_count) — Int
  • 시즌 총 경기 참여 횟수 (season_team_match_count) — Int
  • 시즌 한 경기당 편균 득점 (season_team_average_score_per_match) — Float
  • 시즌 승률 (season_team_odds _winning) — Float