spring-boot-board-example

Tables (3)

Article (게시글)

  • article_id (구분자) — INT — Primary key — NOT NULL — auto_increment
  • user_id (작성자정보) — INT — Foreign key → User.user_id — NOT NULL — auto_increment
  • title (제목) — VARCHAR(255) — NOT NULL
  • content (내용) — VARCHAR(255) — NOT NULL

Comment (댓글)

  • comment_id (구분자) — INT — Primary key — NOT NULL — auto_increment
  • user_id (작성자정보) — INT — Foreign key → User.user_id — NOT NULL — auto_increment
  • article_id (게시글정보) — INT — Foreign key → Article.article_id — NOT NULL — auto_increment
  • content (내용) — VARCHAR(255) — NOT NULL

User (유저)

  • user_id (구분자) — INT — Primary key — NOT NULL — auto_increment
  • id (아이디) — VARCHAR(255) — NOT NULL
  • password (비밀번호) — VARCHAR(255) — NOT NULL
  • name (이름) — VARCHAR(255) — NOT NULL
  • profile_picture (프로필사진) — VARCHAR(255)
  • profile_introduce (자기소개) — TEXT