sns

테이블 (10)

게시글 (Untitled7)

  • 게시글 id (post_id) — int — 기본 키 — NOT NULL
  • 회원id (userId) — long — 외래 키 → 회원.회원id — NOT NULL
  • 내용 (content) — text
  • 위치태그 (location) — varchar2(30)

게시글 좋아요 (Untitled4)

  • 테이블 id (user_post_like_id) — int — 기본 키 — NOT NULL
  • 회원id (userId) — long — 외래 키 → 회원.회원id — NOT NULL
  • 게시글 id (post_id) — int — 외래 키 → 게시글.게시글 id — NOT NULL
  • 회원id (userId2) — long — 외래 키 → 게시글.회원id — NOT NULL

게시글 해시태그 (Untitled9)

  • 테이블id (post_hashtag_id) — int — 기본 키 — NOT NULL
  • 게시글 id (post_id) — int — 외래 키 → 게시글.게시글 id — NOT NULL
  • 회원id (userId) — long — 외래 키 → 게시글.회원id — NOT NULL
  • 해시태그id (hashtag_id2) — int — 외래 키 → 해시태그.해시태그id — NOT NULL

댓글 (Untitled8)

  • 댓글 id (comment_id) — long — 기본 키 — NOT NULL
  • 회원id (userId) — long — 외래 키 → 회원.회원id — NOT NULL
  • 게시글 id (post_id) — int — 외래 키 → 게시글.게시글 id — NOT NULL
  • 회원id (userId2) — long — 외래 키 → 게시글.회원id — NOT NULL
  • 내용 (content) — varchar2(200)

댓글 좋아요 (Untitled5)

  • 테이블id (user_comment_like_id) — int — 기본 키 — NOT NULL
  • 회원id (userId) — long — 외래 키 → 회원.회원id — NOT NULL
  • 댓글 id (comment_id) — long — 외래 키 → 댓글.댓글 id — NOT NULL
  • 회원id (userId2) — long — 외래 키 → 댓글.회원id — NOT NULL
  • 게시글 id (post_id) — int — 외래 키 → 댓글.게시글 id — NOT NULL
  • 회원id (userId22) — long — 외래 키 → 댓글.회원id — NOT NULL

댓글 회원 태그 (Untitled6)

  • 테이블 id (user_comment_tag_id) — int — 기본 키 — NOT NULL
  • 댓글 id (comment_id) — long — 외래 키 → 댓글.댓글 id — NOT NULL
  • 회원id (userId) — long — 외래 키 → 회원.회원id — NOT NULL
  • 회원id (userId2) — long — 외래 키 → 댓글.회원id — NOT NULL
  • 게시글 id (post_id) — int — 외래 키 → 댓글.게시글 id — NOT NULL
  • 회원id (userId22) — long — 외래 키 → 댓글.회원id — NOT NULL

사람 태그하기 (Untitled2)

  • 테이블 id (user_post_tag_id) — int — 기본 키 — NOT NULL
  • 회원id (userId) — long — 외래 키 → 회원.회원id — NOT NULL
  • 게시글 id (post_id) — int — 외래 키 → 게시글.게시글 id — NOT NULL
  • 회원id (userId2) — long — 외래 키 → 게시글.회원id — NOT NULL

팔로우 (Untitled3)

  • 팔로우id (follow_id) — long — 기본 키 — NOT NULL
  • 회원id (userId) — long — 외래 키 → 회원.회원id — NOT NULL
  • 팔로워 id (follower_id) — long
  • 팔로잉 id (following_id) — long

해시태그 (Untitled10)

  • 해시태그id (hashtag_id) — int — 기본 키 — NOT NULL
  • 태그 (hashtag) — varchar2(30)

회원 (Untitled)

  • 회원id (userId) — long — 기본 키 — NOT NULL
  • 회원이메일 (email) — varchar2(50)
  • 비밀번호 (password) — varchar2(200)
  • 핸드폰번호 (phone) — varchar2(11)
  • 성별 (gender) — char
  • 생일 (birth) — timestamp
  • 이름 (name) — varchar2(10)
  • 닉네임 (nickname) — varchar2(10)
  • 소개 (introduce) — varchar2(100)
  • 프로필 이미지 (Field2) — text