final

Tables (11)

Comment (Untitled3)

  • id (Key) — Primary key — NOT NULL — 댓글아이디
  • movie (Field) — 영화
  • user (Field2) — 유저
  • content (Field3) — 댓글내용
  • created (Field4) — 작성시간
  • updated (Field5) — 수정시간
  • like_users (Field6) — 좋아요누른 유저

accounts (Untitled4)

  • id (Key) — Primary key — NOT NULL — 계정아이디
  • password (Field) — 비번
  • last_login (Field2)
  • is_superuser (Field3)
  • username (Field4) — 유저 아이디
  • first_name (Field5)
  • last_name (Field6)
  • email (Field7)
  • is_staff (Field8)
  • is_active (Field9)
  • date_joined (Field10)

article (Untitled5)

  • pk (Key) — Primary key — NOT NULL — 게시글
  • id (Key2) — Foreign key → accounts.id — NOT NULL — 계정아이디
  • title (Field2) — 제목
  • content (Field3) — 내용
  • created (Field4) — 작성시간
  • updated (Field5) — 수정시간

cocomment (Untitled7)

  • pk (Key) — Primary key — NOT NULL — 대댓글 아이디
  • user (Key22) — Foreign key → comment.user — NOT NULL — 계정아이디
  • article (Key2) — Foreign key → article.pk — NOT NULL — 게시글
  • user (Field) — 대댓글 작성자
  • comment (Field2) — 댓글
  • content (Field3) — 내용
  • created (Field4) — 작성시간
  • updated (Field5) — 수정시간

comment (Untitled6)

  • pk (Key) — Primary key — NOT NULL — 댓글 아이디
  • user (Key2) — Foreign key → accounts.id — NOT NULL — 계정아이디
  • article (Key3) — Foreign key → article.pk — NOT NULL — 게시글
  • content (Field3) — 내용
  • created (Field4) — 작성시간
  • updated (Field5) — 수정시간

comments_like_users (Untitled11)

  • id (Key) — Foreign key → accounts.id — NOT NULL — 계정아이디
  • id (Key2) — Foreign key → Comment.id — NOT NULL — 댓글아이디

genre (Untitled2)

  • id (Key) — Primary key — NOT NULL — 장르아이디
  • name (Field) — 장르명

movie (Untitled)

  • id (Field) — integer — Primary key — 영화아이디
  • voted_users (Field2) — 유저 투표
  • liked_users (Key) — NOT NULL — 좋아하는 유저
  • genre_ids (Field3) — 장르 아이디
  • adult (Field4) — 성인여부
  • overview (Field5) — 줄거리
  • popularity (Field6) — 인기도
  • original_langugae (Field7) — 원어
  • poster_path (Field8) — 포스터경로
  • title (Field9) — 제목
  • release_date (Field10) — 개봉일
  • vote_average (Field11) — 평점
  • vote_count (Field12) — 투표수

movie_genre_ids (Untitled8)

  • id (Field2) — integer — Foreign key → movie.id — 영화아이디
  • id (Key) — Foreign key → genre.id — NOT NULL — 장르아이디

movie_like_users (Untitled9)

  • id (Field) — integer — Foreign key → movie.id — 영화아이디
  • id (Key) — Foreign key → accounts.id — NOT NULL — 계정아이디

movie_voted_users (Untitled10)

  • id (Field) — integer — Foreign key → movie.id — 영화아이디
  • id (Key) — Foreign key → accounts.id — NOT NULL — 계정아이디