Fandom-K

Tables (9)

Artist (Atists(아티스트 테이블))

  • 아티스트_아이디(PK) (artist_id) — VARCHAR(30) — Primary key — NOT NULL
  • 아티스트_이름 (artist_name) — VARCHAR(50) — NOT NULL
  • 아티스트_소속사 (agency) — VARCHAR(50) — NOT NULL
  • 아티스트_이미지 (profile_image) — TEXT — NOT NULL

Credits (Cedits(크레딧 테이블))

  • 크레딧 아이디 (credit_id) — INT — Primary key — NOT NULL — AUTO_INCREMENT
  • 거래금액 (credit_amount) — DECIMAL(10,2) — NOT NULL
  • 거래구분 (transaction_type) — ENUM('change', 'spend') — 충전(charge) 또는 사용(spend)
  • 거래일자 (transaction_date) — DATETIME — NOT NULL
  • 회원 ID(PK) (member_id) — BINARY(16) — Foreign key → Members.회원 ID(PK) — NOT NULL

Donatio_Project (Donatio_Project(조공 프로젝트 테이블))

  • 프로젝트 아이디(PK) (project_id) — INT — Primary key — NOT NULL — AUTO_INCREMENT
  • 목표 크레딧 (goal_credit) — DECIMAL(10,2) — NOT NULL
  • 현재 모인 크레딧 (current_credit) — DECIMAL(10,2) — NOT NULL
  • 프로젝트 시작일 (start_date) — DATETIME — NOT NULL
  • 프로젝트 종료일 (end_date) — DATETIME — NOT NULL
  • 프로젝트 진행 상태 (project_status) — ENUM('ongoing', 'completed', 'canceled') — NOT NULL
  • 아티스트_아이디(PK) (artist_id) — VARCHAR(30) — Foreign key → Artist.아티스트_아이디(PK) — NOT NULL

Donation (Donation(조공 테이블))

  • 조공 아이디(PK) (domation_id) — INT — Primary key — NOT NULL — AUTO_INCREMENT
  • 조공 크레딧 (donation_amount) — DECIMAL(10,2) — NOT NULL
  • 조공 일자 (donation_date) — DATETIME — NOT NULL
  • 프로젝트 아이디(PK) (project_id) — INT — Foreign key → Donatio_Project.프로젝트 아이디(PK) — NOT NULL — AUTO_INCREMENT
  • 회원 ID(PK) (member_id) — BINARY(16) — Foreign key → Members.회원 ID(PK) — NOT NULL

Follows (Follows(팔로우 테이블))

  • 회원 ID(PK) (member_id) — BINARY(16) — Foreign key → Members.회원 ID(PK) — NOT NULL
  • 아티스트_아이디(PK) (artist_id) — VARCHAR(30) — Foreign key → Artist.아티스트_아이디(PK) — NOT NULL

Members (Members(회원 테이블))

  • 회원 ID(PK) (member_id) — BINARY(16) — Primary key — NOT NULL
  • 회원 이름 (member_name) — VARCHAR(50) — NOT NULL
  • 성별 (member_gender) — ENUM('M', 'F') — NOT NULL
  • 나이 (member_age) — INT — NOT NULL
  • 이메일 (email) — VARCHAR(100) — NOT NULL
  • 핸드폰번호 (phone_number) — CHAR(20) — NOT NULL
  • 비밀번호 (password_hash) — TEXT — NOT NULL
  • 가입 일자 (signup_date) — TIMESTAMP — NOT NULL
  • 수정일자 (updated_date) — TIMESTAMP — NOT NULL

Notification (Notification(알림 테이블))

  • 알림 아이디 (notification_id) — INT — Primary key — NOT NULL — AUTO_INCREMENT
  • 알림 내용 (message) — TEXT — NOT NULL
  • 읽음 여부 (is_read) — TINYINT(1) — NOT NULL
  • 알림 일자 (notification_date) — DATETIME — NOT NULL
  • 회원 ID(PK) (member_id) — BINARY(16) — Foreign key → Members.회원 ID(PK) — NOT NULL

Payment (Payment(결제 테이블))

  • 결제 아이디(PK) (payment_id) — INT — Primary key — NOT NULL — AUTO_INCREMENT
  • 결제 금액 (payment_amount) — DECIMAL(10,2) — NOT NULL
  • 결제 방법 (Payment_method) — ENUM('credit_card', 'paypal', 'kakao_pay') — NOT NULL
  • 외부 결제 서비스 트랙잭션 ID (transaction_id) — VARCHAR(255) — NOT NULL
  • 결제 일자 (payment_date) — DATETIME — NOT NULL
  • 결제 상태 (payment_status) — ENUM('pending', 'completed', 'failed') — NOT NULL
  • 회원 ID(PK) (member_id) — BINARY(16) — Foreign key → Members.회원 ID(PK) — NOT NULL

Votes (Votes(투표 테이블))

  • 투표 아이디 (vote_id) — INT — Primary key — NOT NULL — AUTO_INCREMENT
  • 투표에 사용된 크레딧 (credit_spent) — DECIMAL(10,2) — NOT NULL
  • 투표 일자 (vote_date) — DATETIME — NOT NULL
  • 회원 ID(PK) (member_id) — BINARY(16) — Foreign key → Members.회원 ID(PK) — NOT NULL
  • 아티스트_아이디(PK) (artist_id) — VARCHAR(30) — Foreign key → Artist.아티스트_아이디(PK) — NOT NULL