Fandom-K
Tables (9)
Artist (아티스트)
- 아티스트 아이디 (artist_id) — INT — Primary key — NOT NULL
- 아티스트 이름 (name) — VARCHAR(50)
- 그룹이름 (group_name) — VARCHAR(50)
- 등록일시 (created_at) — DATETIME
CreditTransaction (크레딧 충전 기록)
- 충전 기록 아이디 (transaction_id) — INT — Primary key — NOT NULL
- 충전한 크레딧 수량 (amount) — INT
- 결제수단 (payment_method) — VARCHAR(50)
- 충전일시 (transaction_date) — DATETIME
- 유저 아이디 (user_id) — INT — Foreign key → User.유저 아이디 — NOT NULL
Follow (팔로우)
- 유저 아이디 (user_id) — INT — Foreign key → User.유저 아이디 — NOT NULL
- 아티스트 아이디 (artist_id) — INT — Foreign key → Artist.아티스트 아이디 — NOT NULL
- 팔로우한 날짜/시간 (follow_date) — DATETIME
MonthlyChart (이달의 차트)
- 차트 아이디 (chart_id) — INT — Primary key — NOT NULL
- 차트 기준 월 (month) — VARCHAR(10)
- 순위 (RANK) — INT
- 투표 점수 (vote_score) — INT
- 후원 점수 (support_score) — INT
- 총점(vote+support) (total_score) — INT
- 차트 기록 일시 (created_at) — DATETIME
- 아티스트 아이디 (artist_id) — INT — Foreign key → Artist.아티스트 아이디 — NOT NULL
MonthlyTopArtist (이달의 아티스트)
- 고유 아이디 (record_id) — INT — Primary key — NOT NULL
- 해당 월 (month) — VARCHAR(10)
- 선정일시 (selected_at) — DATETIME
- 아티스트 아이디 (artist_id) — INT — Foreign key → Artist.아티스트 아이디 — NOT NULL
Project (광고 프로젝트)
- 프로젝트 아이디 (project_id) — INT — Primary key — NOT NULL
- 프로젝트 제목 (title) — VARCHAR(200)
- 프로젝트 설명 (description) — TEXT
- 목표 크레딧 (goal_credit) — INT
- 시작일 (start_date) — DATE
- 종료일 (end_date) — DATE
- 장소 (location) — VARCHAR(30)
- 등록일시 (created_at) — DATETIME
- 아티스트 아이디 (artist_id) — INT — Foreign key → Artist.아티스트 아이디 — NOT NULL
Support (후원)
- 후원 아이디 (support_id) — INT — Primary key — NOT NULL
- 후원한 크레딧 수량 (support_credit) — INT
- 후원일시 (support_date) — DATETIME
- 유저 아이디 (user_id) — INT — Foreign key → User.유저 아이디 — NOT NULL
- 아티스트 아이디 (artist_id) — INT — Foreign key → Artist.아티스트 아이디 — NOT NULL
User (유저)
- 유저 아이디 (user_id) — INT — Primary key — NOT NULL
- 이메일 (email) — VARCHAR(50)
- 비밀번호 (password) — VARCHAR(50)
- 닉네임 (nickname) — VARCHAR(30)
- 전화번호 (phone_number) — VARCHAR(30)
- 주소 (address) — VARCHAR(100)
- 가입일시 (created_at) — DATETIME
Vote (투표)
- 투표 기록 아이디 (vote_id) — INT — Primary key — NOT NULL
- 사용한 크레딧 양 (vote_credit) — INT
- 투표 일시 (vote_date) — DATETIME
- 유저 아이디 (user_id) — INT — Foreign key → User.유저 아이디 — NOT NULL
- 아티스트 아이디 (artist_id) — INT — Foreign key → Artist.아티스트 아이디 — NOT NULL