하잉

테이블 (3)

Comment (CopyOfCopyOfUntitled)

  • commentId — Long — 기본 키 — NOT NULL
  • postId — Long — 외래 키 → Post.postId — NOT NULL
  • id (Key) — Long — 외래 키 → Post.id — NOT NULL
  • comment — String
  • createdAt — LocalDateTime

Post (CopyOfUntitled)

  • postId — Long — 기본 키 — NOT NULL
  • id (Key) — Long — 외래 키 → User.id — NOT NULL
  • contents — String
  • profileUrl — String
  • likesCnt — int
  • commentsCnt — int

User (Untitled)

  • id (Key) — Long — 기본 키 — NOT NULL
  • username — String
  • nickname — String
  • password — String
  • passwordCheck — String
  • profileUrl — String