final PJT

Tables (8)

Comment (community의 Comment클래스)

  • comment_id — Primary key — NOT NULL
  • review_id — Foreign key → Review.id — NOT NULL
  • 유저 (user_id) — IntegerField
  • 코멘트 (content) — CharField(max_length=200)
  • 리뷰 (review) — ForeignKey
  • 코멘트_생성 (created_at) — DateTimeField(auto_not_add=True)
  • 코멘트_수정 (updated_at) — DateTimeField(auto_now=True)

Genre (movies의 Genre 클래스)

  • id — Primary key — NOT NULL
  • 장르 (name) — CharField(max_length=50)

Movie (movies의 Movie클래스)

  • id — Primary key — NOT NULL
  • 타이틀 (title) — CharField(max_length=100)
  • 개봉일 (release_date) — DateField()
  • 인기도 (popularity) — FloatField()
  • 투표수 (vote_count) — IntegerField()
  • 투표평균점수 (vote_average) — FloatField()
  • 요약 (overview) — TextField()
  • 포스터 (poster_path) — CharField(max_length=200)

Rating (movies의 Rating클래스)

  • rating_id — Primary key — NOT NULL
  • movie_id — Foreign key → Movie.id — NOT NULL
  • 유저 (user_id) — ForeignKey
  • 생성일 (created_at) — DateTimeField(auto_now_add=True)
  • 코멘트 (comment) — CharField(max_length=200)
  • 점수 (score) — IntegerField

Review (community의 Review클래스)

  • id — Primary key — NOT NULL
  • 유저 (user_id) — IntegerField
  • 타이틀 (title) — CharField(max_length=100)
  • 영화_타이틀 (movie_title) — CharField(max_length=50)
  • 랭크 (rank) — IntegerField
  • 콘텐트 (content) — TextField
  • 생성일 (created_at) — DateTimeField(auto_not_add=True)
  • 수정일 (updated_at) — DateTimeField(auto_not=True)

accounts (accounts의 User클래스)

  • id — IntegerField — Primary key — NOT NULL
  • 팔로워 (followers)
  • 패스워드 (password)
  • 마지막 로그인 (last_login) — DateTimeField(auto_now=True)
  • 슈퍼유저 (is_superuser) — IntegerField
  • 유저이름 (username) — Charfield
  • 성 (last_name)
  • 이름 (first_name)
  • 이메일 (email)
  • 스태프 (is_staff) — IntergerField
  • 활성 (is_active) — IntegerField
  • 가입일 (date_joined) — DateTimeField(auto_not_add=True)

genres_id (Untitled)

  • genre_id — Foreign key → Genre.id — NOT NULL
  • movie_id — Foreign key → Movie.id — NOT NULL

like_users (좋아요)

  • user_id — IntegerField — Foreign key → accounts.id — NOT NULL
  • review_id — Foreign key → Review.id — NOT NULL