15조_심화과제

테이블 (4)

Comment (Untitled2)

  • commentId (Key2) — 기본 키 — NOT NULL
  • postId (Key) — 외래 키 → Post.postId — NOT NULL
  • userId (Key22) — 외래 키 → Post.userId — NOT NULL
  • username (Field)
  • content (Field2)
  • createdAt (Field3)
  • modifiedAt (Field4)
  • likeCount (Field5)

Post (Untitled)

  • postId (Key) — 기본 키 — NOT NULL
  • userId (Key2) — 외래 키 → User.userId — NOT NULL
  • username (Field)
  • title (Field2)
  • content (Field3)
  • imageUrl (Field4)
  • createdAt (Field5)
  • modifiedAt (Field6)
  • likeCount (Field7)

Sub_comment (Untitled3)

  • subCommentId (Key) — 기본 키 — NOT NULL
  • commentId (Key2) — 외래 키 → Comment.commentId — NOT NULL
  • postId (Key3) — 외래 키 → Comment.postId — NOT NULL
  • userId (Key22) — 외래 키 → Comment.userId — NOT NULL
  • username (Field)
  • content (Field2)
  • createdAt (Field3)
  • modifiedAt (Field4)
  • likeCount (Field5)

User (Untitled4)

  • userId (Key) — 기본 키 — NOT NULL
  • username (Field)
  • password (Field2)