Fandom_k_mission17
Tables (13)
advertisement (광고)
- 광고아이디 (ad_id) — int — Primary key — NOT NULL
- 아티스트아이디 (artist_id) — int — Foreign key → artist.아티스트아이디 — NOT NULL
- 제목 (title) — text
- 분류 (category) — enum — NOT NULL — 광고, 생일카페, 커피차 등
- 크레딧달성기준 (total_credit_target) — int — NOT NULL
- 후원마감일 (deadline_date) — datetime — NOT NULL
- 총 크레딧 달성량 (total_credit) — int — NOT NULL
- 후원상태 (status) — enum — NOT NULL
artist (아티스트)
- 아티스트아이디 (artist_id) — int — Primary key — NOT NULL
- 활동명 (name) — varchar(10) — NOT NULL
- 아티스트소속그룹 (group) — varchar(20)
- 소속회사 (company) — varchar(20) — NOT NULL
- 본명 (real_name) — varchar(20) — NOT NULL
- 성별 (gender) — enum — NOT NULL — "m","f"
- 생년월일 (birthday) — datetime — NOT NULL
artist_news (아티스트 소식)
- 소식아이디 (artist_news_id) — int — Primary key — NOT NULL
- 아티스트아이디 (artist_id) — int — Foreign key → artist.아티스트아이디 — NOT NULL
- 소식제목 (title) — varchar(300) — NOT NULL
- 소식내용 (content) — text — NOT NULL
- 소식업로드일자 (create_date) — datetime — NOT NULL
- 소식업데이트일자 (update_date) — datetime — NOT NULL
charts (차트)
- 차트아이디 (chart_id) — int — Primary key — NOT NULL
- 차트종류 (category) — enum — NOT NULL
credit_charge (크레딧충전)
- 크레딧충전아이디 (credit_cg_id) — int — Primary key — NOT NULL
- 회원아이디 (user_id) — int — Foreign key → user.회원아이디 — NOT NULL
- 크레딧현황아이디 (credit_now_id) — int — Foreign key → credit_now.크레딧현황아이디 — NOT NULL
- 크레딧충전량 (cg_amount) — int — NOT NULL
- 결제금액 (payment) — int — NOT NULL
- 결제수단 (pay_method) — enum — NOT NULL
- 결제일시 (date) — datetime — NOT NULL
credit_now (크레딧보유현황)
- 크레딧현황아이디 (credit_now_id) — int — Primary key — NOT NULL
- 회원아이디 (user_id) — int — Foreign key → user.회원아이디 — NOT NULL
- 크레딧보유량 (now_amount) — int — NOT NULL
- 크레딧생성일자 (created_date) — datetime — NOT NULL
- 크레딧갱신일자 (update_date) — datetime — NOT NULL
credit_use (크레딧사용)
- 크레딧사용아이디 (credit_use_id) — int — Primary key — NOT NULL
- 회원아이디 (user_id) — int — Foreign key → user.회원아이디 — NOT NULL
- 크레딧현황아이디 (credit_now_id) — int — Foreign key → credit_now.크레딧현황아이디 — NOT NULL
- 크레딧사용량 (used_amount) — int — NOT NULL
- 사용처 (purpose) — enum — NOT NULL
- 사용일시 (use_date) — datetime — NOT NULL
favorite_artist (관심아티스트)
- 회원아이디 (user_id) — int — Foreign key → user.회원아이디 — NOT NULL
- 아티스트아이디 (artist_id) — int — Foreign key → artist.아티스트아이디 — NOT NULL
- 소식아이디 (artist_news_id) — int — Foreign key → artist_news.소식아이디 — NOT NULL
- 생성일자 (created_date) — datetime — NOT NULL
- 종류 (category) — enum — NOT NULL
sales (매출)
- 매출아이디 (sales_id) — int — Primary key — NOT NULL
- 크레딧충전아이디 (credit_cg_id) — int — Foreign key → credit_charge.크레딧충전아이디 — NOT NULL
- 금액기준 (pay_range) — int — NOT NULL
- 크레딧수수료 (percent) — float — NOT NULL
- 매출 (sales) — int — NOT NULL
support (조공)
- 조공아이디 (support_id) — int — Primary key — NOT NULL
- 광고아이디 (ad_id) — int — Foreign key → advertisement.광고아이디 — NOT NULL
- 회원아이디 (user_id) — int — Foreign key → user.회원아이디 — NOT NULL
- 크레딧사용아이디 (credit_use_id) — int — Foreign key → credit_use.크레딧사용아이디 — NOT NULL
user (회원)
- 회원아이디 (user_id) — int — Primary key — NOT NULL
- 회원명 (name) — varchar(10) — NOT NULL
- 회원성별 (gender) — enum — NOT NULL — "m","f"
- 생년월일 (birthday) — datetime — NOT NULL
- 회원주소 (address) — text — NOT NULL
- 회원이메일 (email) — text — NOT NULL
- 회원가입일자 (sign_up_day) — datetime — NOT NULL
vote (투표)
- 투표아이디 (vote_id) — int — Primary key — NOT NULL
- 차트아이디 (chart_id) — int — Foreign key → charts.차트아이디 — NOT NULL
- 회원아이디 (user_id) — int — Foreign key → user.회원아이디 — NOT NULL
- 아티스트아이디 (artist_id) — int — Foreign key → artist.아티스트아이디 — NOT NULL
- 크레딧사용아이디 (credit_use_id) — int — Foreign key → credit_use.크레딧사용아이디 — NOT NULL
- 투표집계아이디 (vote_summary_id) — int — Foreign key → vote_summary.투표집계아이디 — NOT NULL
vote_summary (투표집계)
- 투표집계아이디 (vote_summary_id) — int — Primary key — NOT NULL
- 아티스트아이디 (artist_id) — int — Foreign key → artist.아티스트아이디 — NOT NULL
- 현재득표수 (vote_counts) — int — NOT NULL
- 현재순위 (vote_rank) — int — NOT NULL
- 년 (year) — int — NOT NULL
- 월 (month) — int — NOT NULL