조각집

테이블 (5)

게시글 (Post)

  • PK (postId) — String — 기본 키 — NOT NULL — default
  • FK (groupId) — String — 외래 키 → 그룹.PK — NOT NULL — default
  • 닉네임 (nickname) — String
  • 제목 (title) — String
  • 본문 (content) — String
  • 이미지 (imageUrl) — String
  • 비밀번호 (postPassword) — String
  • 장소 (location) — String
  • 추억의 순간 (moment) — DateTime
  • 공개 여부 (isPublic) — Bool
  • 공감 수 (likeCount) — BigInt — default(0)
  • 댓글 수 (commentCount) — BigInt — default(0)
  • 생성 시간 (createdAt) — DateTime — default
  • 수정 시간 (updatedAt) — DateTime — default

게시글-태그 (PostTag)

  • PK (postTagId) — String — 기본 키 — NOT NULL — default
  • FK (postId) — String — 외래 키 → 게시글.PK — NOT NULL — default
  • FK (tagId) — String — 외래 키 → 태그.PK — NOT NULL — default
  • 생성 시간 (createdAt) — DateTime — default

그룹 (Group)

  • PK (groupId) — String — 기본 키 — NOT NULL — default
  • 이름 (name) — String — unique
  • 비밀번호 (groupPassword) — String
  • 이미지 (imageUrl) — String
  • 공개 여부 (isPublic) — Bool
  • 소개 (introduction) — String
  • 공감 수 (groupLikeCount) — BigInt — default(0)
  • 게시글 수 (postCount) — BigInt — default(0)
  • 생성 시간 (createdAt) — DateTime — default
  • 수정 시간 (updatedAt) — DateTime — default

댓글 (Comment)

  • PK (commentId) — String — 기본 키 — NOT NULL — default
  • FK (postId) — String — 외래 키 → 게시글.PK — NOT NULL — default
  • 닉네임 (nickname) — String
  • 내용 (content) — String
  • 비밀번호 (commentPassword) — String
  • 생성 시간 (createdAt) — DateTime — default
  • 수정 시간 (updatedAt) — DateTime — default

태그 (Tag)

  • PK (tagId) — String — 기본 키 — NOT NULL — default
  • 내용 (content) — String — unique
  • 생성 시간 (createdAt) — DateTime — default