Tread

Tables (11)

action_type (활동타입)

  • 활동명 (type_code) — VARCHAR(30) — Primary key — NOT NULL
  • 점수 (score_value) — DOUBLE — NOT NULL

follow (팔로우)

  • 팔로워 (follower_id) — BIGINT — Primary key — NOT NULL — user테이블에서 참조
  • 팔로잉 (following_id) — BIGINT — Foreign key → user.user_idx — NOT NULL
  • 생성일자 (followed_at) — DATETIME — NOT NULL
  • 삭제여부 (del_check) — TINYINT(1) — NOT NULL — 사용자 삭제시 1

hashtag (해쉬태그)

  • hashtag_idx — BIGINT — Primary key — NOT NULL
  • 해쉬태그명 (hashtag_name) — VARCHAR(50) — NOT NULL — 중복체크
  • 생성일자 (hashtag_at) — DATETIME — NOT NULL

media (미디어)

  • media_idx — BIGINT — Primary key — NOT NULL
  • thread_idx — BIGINT — Foreign key → thread.thread_idx — NOT NULL
  • 파일경로 (file_url) — VARCHAR(1024) — NOT NULL
  • 파일확장자 (file_type) — VARCHAR(30) — NOT NULL
  • 삭제여부 (del_check) — TINYINT(1) — NOT NULL — 게시글 삭제시 1

related_word (해쉬태그연관단어)

  • related_word_idx — BIGINT — Primary key — NOT NULL
  • hashtag_idx — BIGINT — Foreign key → hashtag.hashtag_idx — NOT NULL
  • 단어 (word) — VARCHAR(50) — NOT NULL
  • 생성일자 (created_at) — DATETIME — NOT NULL

thread (게시글)

  • thread_idx — BIGINT — Primary key — NOT NULL
  • user_idx — BIGINT — Foreign key → user.user_idx — NOT NULL
  • 내용 (content) — TEXT
  • 삭제여부 (del_check) — TINYINT(1) — NOT NULL
  • 생성일시 (created_at) — DATETIME — NOT NULL
  • 부모 게시글 (parent_idx) — BIGINT — Foreign key → thread.thread_idx
  • 삭제한 사용자 (del_user_idx) — BIGINT — Foreign key → user.user_idx — NOT NULL
  • alert1 — VARCHAR(255) — NOT NULL
  • alert2 — VARCHAR(255) — NOT NULL
  • alert3 — VARCHAR(255) — NOT NULL
  • 삭제일자 (deleted_at) — DATETIME

thread_hashtag (게시글 해쉬태그)

  • thread_idx — BIGINT — Foreign key → thread.thread_idx — NOT NULL
  • hashtag_idx — BIGINT — Foreign key → hashtag.hashtag_idx — NOT NULL
  • 삭제여부 (del_check) — TINYINT(1) — NOT NULL — thread삭제시 1
  • 생성일자 (thread_hashtag_at) — DATETIME — NOT NULL

thread_like (좋아요)

  • thread_idx — BIGINT — Foreign key → thread.thread_idx — NOT NULL
  • user_idx — BIGINT — Foreign key → user.user_idx — NOT NULL
  • 생성일시 (liked_at) — DATETIME — NOT NULL
  • 삭제여부 (del_check) — TINYINT(1) — NOT NULL — 게시글 또는 사용자 삭제시 1

user (사용자)

  • user_idx — BIGINT — Primary key — NOT NULL
  • 사용자 이름 (user_name) — VARCHAR(30) — NOT NULL
  • 이메일 및 휴대폰번호 (email_phone) — VARCHAR(100) — NOT NULL — 아이디로 사용, 중복체크
  • 비밀번호 (password) — VARCHAR(255) — NOT NULL
  • 아이디 (user_id) — VARCHAR(255) — NOT NULL — 중복체크
  • 사용자소개 (bio) — VARCHAR(255)
  • 사용자프로필 (profile_image) — VARCHAR(1024) — NOT NULL
  • 삭제여부 (del_check) — TINYINT(1) — NOT NULL
  • 비공개여부 (private_check) — TINYINT(1) — NOT NULL
  • 생성일시 (created_at) — DATETIME — NOT NULL
  • alert1 — VARCHAR(255)
  • alert2 — VARCHAR(255)
  • alert3 — VARCHAR(255)
  • 삭제한 사용자 (del_user_idx) — BIGINT — Foreign key → user.user_idx — NOT NULL
  • 삭제일자 (deleted_at) — DATETIME

user_action (유저활동기록)

  • action_idx — BIGINT — Primary key — NOT NULL
  • user_idx — BIGINT — Foreign key → user.user_idx — NOT NULL
  • hashtag_idx — BIGINT — Foreign key → hashtag.hashtag_idx — NOT NULL
  • 활동명 (action_type) — VARCHAR(30) — Foreign key → action_type.활동명 — NOT NULL
  • 삭제여부 (del_check) — TINYINT(1) — NOT NULL
  • 생성일자 (action_at) — DATETIME — NOT NULL

user_hashtag (사용자 해쉬태그)

  • user_idx — BIGINT — Foreign key → user.user_idx — NOT NULL
  • hashtag_idx — BIGINT — Foreign key → hashtag.hashtag_idx — NOT NULL
  • 삭제여부 (del_check) — TINYINT(1) — NOT NULL — user_삭제시 1
  • 생성일자 (user_hashtag_at) — DATETIME