게시판 연습

테이블 (3)

게시판 (BOARD)

  • 인덱스 (board_inx) — primary key — 기본 키 — NOT NULL
  • 카테고리 (category) — not null — 기본 키 — NOT NULL
  • 순번 (seq) — not null — 기본 키 — NOT NULL
  • 아이디 (user_id) — not null — 외래 키 → 유저.아이디 — NOT NULL
  • 제목 (title) — not null
  • 내용 (content)
  • 조회수 (hit) — default 0
  • 좋아요 (like) — default 0
  • 싫어요 (hate) — default 0
  • 등록일 (reg_date)
  • 수정일 (mod_date)
  • 업로드파일 (fileID)

유저 (USER)

  • 유저인덱스 (user_inx) — primary key — 기본 키 — NOT NULL
  • 아이디 (USER_ID) — not null — 기본 키 — NOT NULL
  • 이름 (NAME) — not null
  • 비밀번호 (PASSWORD) — not null
  • 생년월일 (BIRTH) — not null
  • 이메일 (mail_address) — not null
  • 연락처 (HP) — not null
  • 주소 (ADD) — not null
  • 우편번호 (ZIPCODE) — not null
  • 상세주소 (DETAIL_ADD) — not null
  • 성인인증여부 (ADULT_YN) — default 'N'
  • 본인인증여부 (SELF-CERTIFRICATION) — char(1)

파일정보 (file_information)

  • 파일아이디 (FILE_ID) — primary key — 기본 키 — NOT NULL
  • 인덱스 (board_inx) — FOREIGN key — 외래 키 → 게시판.인덱스 — NOT NULL
  • 카테고리 (category) — not null — 외래 키 → 게시판.카테고리 — NOT NULL
  • 파일원이름 (file_name) — not null
  • 파일변경이름 (file_new_name) — not null
  • 파일확장자명 (file_type) — not null
  • 파일위치 (PATH) — not null
  • 첨부파일크기 (file_size) — not null
  • 전송오류내용 (err_msg)