yeojeong

테이블 (5)

게시판 (Board)

  • PK (id) — bigInt — 기본 키 — NOT NULL
  • 지역 명 (locationName) — string — NOT NULL
  • 형식화된 주소 (formattedAddress) — string — NOT NULL
  • 경도 (longitude) — string — NOT NULL
  • 위도 (latitude) — string — NOT NULL
  • 제목 (title) — string — NOT NULL
  • 본문 (body) — string — NOT NULL — len = 50000
  • 조회수 (view) — int
  • 평균 평점 (avgScore) — int
  • 댓글 개수 (commentCount) — int
  • 사용자 FK (member_id) — bigInt — 외래 키 → 사용자.PK — NOT NULL
  • 생성시간 (createAt) — dateTime — NOT NULL
  • 수정시간 (updateAt) — dateTime — NOT NULL

댓글 (Comment)

  • PK (id) — bigInt — 기본 키 — NOT NULL
  • 평점 (score) — int — NOT NULL
  • 댓글 (comment) — String
  • 게시판 FK (board_id) — bigInt — 외래 키 → 게시판.PK — NOT NULL
  • 사용자 FK (member_id) — bigInt — 외래 키 → 사용자.PK — NOT NULL
  • 생성시간 (createAt) — dateTime — NOT NULL
  • 수정시간 (updateAt) — dateTime — NOT NULL

사용자 (Member)

  • PK (id) — bigInt — 기본 키 — NOT NULL
  • 아이디 (username) — string — NOT NULL — unique
  • 닉네임 (nickname) — string — NOT NULL — unique
  • 이메일 (email) — string — NOT NULL — unique
  • 비밀번호 (password) — string — NOT NULL
  • 나이 (age) — int — NOT NULL
  • 권한 (role) — string — NOT NULL
  • 마지막 로그신 시간 (lastLoginDate) — dateTime — NOT NULL

장소 (location)

  • PK (id) — bigint — 기본 키 — NOT NULL
  • 날짜 (unixTime) — long — NOT NULL
  • 이동시간 (travelTime) — int
  • 이동수단 (transportation) — string
  • 이동수단 메모 (transportationNote) — string
  • 장소 (place) — string — NOT NULL
  • 주소 (address) — string — NOT NULL
  • 전화번호 (phoneNumber) — string
  • 메모 (memo) — string
  • 플래너 FK (planner_id) — bigint — 외래 키 → 플래너.PK — NOT NULL
  • 사용자 FK (member_id) — bigInt — 외래 키 → 사용자.PK — NOT NULL
  • 생성시간 (createAt) — dateTime — NOT NULL
  • 수정시간 (updateAt) — dateTime — NOT NULL

플래너 (planner)

  • PK (id) — bigint — 기본 키 — NOT NULL
  • 제목 (title) — string — NOT NULL
  • 소제목 (subTitle) — string
  • 인원 (personnel) — int — NOT NULL
  • 장소 개수 (locationCount) — int
  • 사용자 FK (member_id) — int — 외래 키 → 사용자.PK — NOT NULL