pivit

Tables (12)

categories (콘텐츠 필터링에 사용될 카테고리)

  • 카테고리 ID (id) — NOT NULL — Primary key — NOT NULL
  • 카테고리 명 (title) — NOT NULL
  • 카테고리 상태 (state) — 'created'
  • 카테고리 생성일시 (created_at) — now
  • 콘텐츠 장르 (content_genre) — NOT NULL
  • 콘텐츠 타입 (content_type) — NULL

channels (게시판으로 사용될 채널)

  • 채널 ID (id) — NOT NULL — Primary key — NOT NULL
  • 채널 명 (name) — NOT NULL
  • url 슬러그명 (slug) — NOT NULL
  • 상태 (state) — 'created'
  • 콘텐츠 장르 (content_genre) — NOT NULL
  • 콘텐츠 타입 (content_type) — NULL
  • 카테고리 생성일시 (created_at) — now

comment_votes (댓글에 투표)

  • id — NOT NULL — Primary key — NOT NULL
  • vote type (vote_type) — 1, -1
  • created at (created_at) — now

comments (포스트에 유저들이 작성한 댓글)

  • id — NOT NULL — Primary key — NOT NULL
  • 포스트 ID (post_id) — NOT NULL — Foreign key → posts.포스트 ID — NOT NULL
  • 유저 ID (user_id) — NOT NULL — Foreign key → users.유저 ID — NOT NULL
  • 댓글 내용 (comment) — NULL
  • path — NOT NULL
  • depth — NOT NULL
  • Field

content_genres (콘텐트 장르)

  • id — NOT NULL — Primary key — NOT NULL
  • 한글명 (name_ko) — NOT NULL
  • 영문 (name_en) — NOT NULL

contents (콘텐츠)

  • 콘텐츠 ID (id) — NOT NULL — Primary key — NOT NULL
  • 콘텐츠 제목 (title) — NOT NULL
  • 장르 (genres) — NOT NULL
  • 콘텐츠 상세정보(테이블 예정) (info) — null
  • 콘텐츠 이미지 (thumbnail) — NOT NULL
  • 콘텐츠 영문 제목 (english_title) — NOT NULL
  • 콘텐츠 설명 (description) — null
  • 콘텐츠 타입 (type) — 'drama'
  • 채널 상태 (state) — 'created'
  • 채널 생성일시 (created_at) — now

contents_list_items (어드민에 의해 필터링된 콘테츠 묶음 항목)

  • item id (id) — NOT NULL — Primary key — NOT NULL
  • contents_list_id — NOT NULL — Foreign key → contents_lists.list id — NOT NULL
  • content_id — NOT NULL — Foreign key → contents.콘텐츠 ID — NOT NULL
  • order — NOT NULL

contents_lists (어드민에 의해 필터링된 콘텐츠 묶음)

  • list id (id) — NOT NULL — Primary key — NOT NULL
  • name — NOT NULL
  • order — NOT NULL
  • created at (created_at) — now

creators (제작자에 들어갈 사람들)

  • Key (id) — Primary key — NOT NULL
  • Field (role)
  • Field (name)

post_votes (포스트에 유저들이 한 투표)

  • id — NOT NULL — Primary key — NOT NULL
  • 포스트 ID (post_id) — NOT NULL — Foreign key → posts.포스트 ID — NOT NULL
  • 유저 ID (user_id) — NOT NULL — Foreign key → users.유저 ID — NOT NULL
  • vote type (vote_type) — 1, -1
  • created at (created_at) — now

posts (유저가 작성한 포스트)

  • 포스트 ID (id) — NOT NULL — Primary key — NOT NULL
  • 콘텐츠 ID (content_id) — NULL — Foreign key → contents.콘텐츠 ID — NOT NULL
  • 채널 ID (channel_id) — NULL — Foreign key → channels.채널 ID — NOT NULL
  • 유저 ID (user_id) — NOT NULL — Foreign key → users.유저 ID — NOT NULL
  • 포스트 제목 (title) — NOT NULL
  • 포스트 내용 (post) — NULL
  • 포스트 타입 (type) — 'channel'

users (유저)

  • 유저 ID (id) — NOT NULL — Primary key — NOT NULL
  • Field