항해99 프레임워크 사전스터디_Spring board ERD

테이블 (3)

게시글 (Board)

  • 게시글ID (postID) — Integer — 기본 키 — NOT NULL
  • 작성자 (Key) — Char — 외래 키 → 회원.이름 — NOT NULL
  • 제목 (title) — Char — NOT NULL
  • 내용 (Content) — Text — NOT NULL
  • 생성날짜 (createdAt) — TimeStemp — NOT NULL
  • 수정날짜 (updatedAt) — TimeStemp — NOT NULL
  • 삭제날짜 (deletedAt) — TimeStemp

댓글 (Comment)

  • 댓글ID (commentID) — Integer — 기본 키 — NOT NULL
  • 작성자 (username) — Char — 외래 키 → 회원.이름 — NOT NULL
  • 게시글 (postID) — Integer — 외래 키 → 게시글.게시글ID — NOT NULL
  • 내용 (content) — Text — NOT NULL
  • 생성날짜 (createdAt) — TimeStemp
  • 수정날짜 (updatedAt) — TimeStemp
  • 삭제날짜 (deletedAt) — TimeStemp

회원 (Member)

  • 회원ID (userID) — Integer — 기본 키 — NOT NULL
  • 이름 (username) — Char — 기본 키 — NOT NULL
  • 비밀번호 (password) — NOT NULL
  • 권한 (grade) — Integer — NOT NULL