끼리끼리

테이블 (6)

Boards (게시판)

  • board_no (게시글번호) — int — 기본 키 — NOT NULL
  • user_no (작성자번호) — int — 외래 키 → Users.user_no — NOT NULL
  • category_id (카테고리아이디) — char(10) — 외래 키 → Categorys.category_id — NOT NULL
  • title (제목) — char(80) not null
  • contents (글내용) — char(1000) not null
  • regist_date (작성일) — date not null
  • modify_date (수정일) — date not null
  • hits (조회수) — int not null

Categorys (카테고리)

  • category_id (카테고리아이디) — char(10) — 기본 키 — NOT NULL
  • category_name (카테고리명) — char(20)

Tests (심리테스트목록)

  • test_no (심리테스트번호) — int — 기본 키 — NOT NULL
  • test_url (심리테스트url) — char(200)
  • test_name (심리테스트명) — char(50)
  • Field

Users (유저)

  • user_no (유저번호) — int — 기본 키 — NOT NULL
  • user_id (유저아이디) — char(16) not null
  • password (비밀번호) — char(100) not null
  • email (이메일) — char(30) not null
  • phone_number (전화번호) — char(20) not null

attatch_files (첨부파일)

  • file_id (파일번호) — int — 기본 키 — NOT NULL
  • board_no (첨부게시글번호) — int — 외래 키 → Boards.board_no — NOT NULL
  • system_filename (시스템파일명) — char(50) not null
  • real_filename (실제파일명) — char(50) not null
  • file (파일스트림) — blob not null
  • link (출처url) — char(50) null

replys (댓글)

  • reply_no (댓글번호) — int — 기본 키 — NOT NULL
  • board_no (상위게시글번호) — int — 외래 키 → Boards.board_no — NOT NULL
  • user_no (작성자번호) — int — 외래 키 → Users.user_no — NOT NULL
  • contents (글내용) — char(400)