Ha

Tables (10)

category (카테고리)

  • 카테고리번호 (categoryId) — BIGINT — Primary key — NOT NULL
  • 카테고리내용 (categoryContent) — VARCHAR(255) — NOT NULL

comment (댓글)

  • 댓글번호 (commentId) — VARCHAR(255) — Primary key — NOT NULL
  • 사용자번호 (userId) — BIGINT — Foreign key → user.사용자번호 — NOT NULL
  • 게시글번호 (postId) — BIGINT — Foreign key → post.게시글번호 — NOT NULL
  • 댓글내용 (commentContent) — VARCHAR(255) — NOT NULL

commentLike (댓글좋아요)

  • 댓글좋아요번호 (commentLikeId) — BIGINT — Primary key — NOT NULL
  • 사용자번호 (userId) — BIGINT — Foreign key → user.사용자번호 — NOT NULL
  • 댓글번호 (commentId) — VARCHAR(255) — Foreign key → comment.댓글번호 — NOT NULL

follow (팔로우)

  • 팔로우번호 (followId) — BIGINT — Primary key — NOT NULL
  • 팔로워번호 (followerId) — BIGINT — Foreign key → user.사용자번호 — NOT NULL
  • 팔로잉번호 (followingId) — BIGINT — Foreign key → user.사용자번호 — NOT NULL

hashtag (해시태그)

  • 해시태그번호 (hashtagId) — BIGINT — Primary key — NOT NULL
  • 태그내용 (tagContent) — VARCHAR(255) — NOT NULL

image (이미지)

  • 이미지번호 (imageId) — VARCHAR(255) — Primary key — NOT NULL
  • 이미지제목 (imageTitle) — VARCHAR(255)
  • 게시글번호 (postId) — BIGINT — Foreign key → post.게시글번호 — NOT NULL

post (게시글)

  • 게시글번호 (postId) — BIGINT — Primary key — NOT NULL
  • 게시일 (postcreatedDate) — timestamp — NOT NULL
  • 글내용 (postContent) — VARCHAR(255) — NOT NULL
  • 제목 (postTitle) — VARCHAR(255) — NOT NULL
  • 사용자번호 (userId) — BIGINT — Foreign key → user.사용자번호 — NOT NULL
  • 카테고리번호 (categoryId) — BIGINT — Foreign key → category.카테고리번호 — NOT NULL

post - hashtag (게시글해시태그)

  • 게시글해시태그번호 (posthasgtagId) — BIGINT — Primary key — NOT NULL
  • 게시글번호 (postId) — BIGINT — Foreign key → post.게시글번호 — NOT NULL
  • 해시태그번호 (hashtagId) — BIGINT — Foreign key → hashtag.해시태그번호 — NOT NULL

postLike (게시글좋아요)

  • 게시글좋아요번호 (postLikeId) — BIGINT — Primary key — NOT NULL
  • 사용자번호 (userId) — BIGINT — Foreign key → user.사용자번호 — NOT NULL
  • 게시글번호 (postId) — BIGINT — Foreign key → post.게시글번호 — NOT NULL

user (사용자)

  • 사용자번호 (userId) — BIGINT — Primary key — NOT NULL
  • 로그인아이디 (loginId) — VARCHAR(255) — NOT NULL
  • 비밀번호 (password) — VARCHAR(255) — NOT NULL
  • 별명 (nickname) — VARCHAR(255)
  • 사용자이메일 (userEmail) — VARCHAR(255)
  • 성별 (userGender) — enum — NOT NULL
  • 프로필소개 (userIntroduce) — VARCHAR(255) — NOT NULL
  • 프로필이미지 (userImage) — VARCHAR(255) — NOT NULL
  • 가입일 (usercreatedDate) — timestamp — NOT NULL