1004_관통

테이블 (6)

게시판 (articles)

  • 글번호 (article_number) — int — 기본 키 — NOT NULL
  • 고유번호 (user_code) — int — 외래 키 → 회원.고유번호 — NOT NULL
  • 제목 (article_title) — VARCHAR(100) — NOT NULL
  • 본문 (article_content) — TEXT
  • 생성일 (article_createdate) — TIMESTEMP — NOT NULL
  • 좋아요수 (article_like) — SHORT — NOT NULL

게시판 사진 (article_images)

  • 글번호 (article_number) — int — 외래 키 → 게시판.글번호 — NOT NULL
  • 이미지 (article_image) — LONGBLOB — NOT NULL

게시판 지도 정보 (article_mapInfos)

  • 글번호 (article_number) — int — 외래 키 → 게시판.글번호 — NOT NULL
  • 마커정보 (marker_info) — VARCHAR(15)
  • 위도 (article_latitude) — VARCHAR(30)
  • 경도 (article_longitude) — VARCHAR(30)

댓글 (comments)

  • 글번호 (article_number) — int — 외래 키 → 게시판.글번호 — NOT NULL
  • 고유번호 (user_code) — int — 외래 키 → 회원.고유번호 — NOT NULL
  • 댓글내용 (comment_content) — TEXT — NOT NULL
  • 생성일 (comment_createdate) — TIMESTEMP — NOT NULL

친구관리 (user_relations)

  • relation_code — int — 기본 키 — NOT NULL
  • 고유번호 (friend_code) — int — 외래 키 → 회원.고유번호 — NOT NULL
  • 본인번호 (user_code) — int — NOT NULL

회원 (users)

  • 고유번호 (user_code) — int — 기본 키 — NOT NULL
  • 아이디 (user_id) — VARCHAR(20) — NOT NULL — unique
  • 비밀번호 (user_password) — VARCHAR(20) — NOT NULL — 영어대문자, 소문자, 숫자, 특수문자 포함
  • 이메일 (user_email) — VARCHAR(50) — NOT NULL — unique
  • 이름 (user_name) — VARCHAR(10) — NOT NULL
  • 출생일 (user_birth) — date