클론코딩 ERD

테이블 (4)

Comment (Untitled3)

  • commentId (Key3) — Long — 기본 키 — NOT NULL
  • postId (Key4) — Long — 외래 키 → Post.postId — NOT NULL
  • userId (Key32) — Long — 외래 키 → Post.userId — NOT NULL
  • comment (Field) — String
  • reviewPoint (Field2) — int

Love (Untitled4)

  • loveId (Key3) — Long — 기본 키 — NOT NULL
  • userId (Key2) — Long — 외래 키 → User.id — NOT NULL
  • postId (Field) — Long

Post (Untitled2)

  • postId (Key) — Long — 기본 키 — NOT NULL
  • userId (Key3) — Long — 외래 키 → User.id — NOT NULL
  • title (Field) — String
  • imgUrl (Field2) — String
  • content (Field3) — String
  • avgReviewPoint (Field4) — double
  • totalComment (Field5) — int
  • category (Field6) — int
  • loveCount (Field7) — int
  • price (Field8) — int

User (Untitled)

  • id (Key) — Long — 기본 키 — NOT NULL
  • username (Field) — String
  • password (Field3) — String
  • userImgUrl (Field5) — String
  • nickname (Field2) — String