챌린지픽

테이블 (6)

Contents (내기 콘텐츠)

  • id (contents_id) — 기본 키 — NOT NULL
  • user_id (닉네임)
  • title (콘텐츠 제목)
  • description (콘텐츠 상세 설명)
  • main_image (메인 이미지)
  • create_date (생성 날짜)
  • modified_date (수정 날짜)
  • deadline_date (마감 날짜)
  • success_point (성공 베팅 포인트)
  • false_point (실패 베팅 포인트)
  • comment (댓글 수)
  • heart (좋아요 수)
  • creater_description (크리에이터 상세 설명)

Creater_user (크리에이터 유저)

  • id (id_creater) — 기본 키 — NOT NULL
  • id (id_veting_point) — 외래 키 → veting_point.id — NOT NULL
  • create_list (생성 내역)
  • funding_list (펀딩 내역)
  • total_price (전체 금액)

Funding (펀딩)

  • id (funding_id) — 기본 키 — NOT NULL
  • id (contents_id) — 외래 키 → Contents.id — NOT NULL
  • target_funding_price (목표 펀딩 금액)
  • total_funding_price (현재 펀딩 금액)
  • final_funding_price (최종 펀딩 금액)
  • funding_rate (펀딩률)
  • funding_result (펀딩 결과)
  • create_date (생성 날짜)
  • funding_date (펀딩 기간)
  • remaining_date (남은 기간)
  • deadline_date (마감 날짜)
  • creater_description (크리에이터 상세 설명)

Payment (결제 기록)

  • id (payment_id) — 기본 키 — NOT NULL
  • id (user_id) — 외래 키 → User.id — NOT NULL
  • id (contents_id) — 외래 키 → User.id — NOT NULL
  • id (id_creater) — 외래 키 → User.id — NOT NULL
  • id (id_veting_point) — 외래 키 → User.id — NOT NULL
  • id (id_veting_point2) — 외래 키 → User.id — NOT NULL
  • id (id_creater2) — 외래 키 → Creater_user.id — NOT NULL
  • id (id_veting_point3) — 외래 키 → Creater_user.id — NOT NULL
  • total_price (전체 금액)
  • amount_price (결제 금액)
  • payment_list (결제 내역)
  • refund_price (환불 금액)
  • refund_list (환불 내역)

User (유저)

  • id (user_id) — 기본 키 — NOT NULL
  • id (contents_id) — 외래 키 → Contents.id — NOT NULL
  • id (id_creater) — 외래 키 → Creater_user.id — NOT NULL
  • id (id_veting_point) — 외래 키 → veting_point.id — NOT NULL
  • id (id_veting_point2) — 외래 키 → Creater_user.id — NOT NULL
  • login_id (로그인 아이디) — text
  • password (패스워드) — number
  • user_id (닉네임) — text
  • name (이름) — text
  • gender (성별) — text
  • birth (생일) — date
  • email (이메일) — text
  • phone_number (휴대폰번호) — number
  • create_date (생성날짜) — date
  • total_point (전체 포인트) — number
  • total_price (전체 금액) — number
  • heart_list (좋아요한 콘텐츠)
  • contents_list (참여 내역)

veting_point (베팅 포인트)

  • id (id_veting_point) — 기본 키 — NOT NULL
  • total_point (전체 포인트)
  • gain_point (획득 포인트)
  • loose_point (잃은 포인트)
  • point_list (포인트 사용 내역)