오버독

테이블 (11)

게시물 (post)

  • 게시물아이디 (pid) — int — 기본 키 — NOT NULL — auto increase
  • 게시글내용 (postContent) — varchar(50) — NOT NULL
  • 유저아이디 (uid) — int — 외래 키 → 유저.유저아이디 — NOT NULL — auto increase

게시물_사진 (post_picture)

  • 게시물아이디 (pid) — int — 외래 키 → 게시물.게시물아이디 — NOT NULL — auto increase
  • 사진아이디 (pictureId) — int — 외래 키 → 사진.사진아이디 — NOT NULL — auto increase

게시물_태그 (post_tag)

  • 게시물아이디 (pid) — int — 외래 키 → 게시물.게시물아이디 — NOT NULL — auto increase
  • 태그아이디 (tid) — int — 외래 키 → 태그.태그아이디 — NOT NULL — auto increase

견종 (breed)

  • 견종코드 (bid) — int — 기본 키 — NOT NULL — auto increase
  • 견종명 (breedName) — varcahr(15) — NOT NULL — ex)말티즈,웰시코기

댓글 (comment)

  • 댓글아이디 (cid) — int — 기본 키 — NOT NULL — auto increase
  • 댓글내용 (commentContent) — varchar(50) — NOT NULL
  • 게시물아이디 (pid) — int — 외래 키 → 게시물.게시물아이디 — NOT NULL — auto increase
  • 유저아이디 (uid) — int — 외래 키 → 유저.유저아이디 — NOT NULL — auto increase
  • 원댓글아이디 (origin_cid) — int — 외래 키 → 댓글.댓글아이디 — 대댓글 기능 위해 추가

반려견 (dog)

  • 반려견아이디 (did) — int — 기본 키 — NOT NULL — auto increase
  • 반려견이름 (dogName) — varchar(10) — NOT NULL
  • 반려견크기 (dogSize) — char(3) — NOT NULL — 소형/중형/대형
  • 반려견성별 (dogGender) — char(1) — NOT NULL — 남/여 한글자
  • 유저아이디 (uid) — int — 외래 키 → 유저.유저아이디 — NOT NULL — auto increase
  • 견종코드 (bid) — int — 외래 키 → 견종.견종코드 — NOT NULL — auto increase

사진 (picture)

  • 사진아이디 (pictureId) — int — 기본 키 — NOT NULL — auto increase
  • 사진 (picture) — varchar(50) — NOT NULL — url형식

유저 (user)

  • 유저아이디 (uid) — int — 기본 키 — NOT NULL — auto increase
  • 유저닉네임 (userName) — varchar(15) — NOT NULL
  • 유저프로필사진 (userPhoto) — varchar(50) — NOT NULL — url형식
  • 유저소개 (userInfo) — varchar(20) — NOT NULL — 한줄소개
  • 유저카카오토큰 (userKakao) — varchar(64)
  • 유저애플토큰 (userApple) — varchar(64)
  • 유저구글토큰 (userGoogle) — varchar(64)

좋아요 (like)

  • 유저아이디 (uid) — int — 외래 키 → 유저.유저아이디 — NOT NULL — auto increase
  • 게시물아이디 (pid) — int — 외래 키 → 게시물.게시물아이디 — NOT NULL — auto increase

태그 (tag)

  • 태그아이디 (tid) — int — 기본 키 — NOT NULL — auto increase
  • 태그명 (tagName) — varchar(10) — NOT NULL — ex)미니멀,공원

팔로우 (follow)

  • 팔로우아이디 (fid) — int — 기본 키 — NOT NULL — auto increase
  • 팔로워아이디 (followerId) — int — 외래 키 → 유저.유저아이디 — NOT NULL
  • 팔로잉아이디 (followingId) — int — 외래 키 → 유저.유저아이디 — NOT NULL