bakehub-project

Tables (9)

Comment (댓글)

  • comment_id (댓글 식별 번호) — Primary key — NOT NULL
  • post_id (게시물 식별 번호) — Foreign key → Post.post_id — NOT NULL
  • member_id (회원 식별 번호) — Foreign key → Member.member_id — NOT NULL
  • content (내용)
  • created_at (생성일자)
  • updated_at (수정일자)

Follow (팔로우)

  • follow_id (팔로우 식별 번호) — Primary key — NOT NULL
  • follower_id (팔로우 하는 회원 식별 번호) — Foreign key → Member.member_id — NOT NULL
  • following_id (팔로우 받는 회원 식별 번호) — Foreign key → Member.member_id — NOT NULL
  • created_at (생성일자)

HashTag (해시태그)

  • hashtag_id (해시태그 식별 번호) — Primary key — NOT NULL
  • name (해시태그 이름)
  • created_at (생성일자)

Member (회원)

  • member_id (회원 식별 번호) — Primary key — NOT NULL
  • email (이메일)
  • password (비밀번호)
  • nickname (닉네임)
  • gender (성별) — enum
  • profileImgUrl (프로필 이미지 url)
  • status (회원 상태) — enum
  • role (회원 권한) — enum
  • created_at (생성일자)
  • updated_at (수정일자)

Notification (알림)

  • notification_id (알림 식별 번호) — Primary key — NOT NULL
  • member_id (회원 식별 번호) — Foreign key → Member.member_id — NOT NULL
  • notification_type (알림 타입) — enum
  • content (알림 내용)
  • created_at (생성일자)
  • relatedUrl (연관 url)

Post (게시물)

  • post_id (게시물 식별 번호) — Primary key — NOT NULL
  • member_id (회원 식별 번호) — Foreign key → Member.member_id — NOT NULL
  • title (제목)
  • content (내용)
  • created_at (생성일자)
  • updated_at (수정일자)

PostHashTag (게시물 해시태그)

  • post_hashtag_id (게시물 해시태그 식별 번호) — Primary key — NOT NULL
  • post_id (게시물 식별 번호) — Foreign key → Post.post_id — NOT NULL
  • hashtag_id (해시태그 식별 번호) — Foreign key → HashTag.hashtag_id — NOT NULL
  • created_at (생성일자)

PostHeart (좋아요)

  • post_heart_id (좋아요 식별 번호) — Primary key — NOT NULL
  • post_id (게시물 식별 번호) — Foreign key → Post.post_id — NOT NULL
  • member_id (회원 식별 번호) — Foreign key → Member.member_id — NOT NULL
  • created_at (생성일자)

PostImage (게시물 이미지)

  • post_image_id (이미지 식별 번호) — Primary key — NOT NULL
  • post_id (게시물 식별 번호) — Foreign key → Post.post_id — NOT NULL
  • post_image_url (이미지 url)
  • created_at (생성일자)