Termclass

Tables (3)

articles (게시글)

  • id (게시글 번호) — Primary key — NOT NULL
  • user_id (사용자 아이디) — Foreign key → users.id — NOT NULL
  • titlet (게시글 제목)
  • content (게시글 내용)
  • created_at (게시글 작성일)
  • updated_at (게시글 수정일)
  • hits (조회수)

comments (댓글)

  • id (댓글 번호) — Primary key — NOT NULL
  • user_id (댓글 작성자 아이디) — Foreign key → users.id — NOT NULL
  • article_id (게시글 번호) — Foreign key → articles.id — NOT NULL
  • content (댓글 내용)
  • created_at (댓글 작성일)
  • updated_at (게시글 수정일)

users (회원정보)

  • id (사용자 아이디) — Primary key — NOT NULL
  • name (사용자 이름)
  • password (사용자 비밀번호)
  • email (사용자 이메일)
  • created_at (가입일)
  • updated_at (수정일)