KULMATE

Tables (7)

Board (게시판)

  • 게시물 고유Key (Key) — String — Primary key — NOT NULL
  • 유저id (id) — String — Foreign key → User.유저id — NOT NULL — 카카오톡 내가 정한 내 이름
  • 제목 (title) — String — NOT NULL
  • 내용 (content) — varchar(1000)
  • 최초작성일 (date) — LocalDateTime — NOT NULL
  • 조회수 (viewcount) — int — NOT NULL — 기본값=0
  • 좋아요 수 (likecount) — int — NOT NULL — 기본값=0
  • 수정시간 (isEdit) — LocalDateTime — null이면 수정안한거임

Comment (댓글)

  • 댓글 고유Key (CommentKey) — String — Primary key — NOT NULL
  • 유저id (id) — String — Foreign key → User.유저id — NOT NULL — 카카오톡 내가 정한 내 이름
  • 게시물 고유Key (Key) — String — Foreign key → Board.게시물 고유Key — NOT NULL
  • 최종 수정일 (date) — LocalDateTime — NOT NULL — 작성일도 포함됨
  • 좋아요 수 (likecount) — int — NOT NULL — 기본값=0
  • 수정여부 (isEdit) — boolean — NOT NULL — ture or false

DeliveryBoard (배달게시판)

  • 배달 고유Key (Key) — String — Primary key — NOT NULL
  • 유저id (id) — String — Foreign key → User.유저id — NOT NULL — 배달 개시유저
  • 배달비를 제외한 금액 (foodPrice) — int — NOT NULL
  • 배달비 (deliveryPrice) — int — NOT NULL
  • 최대 모집인원 (recruitmentCount) — int — NOT NULL
  • 현재 모집된 인원 (currentRecruitmentCount) — int — NOT NULL — 1이상(본인포함)
  • 먹고싶은 시간대 (eatingTime) — LocalDateTime — NOT NULL — 날짜와 시간 분 까지

DeliveryList (배달리스트)

  • 배달 고유Key (Key) — String — Foreign key → DeliveryBoard.배달 고유Key — NOT NULL
  • 유저id (id) — String — Foreign key → User.유저id — NOT NULL — 카카오톡 내가 정한 내 이름

RefreshTokens (리프레시토큰들)

  • 유저id (id) — String — Foreign key → User.유저id — NOT NULL — 카카오톡 내가 정한 내 이름
  • RefreshTokens (refreshTokens) — String — NOT NULL
  • 토큰시작시간 (startTime) — LocalDateTime — NOT NULL — 토큰 기한

ReviewBoard (호실 리뷰)

  • 리뷰 고유Key (Key) — String — Primary key — NOT NULL
  • 유저id (id) — String — Foreign key → User.유저id — NOT NULL — 카카오톡 내가 정한 내 이름
  • 기숙사 건물명 (dormitoryName) — String — NOT NULL — 레이크, 드림, 비전 등
  • 세부 주소 (dormitoryAddress) — String — NOT NULL — 904호 등
  • 평점 (reviewPoint) — int — NOT NULL — 5점만점 4.1점이면 41로 저장

User (사용자)

  • 유저id (id) — String — Primary key — NOT NULL — 카카오톡 내가 정한 내 이름
  • 리뷰여부 (isDormReviewCertified) — boolean — NOT NULL
  • 기숙사 인증여부 (hasDormCertification) — boolean — NOT NULL — 인증시true미인증시false
  • 기숙사 건물명 (dormitoryName) — String
  • 세부 호수 (dormitoryAddress) — String