MBTI게시판

테이블 (6)

게시글 (post)

  • 게시글ID (post_id) — int — 기본 키 — NOT NULL — Auto_Increment
  • 회원id (user_id) — int — 외래 키 → 회원정보.회원id — NOT NULL — Auto_Increment
  • 게시글제목 (title) — varchar(50) — NOT NULL
  • 게시글내용 (content) — longtext
  • 조회수 (viewcnt) — int
  • 작성일자 (post_regdate) — datetime — NOT NULL

권한 (authority)

  • 권한id (authority_id) — int — 기본 키 — NOT NULL — Auto_Increment
  • 권한명 (authority_name) — varchar(20) — NOT NULL — Unique

댓글 (comment)

  • 댓글id (com_id) — int — 기본 키 — NOT NULL — Auto_Increment
  • 회원id (user_id) — int — 외래 키 → 회원정보.회원id — NOT NULL — Auto_Increment
  • 게시글ID (post_id) — int — 외래 키 → 게시글.게시글ID — NOT NULL — Auto_Increment
  • 댓글내용 (com_content) — text — NOT NULL
  • 댓글작성일자 (com_regdate) — datetime — NOT NULL

첨부파일 (attachment)

    회원권한 (user_authority)

    • 회원id (user_id) — int — 외래 키 → 회원정보.회원id — NOT NULL — Auto_Increment
    • 권한id (authority_id) — int — 외래 키 → 권한.권한id — NOT NULL — Auto_Increment

    회원정보 (user)

    • 회원id (user_id) — int — 기본 키 — NOT NULL — Auto_Increment
    • 로그인id (login_id) — varchar(20) — NOT NULL — Unique
    • 로그인비밀번호 (password) — varchar(20) — NOT NULL
    • 사용자이름 (name) — varchar(20) — NOT NULL
    • 이메일 (email) — varchar(50) — validate email format
    • MBTI유형 (mbti) — varchar(4) — html select
    • 가입일자 (user_regdate) — datetime — NOT NULL