archives
Tables (7)
Match (경기)
- id (고유 ID) — Integer or UUID — Primary key — NOT NULL
- replay_code (리플레이코드)
- played_at (경기 날짜/시간)
Player (선수)
- id (선수 ID) — Primary key — NOT NULL
- name (이름)
PlayerTeam (선수-팀 연결테이블)
- player_id (선수 ID) — Foreign key → Player.id — NOT NULL
- team_id (팀 ID) — Foreign key → Team.id — NOT NULL
- season_id (시즌 ID) — Foreign key → Season.id — NOT NULL
Replay (리플레이)
- id (리플레이 ID) — Primary key — NOT NULL
- match_id (경기 ID) — Integer or UUID — Foreign key → Match.id — NOT NULL
- player_id (선수 ID) — Foreign key → PlayerTeam.player_id — NOT NULL
- team_id (팀 ID) — Foreign key → PlayerTeam.team_id — NOT NULL
- season_id (시즌 ID) — Foreign key → PlayerTeam.season_id — NOT NULL
- video_url (유튜브 링크)
- start_time (시작 시간 (시간 보정을 위해 음수도 가능하게 해야할 것 같아요))
- pov_type (선수 or 중계 시점)
Season (시즌)
- id (시즌 ID) — Primary key — NOT NULL
- name (시즌명 (ex, 2025 OWCS KOREA))
- start_date (시작일)
- end_date (종료일)
Team (팀)
- id (팀 ID) — Primary key — NOT NULL
- name (이름)
User (유저)
- id (유저 ID) — Primary key — NOT NULL
- email (이메일)
- password (해쉬된 비밀번호)
- permission (비트 필트로 관리되는 권한) — Integer