Spring Blog Project

Tables (3)

Board (게시글)

  • 글번호 (id) — int — Primary key — NOT NULL
  • 작성자ID (userId) — int — Foreign key → User.아이디 — NOT NULL
  • 제목 (title) — String
  • 내용 (content) — String
  • 조회수 (count) — int
  • 생성일 (createDate) — Timestamp

Reply (댓글)

  • 댓글번호 (id) — int — Primary key — NOT NULL
  • 작성자ID (userId) — int — Foreign key → User.아이디 — NOT NULL
  • 글번호 (boardId) — int — Foreign key → Board.글번호 — NOT NULL
  • 내용 (content) — String
  • 생성일 (createDate) — Timestamp

User (유저)

  • 아이디 (id) — int — Primary key — NOT NULL
  • 이름 (username) — String
  • 비밀번호 (password) — String
  • 이메일 (email) — String
  • 권한 (role) — String
  • 카카오인증 (oauth) — String
  • 생성일 (createDate) — Timestamp