용병
테이블 (13)
매치 (Match)
- match_id — NOT NULL — 기본 키 — NOT NULL
- title — NOT NULL
- 팀1 (team_id_1) — NOT NULL
- 팀2 (team_id_2) — NOT NULL
- 경기장소 (location) — NOT NULL
- 상태(모집중, 모집완료) (status) — NOT NULL
- created_at — NOT NULL
- updated_at — NOT NULL
매치모집인원 (RecruitMember)
- match_id — NOT NULL — 외래 키 → 매치.match_id — NOT NULL
- 회원ID (user_id) — NOT NULL — 외래 키 → 회원.회원ID — NOT NULL
- 수락상태 (status) — NOT NULL
- 모집설명 (description) — NOT NULL
- created_at — NOT NULL
- updated_at — NOT NULL
매치지원 (MatchApplication)
- application_id — NOT NULL — 기본 키 — NOT NULL
- match_id — NOT NULL — 외래 키 → 매치.match_id — NOT NULL
- 회원ID (user_id) — NOT NULL — 외래 키 → 회원.회원ID — NOT NULL
- title — NOT NULL
- 종목 (sports_event) — NOT NULL
- 설명 (description) — NOT NULL
- 선호포지션 (preferred_position) — NOT NULL
- region — NOT NULL
- created_at — NOT NULL
- updated_at — NOT NULL
메시지 (Message)
- message_id — NOT NULL — 기본 키 — NOT NULL
- 회원ID (user_id) — NOT NULL — 외래 키 → 회원.회원ID — NOT NULL
- 채팅룸ID (chattingroom_id) — NOT NULL — 외래 키 → 채팅룸.채팅룸ID — NOT NULL
- text — NOT NULL
- type — NOT NULL
- created_at — NOT NULL
스포츠 (Sports)
- 회원ID (user_id) — NOT NULL — 외래 키 → 회원.회원ID — NOT NULL
- 축구레벨 (football_level) — NULL
- 축구설명 (football_decription) — NULL
- 농구레벨 (basketball_level) — NULL
- 농구설명 (basketball_decription) — NULL
- 야구레벨 (baseball_level) — NULL
- 야구설명 (baseball_decription) — NULL
용병 리포트 (PlayerReport)
- match_id — NOT NULL — 외래 키 → 매치.match_id — NOT NULL
- application_id — NOT NULL — 외래 키 → 매치지원.application_id — NOT NULL
- match_id (match_id2) — NOT NULL — 외래 키 → 매치지원.match_id — NOT NULL
- 회원ID (user_id) — NOT NULL — 외래 키 → 매치지원.회원ID — NOT NULL
- 실력(평가수치) (skill) — NOT NULL
- 리폿 (report) — NOT NULL
- created_at — NOT NULL
용병구직 (PlayerForHire)
- hiring_id — NOT NULL — 기본 키 — NOT NULL
- 회원ID (user_id) — NOT NULL — 외래 키 → 회원.회원ID — NOT NULL
- title — NOT NULL
- 활동지역 (region) — NOT NULL
- 원하는날짜 (date) — NOT NULL
- 선호포지션 (preferred_postion) — NOT NULL
- 구직상태(구직중, 완료) (hiring_status) — NOT NULL
- created_at — NOT NULL
- updated_at — NOT NULL
차단 (block)
- id — NOT NULL — 기본 키 — NOT NULL
- 회원ID (user_id) — NOT NULL — 외래 키 → 회원.회원ID — NOT NULL
- blocked_at — NOT NULL
채팅룸 (ChattingRoom)
- 채팅룸ID (chattingroom_id) — NOT NULL — 기본 키 — NOT NULL
- title — NOT NULL
- created_by — NOT NULL
- created_at — NOT NULL
채팅멤버 (ChattingMembers)
- id — NOT NULL — 기본 키 — NOT NULL
- 채팅룸ID (chattingroom_id) — NOT NULL — 외래 키 → 채팅룸.채팅룸ID — NOT NULL
- 회원ID (user_id) — NOT NULL — 외래 키 → 회원.회원ID — NOT NULL
- joined_at — NOT NULL
팀 (Team)
- 팀ID (team_id) — NOT NULL — 기본 키 — NOT NULL
- 팀관리자 (manager_id) — NOT NULL — 외래 키 → 회원.회원ID — NOT NULL
- 팀종류 (team_type) — NOT NULL
- 팀이름 (teamname) — NOT NULL
- 팀레벨 (team_level) — NOT NULL
- 활동지역 (region) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
팀 리포트 (TeamReport)
- id — NOT NULL — 기본 키 — NOT NULL
- match_id — NOT NULL — 외래 키 → 매치.match_id — NOT NULL
- 팀ID (team_id) — NOT NULL — 외래 키 → 팀.팀ID — NOT NULL
- 회원ID (user_id) — NOT NULL — 외래 키 → 회원.회원ID — NOT NULL
- 명성(평가수치) (reputation) — NOT NULL
- 리폿 (report) — NOT NULL
- created_at — NOT NULL
회원 (User)
- 회원ID (user_id) — NOT NULL — 기본 키 — NOT NULL
- 회원이름 (username) — NOT NULL
- 비밀번호 (password) — NOT NULL
- 실명 (name) — NOT NULL
- 전화번호 (phone_number) — NOT NULL
- 거주지 (residence_location) — NOT NULL
- 활동지 (active_zone) — NOT NULL
- 나이 (age) — NOT NULL
- 자기소개 (introduction) — NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL