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 (fashion_item)
- Key (id) — bigint — 기본 키 — NOT NULL — Auto increment
- id (member_id) — bigint — 외래 키 → 회원.id — NOT NULL — Auto increment
- Field (item) — varchar(50) — NOT NULL — 아이템 이름
- Field2 (description) — text — NOT NULL — 설명
- Field3 (image_url) — varchar(300) — NOT NULL
- Field (liked) — boolean
- Field (created_at) — datetime(6)
- Field (update_at) — datetime(6)
게시글 (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)
- 타입 id (id) — bigint — 기본 키 — NOT NULL — Auto increment
- id (member_id) — bigint — 외래 키 → 회원.id — NOT NULL — Auto increment
- 타입 이름 (recommend_style) — varchar(100) — NOT NULL — 스타일 이름
- 타입 설명 (introduction) — text — NOT NULL — 설명
- Field (style_direction) — text
- Field (practical_styling_tips) — text
- 타입 사진 url (type_image_url) — varchar(300) — NOT NULL — 추천 사진
- 생성 (created_at) — datetime(6) — NOT NULL
- 수정 (updated_at) — datetime(6) — NOT NULL
- Field (image_url) — varchar(300)
- Field (is_liked) — boolean
스타일 카테고리 (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)