260415_db

Tables (3)

Contents (Untitled2)

  • 콘텐츠 아이디 (content_id) — INT — Primary key — NOT NULL
  • 이름 (title) — VARCHAT(200)
  • 장르 (genre) — VARCHAR(50)
  • 개봉연도 (release_year) — INT
  • 평점 (rating) — DECIMAL(3,1) — NOT NULL

Users (Untitled)

  • 유저아이디 (user_id) — VARCHAR(20) — Primary key — NOT NULL
  • 이름 (user_name) — VARCHAR(50)
  • 이메일 (email) — VARCHAR(100)
  • 가입일 (join_date) — DATE
  • 멤버십 (membership_type) — VARCHAR(20)

Viewing_History (Untitled3)

  • 시청기록 아이디 (view_id) — INT — Primary key — NOT NULL
  • 유저아이디 (user_id) — VARCHAR(20) — Foreign key → Users.유저아이디 — NOT NULL
  • 콘텐츠 아이디 (content_id) — INT — Foreign key → Contents.콘텐츠 아이디 — NOT NULL
  • 시청날짜 (view_date) — DATE
  • 시청시간 (view_time) — INT