프로젝트 db

테이블 (16)

Tag (Untitled14)

  • tagId (Key) — int — 기본 키 — NOT NULL
  • tagName (Field) — varchar(50)

actor (Untitled10)

  • actorId (Key) — INT — 기본 키 — NOT NULL
  • name (Field2) — VARCHAR(50)
  • info (Field4) — TEXT
  • tmdbcontentIdList (Key2) — varchar(255) — 외래 키 → content.Id — NOT NULL
  • actorImgUrl (Field) — varchar(255)

community (Untitled2)

  • communityId (Key) — INT — 기본 키 — NOT NULL
  • userid (Key2) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id
  • title (Field) — varchar(100)
  • content (Field2) — varchar(100)
  • createdAt (Field3) — TIMESTAMP
  • imgUrl (Field4) — varchar(255)
  • updatedAt (Field5) — TIMESTAMP

communityComment (Untitled5)

  • commentId (Key3) — int — 기본 키 — NOT NULL
  • communityId (Key) — INT — 외래 키 → community.communityId — NOT NULL
  • userId (Key2) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id
  • comment (Field) — varchar(255)
  • createdAt (Field2) — TIMESTAMP
  • updatedAt (Field3) — TIMESTAMP

communityLike (Untitled4)

  • communityId (Key) — INT — 외래 키 → community.communityId — NOT NULL
  • userid (Key2) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id

content (Untitled9)

  • Id (Key) — INT — 기본 키 — NOT NULL
  • title (Field) — VARCHAR(100)
  • genre (Field2) — VARCHAR(100)
  • content (Field3) — TEXT
  • imgUrl (Field4) — VARCHAR(255)
  • contentRating (Field5) — FLOAT
  • createdYear (Field6) — DATE
  • tmdbcontentId (Field7) — int
  • type (Field8) — varchar(20)
  • ratingCount (Field9) — int

contentLike (Untitled11)

  • contentId (Key) — INT — 외래 키 → content.Id — NOT NULL
  • contentLikeUserId (Key2) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id
  • createdAt (Field) — TIMESTAMP

contentReview (Untitled8)

  • contentReviewId (Key) — INT — 기본 키 — NOT NULL
  • title (Field3) — VARCHAR(100)
  • content (Field4) — VARCHAR(255)
  • userRating (Field5) — FLOAT
  • createdAt (Field6) — TIMESTAMP
  • updatedAt (Field7) — TIMESTAMP
  • contentId (Key2) — INT — 외래 키 → content.Id — NOT NULL
  • contentReviewUserId (Key3) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id

contentReviewComment (Untitled7)

  • commentId (Key) — INT — 기본 키 — NOT NULL
  • comment (Field3) — VARCHAR(255)
  • createdAt (Field4) — TIMESTAMP
  • updatedAt (Field5) — TIMESTAMP
  • contentReviewId (Key2) — INT — 외래 키 → contentReview.contentReviewId — NOT NULL
  • commentUserId (Key3) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id

contentReviewLike (Untitled6)

  • contentReviewId (Key) — INT — 외래 키 → contentReview.contentReviewId — NOT NULL
  • contentReviewLikeUserId (Key2) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id
  • createdAt (Field) — TIMESTAMP

contentWatchme (Untitled15)

  • createdAt (Field) — TIMESTAMP
  • userId (Key) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id
  • contentId (Key2) — INT — 외래 키 → content.Id — NOT NULL

party (Untitled3)

  • createdAt (Field5) — TIMESTAMP
  • captain (Key2) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id
  • member (Key3) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id
  • partyBoardId (Key4) — int — 외래 키 → partyBoard.partyBoardId — NOT NULL

partyBoard (Untitled17)

  • partyBoardId (Key) — int — 기본 키 — NOT NULL
  • service (Field) — varchar(50)
  • title (Field2) — varchar(100)
  • content (Field3) — varchar(100)
  • createdAt (Field4) — TIMESTAMP
  • userid (Key2) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id
  • serviceId (Field5) — varchar(50)
  • servicePassword (Field6) — varchar(255)
  • finishedAt (Field7) — date

paymentDetails (Untitled12)

  • userId (Key2) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id
  • amount (Field) — int
  • date (Field2) — date
  • partyBoardId (Key) — int — 외래 키 → partyBoard.partyBoardId — NOT NULL

user (Untitled)

  • id (Key) — int — 기본 키 — NOT NULL — 유저 테이블 id
  • nickname (Field) — varchar(50) — 유저 이름
  • userEmail (Field2) — varchar(100) — 유저 이메일 Id
  • password (Field3) — varchar(255) — 유저 비밀번호
  • gender (Field4) — tinyint — 0: 여자 , 1: 남자
  • age (Field5) — int — 유저 나이
  • createdAt (Field6) — timestamp — 생성 날짜
  • profileimgUrl (Field7) — varchar(255)
  • name (Field8) — varchar(50)
  • questionNum (Field9) — int
  • questionAnswer (Field10) — varchar(100)

userGenre (Untitled13)

  • userId (Key) — int — 외래 키 → user.id — NOT NULL — 유저 테이블 id
  • tagId (Key2) — int — 외래 키 → Tag.tagId — NOT NULL