JShop

Tables (8)

board (Board)

  • 게시판 아이디 (board_id) — PK — Primary key — NOT NULL
  • 게시판 이름 (name)

board_category (Untitled)

  • 하부 카테고리 아이디 (category_id) — PK — Primary key
  • 게시판 아이디 (board_id) — FK — Foreign key → board.게시판 아이디 — NOT NULL
  • 하부 카테고리 이름 (name)

comment (Untitled5)

  • 댓글 아이디 (comment_id) — PK — Primary key — NOT NULL
  • 대댓글아이디 (child_id) — FK — Foreign key → comment.댓글 아이디 — NOT NULL
  • 게시글 아이디 (post_id) — FK — Foreign key → post.게시글 아이디 — NOT NULL
  • 사용자 아이디 (user_id) — FK — Foreign key → user.사용자 아이디 — NOT NULL
  • 본문 (content)
  • 작성날짜 (created_at)
  • 업데이트날짜 (update_at)
  • 타겟 테이블 (target_table)

image (Untitled2)

  • 이미지 아이디 (image_id) — PK — Primary key — NOT NULL
  • 사용자 아이디 (user_id) — PK — Foreign key → user.사용자 아이디 — NOT NULL
  • 게시글 아이디 (post_id) — FK — Foreign key → post.게시글 아이디 — NOT NULL
  • 이미지 데이터 (image)

like (Untitled6)

  • 타겟 아이디 (id) — PK — Primary key — NOT NULL
  • 타겟 테이블 (target_table)
  • 게시글 아이디 (post_id) — PK — Foreign key → post.게시글 아이디 — NOT NULL
  • 댓글 아이디 (comment_id) — PK — Foreign key → comment.댓글 아이디 — NOT NULL
  • 사용자 아이디 (user_id) — PK — Foreign key → user.사용자 아이디 — NOT NULL

post (Untitled4)

  • 게시글 아이디 (post_id) — PK — Primary key — NOT NULL
  • 게시판 아이디 (board_id) — PK — Foreign key → board.게시판 아이디 — NOT NULL
  • 사용자 아이디 (user_id) — FK — Foreign key → user.사용자 아이디 — NOT NULL
  • 하부 카테고리 (category_id) — FK — Foreign key → board_category.하부 카테고리 아이디
  • 작성날짜 (created_at)
  • 업데이트날짜 (update_at)
  • 조회수 (view)
  • 제목 (title)
  • 본문 (content)

user (Untitled3)

  • 사용자 아이디 (user_id) — PK — Primary key — NOT NULL
  • 이메일 (email)
  • 이름 (name)
  • 생성날짜 (created_at)

user_info

  • 사용자 아이디 (user_id) — PK — Foreign key → user.사용자 아이디 — NOT NULL
  • 생성일자 (creaeted_at)
  • 비밀번호 (password)
  • 성별 (gender)
  • 나이 (age)
  • 전화번호 (call)