subscription_service

테이블 (7)

기록 (user_subscription_history)

  • 기록ID (id) — int — 기본 키 — NOT NULL
  • 구독정보ID (user_subscription_id) — int — 외래 키 → 사용자 구독 정보.구독정보ID — NOT NULL
  • 시작일 (started_date) — date
  • 다음결제일 (next_date) — date
  • 결제 금액 (price) — number
  • 구독중지일 (stop_date) — date

리뷰 (reviews)

  • 리뷰 ID (id) — int — 기본 키 — NOT NULL
  • 사용자ID (users_id) — int — 외래 키 → 사용자.사용자ID — NOT NULL
  • 플랫폼ID (platform_id) — int — 외래 키 → 플랫폼.플랫폼ID — NOT NULL
  • 별점 (rate) — int
  • 후기 (comment) — text
  • 생성일시 (created_at) — datetime
  • 삭제일시 (deleted_at) — datetime

사용자 (users)

  • 사용자ID (id) — int — 기본 키 — NOT NULL
  • 닉네임/이름 (nickname) — string
  • 이메일 (email) — string
  • 비밀번호 (password) — string
  • 생성일시 (created_at) — datetime
  • 수정일시 (updated_at) — datetime

사용자 구독 정보 (user_subscriptions)

  • 구독정보ID (id) — int — 기본 키 — NOT NULL
  • 사용자ID (user_id) — int — 외래 키 → 사용자.사용자ID — NOT NULL
  • 플랫폼ID (platform_id) — int — 외래 키 → 플랫폼.플랫폼ID — NOT NULL
  • 구독 시작일 (started_date) — date
  • 결제 수단 (paymentmethod) — string
  • 결제주기 (period) — int
  • 계정ID (account_id) — string
  • 계정PW (account_pw) — string
  • 생성일시 (created_at) — datetime
  • 수정일시 (updated_at) — datetime
  • 중지일시 (deleted_at) — datetime

유저알림값 (notifications)

  • 알림ID (id) — int — 기본 키 — NOT NULL
  • 사용자ID (user_id) — int — 외래 키 → 사용자.사용자ID — NOT NULL
  • 구독정보ID (user_subscription_id) — int — 외래 키 → 사용자 구독 정보.구독정보ID — NOT NULL
  • 알림내용 (title) — string
  • 확인여부 (is_read) — boolean
  • 발생시간 (created_at) — datetime
  • 읽은시간 (readed_at) — datetime

카테고리 (categories)

  • 카테고리ID (id) — int — 기본 키 — NOT NULL
  • 카테고리 (category) — varchar

플랫폼 (platforms)

  • 플랫폼ID (id) — int — 기본 키 — NOT NULL
  • 카테고리ID (category_id) — int — 외래 키 → 카테고리.카테고리ID — NOT NULL
  • 서비스명 (title) — string
  • 이미지 (image) — string
  • 구독Link (purchase_link) — string
  • 결제금액 (price) — int
  • 결제주기 (period) — int