Fandom-K

Tables (7)

artists

  • 아티스트_id (artist_id) — int — Primary key — NOT NULL — [artists] 테이블의 PK
  • 아티스트_name (artist_name) — varchar(50) — 아티스트 이름
  • 성별 (gender) — varchar(1) — 아티스트의 성별 반영 여자는 'F' 남자는 'M'
  • 아티스트_group (group) — varchar(50) — NOT NULL — 아티스트 소속 그룹명 그룹이 없는 아티스트의 경우 '솔로'

artists_month

  • 투표_id (id) — int — Primary key — NOT NULL — [artists_month] 테이블의 PK
  • 사용자_id (user_id) — int — Foreign key → users.사용자_id — NOT NULL — [users] 테이블의 PK
  • 아티스트_id (artist_id) — int — Foreign key → artists.아티스트_id — NOT NULL — [users] 테이블의 PK
  • 사용크레딧 (vote_credit) — int — 투표에 사용한 크레딧 고정값 1000
  • 투표일자 (vote_date) — date

credits

  • 크레딧_id (id) — int — Primary key — NOT NULL — [credit] 테이블의 PK
  • 사용자_id (user_id) — int — Foreign key → users.사용자_id — NOT NULL — [users] 테이블의 PK
  • 충전크레딧 (charge_credit) — int — 사용하가 충전한 크레딧 100, 500, 1000에서 선택 가능
  • 충전일자 (charge_date) — date

followings

  • 팔로우_id (id) — int — Primary key — NOT NULL — [followings] 테이블의 PK
  • 사용자_id (user_id) — int — Foreign key → users.사용자_id — NOT NULL — [users] 테이블의 PK
  • 아티스트_id (artist_id) — int — Foreign key → artists.아티스트_id — NOT NULL — [artists] 테이블의 PK
  • 팔로우상태 (status) — varcahr(1) — 'Y' 팔로우 중 'N' 팔로우 취소
  • 일자 (date) — date — 팔로우 관련 처리 일자

tribute_lists

  • 조공리스트_id (tribute_id) — int — Primary key — NOT NULL — [tribute_lists] 테이블의 PK
  • 조공타이틀 (tribute_title) — varchar(100)
  • 아티스트_id (artist_id) — int — Foreign key → artists.아티스트_id — NOT NULL — [artists] 테이블의 PK
  • 목표크레딧 (target_credit) — int — 목표 크레딧
  • 현재크레딧 (current_credit) — int — 현재 조공받은 크레딧 수 기본값 0
  • 시작일자 (start_date) — date
  • 종료일자 (end_date) — date
  • 후원상태 (status) — varchar(9) — 'ing' 'completed' 'canceled' 세 개의 값에서 선택

tributes

  • 조공_id (id) — int — Primary key — NOT NULL — [tributes] 테이블의 PK
  • 사용자_id (user_id) — int — Foreign key → users.사용자_id — NOT NULL — [users] 테이블의 PK
  • 조공리스트_id (tribute_id) — int — Foreign key → tribute_lists.조공리스트_id — NOT NULL — [tribute_lists] 테이블의 PK
  • 조공크레딧 (tribute_credit) — int — 사용자가 조공한 크레딧 수 1부터 시작
  • 조공일자 (tribute_date) — date

users

  • 사용자_id (user_id) — int — Primary key — NOT NULL — [users] 테이블의 PK
  • 보유크레딧 (retained_credit) — int — 사용자가 현재 보유한 크레딧 기본값 0