Mindful

Tables (8)

chatting_room (채팅)

  • room_id (채팅방의 고유 id) — string — Primary key — NOT NULL
  • user_id_1 (유저의 고유 uid) — string — Foreign key → user.user_id — NOT NULL
  • user_id_2 (유저의 고유 uid2) — string — Foreign key → user.user_id — NOT NULL

comment (댓글)

  • feed_id (피드의 고유 id) — string — Foreign key → feed.feed_id — NOT NULL
  • user_id (유저의 고유 uid) — string — Foreign key → user.user_id — NOT NULL
  • comment (댓글) — string
  • created_at (피드의 생성일) — date
  • update_at (피드 업데이트)
  • related_to (연결되어있는 피드) — string

feed (피드)

  • feed_id (피드의 고유 id) — string — Primary key — NOT NULL
  • content (피드의 내용) — string
  • created_at (피드의 생성일) — date
  • like_count (피드의 좋아요수) — number
  • comment_count (피드의 댓글의 수) — number
  • user_id (유저의 고유 uid) — string — Foreign key → user.user_id — NOT NULL
  • update_at (피드 업데이트)

feed_img (이미지)

  • img_id (이미지의 고유 id) — string — Primary key — NOT NULL
  • feed_id (피드의 고유 id) — string — Foreign key → feed.feed_id — NOT NULL
  • img_address (이미지 주소) — string

feed_like (좋아요)

  • user_id (유저의 고유 uid) — string — Foreign key → user.user_id — NOT NULL
  • feed_id (피드의 고유 id) — string — Foreign key → feed.feed_id — NOT NULL

follow (팔로우)

  • user_id (유저의 고유 uid) — string — Foreign key → user.user_id — NOT NULL
  • follower_id (팔로우한 유저 id) — string
  • followed_id (팔로우된 유저 id)

message (메시지)

  • room_id (채팅방의 고유 id) — string — Foreign key → chatting_room.room_id — NOT NULL
  • from_user_id (보낸 유저 고유 id) — string — Foreign key → user.user_id — NOT NULL
  • to_user_id (받는 유저 고유 id) — string — Foreign key → user.user_id — NOT NULL
  • message (메세지 내용) — string
  • create_at (작성 시간) — string

user (유저)

  • user_id (유저의 고유 uid) — string — Primary key — NOT NULL
  • email (유저의 email) — string
  • display_name (유저의 이름) — string
  • create_at (유저의 생성일) — string
  • profile_img (유저의 이미지) — string
  • follow_count (유저의 팔로우 수) — number
  • follower_count (유저의 팔로윙 수) — number
  • feed_count (유저의 피드 수) — number
  • introduction (유저 소개) — string