Mody(1차 과제 제출용 public)

테이블 (16)

Untitled (refresh_token)

  • Key (id) — bigint — 기본 키 — NOT NULL — Auth increment
  • id (member_id) — bigint — 외래 키 → 회원.id — NOT NULL — Auto increment
  • Field (token) — varchar(100) — NOT NULL — refresh token

Untitled (post_image)

  • Key (post_image_id) — bigint — 기본 키 — NOT NULL
  • 게시글 id (post_id) — bigint — 외래 키 → 게시글.게시글 id — NOT NULL
  • Field (imageUrl) — varchar

Untitled (appeal_category)

  • Key (id) — bigint — 기본 키 — NOT NULL — Auto increment
  • Field (name) — varchar(20) — NOT NULL
  • Field2 (created_at) — datetime — NOT NULL
  • Field (updated_at) — datetime — NOT NULL

Untitled (post_report)

  • Key — bigint — 기본 키 — NOT NULL — Auto Incement
  • id (post_id) — bigint — 외래 키 → 회원.id — NOT NULL — Auto increment
  • 게시글 id (member_id) — bigint — 외래 키 → 게시글.게시글 id — NOT NULL — Auto increment

Untitled (member_recommendation_like)

  • Key (member_recommendation_like) — 기본 키 — NOT NULL
  • Field (created_at) — datetime — NOT NULL
  • Field2 (updated_at) — datetime — NOT NULL
  • id — bigint — 외래 키 → 회원.id — NOT NULL — Auto increment
  • Key (recommendation_id) — 외래 키 → Untitled2.Key — NOT NULL

Untitled2 (recommendation)

  • Key (recommendation_id) — 기본 키 — NOT NULL
  • Field (title) — varchar — NOT NULL
  • Field (content) — text — NOT NULL
  • Field (imageUrl) — varchar(3000 — NOT NULL
  • Field (likeCount)
  • Field (recommend_type) — enum — NOT NULL
  • id (id2) — bigint — 외래 키 → 회원.id — NOT NULL — Auto increment

게시글 (post)

  • 게시글 id (id) — bigint — 기본 키 — NOT NULL — Auto increment
  • id (member_id) — bigint — 외래 키 → 회원.id — NOT NULL — Auto increment
  • id (body_type_id) — bigint — 외래 키 → 체형.id — NOT NULL — Auto increment
  • 본문 (body) — varchar(500)
  • 좋아요 수 (like_count) — int
  • 공개 여부 (is_public) — boolean
  • 신고 개수 (report_count) — int
  • 생성 (created_at) — datetime(6)
  • 수정 (updated_at) — datetime(6)

스타일 카테고리 (style_category)

  • Key (id) — bigint — 기본 키 — NOT NULL — Auto increment
  • Field (name) — varchar(20) — NOT NULL — 스타일 카테고리 이름
  • Field (created_at) — datetime — NOT NULL
  • Field (updated_at) — datetime — NOT NULL

이미지 (image)

  • 이미지 id (id) — bigint — 기본 키 — NOT NULL
  • 원본 파일 이름 (origin_file_name) — varchar(300)
  • 서버 저장 이름 (store_file_name) — varchar(300)
  • 서버 저장 url (store_file_url) — varchar(300)
  • 이미지 크기 (size) — bigint
  • 생성 (created_at) — datetime(6)
  • 수정 (updated_at) — datetime(6)

체형 (body_type)

  • id — bigint — 기본 키 — NOT NULL
  • 체형 이름 (name) — varchar(30)
  • 생성 (created_at) — datetime(6)
  • 수정 (updated_at) — datetime(6)

체형 분석 타입 답변 (answer)

  • Key (id) — bigint — 기본 키 — NOT NULL — Auto increment
  • Key (question_id) — bigint — 외래 키 → 체형 분석 타입 질문.Key — NOT NULL — Auto increment
  • Field (content) — varchar(100) — NOT NULL — 답변
  • Field (image_url) — varchar(100) — NOT NULL — 답변 이미지 url
  • Field (created_at) — datetime — NOT NULL
  • Field (updated_atd) — datetime — NOT NULL

체형 분석 타입 질문 (question)

  • Key (id) — bigint — 기본 키 — NOT NULL — Auto increment
  • Field (content) — varchar(100) — NOT NULL — 질문 내용
  • Field (created_at) — datetime — NOT NULL
  • Field (updated_at) — datetime — NOT NULL

회원 (member)

  • id — bigint — 기본 키 — NOT NULL — Auto increment
  • Field (email) — varchar(100) — 이메일
  • Field (nickname) — varchar(20) — NOT NULL — 닉네임
  • Field (password) — 비밀번호
  • Field (profile_url) — varchar(100) — NOT NULL — 프로필 이미지
  • Field (birthdate) — date — NOT NULL — 생일
  • Field2 (gender) — enum — NOT NULL — 성별
  • Field (height) — int — NOT NULL — 키
  • Field (status) — enum — NOT NULL — 회원 탈퇴 상태
  • Field (report_count) — int — NOT NULL — 신고 횟수
  • Field (role) — enum — NOT NULL — 회원 권한
  • Field (created_at) — datetime — NOT NULL
  • Field2 (updated_at) — datetime — NOT NULL

회원 선택 답변 (member_answer)

  • Key (id) — bigint — 기본 키 — NOT NULL — Auto increment
  • id (member_id) — bigint — 외래 키 → 회원.id — NOT NULL — Auto increment
  • Key (answer_id) — bigint — 외래 키 → 체형 분석 타입 답변.Key — NOT NULL — Auto increment
  • Field (created_at) — datetime — NOT NULL
  • Field (updated_at) — datetime — NOT NULL

회원 좋아요 게시글 (member_post_like)

  • id — bigint — 기본 키 — NOT NULL — Auto increment
  • id (member_id) — bigint — 외래 키 → 회원.id — NOT NULL — Auto increment
  • 게시글 id (post_id) — bigint — 외래 키 → 게시글.게시글 id — NOT NULL — Auto increment
  • 생성 (created_at) — datetime(6)
  • 수정 (updated_at) — datetime(6)

회원 체형 분석 (member_body_type)

  • id — bigint — 기본 키 — NOT NULL
  • id (member_id) — bigint — 외래 키 → 체형.id — NOT NULL
  • id (body_type_id) — bigint — 외래 키 → 회원.id — NOT NULL — Auto increment
  • 본문 (body) — varchar(1000)
  • 생성 (created_at) — datetime(6)
  • 수정 (updated_at) — datetime(6)