잇타 8기 2팀
테이블 (19)
가게 (shop)
- Shop PK (id) — NOT NULL — 기본 키 — NOT NULL
- 가게 이름 (name) — NOT NULL — NOT NULL
- 가게 로고 (logo_object_key) — NULL
- Field (created_at) — NOT NULL
- Field (updated_at) — NOT NULL
댓글 (comment)
- Comment PK (id) — NOT NULL — 기본 키 — NOT NULL
- User PK (user_id) — NOT NULL — 외래 키 → 유저.User PK — NOT NULL
- Comment PK (parent_comment_id) — NOT NULL — 외래 키 → 댓글.Comment PK — NOT NULL
- created_at — NOT NULL — NOT NULL
- updated_at — NOT NULL — NOT NULL
- commentable_id — bigint — NOT NULL
- commentable_type — NOT NULL — NOT NULL
- content — varchar(200) — NOT NULL
- like_count — int — NOT NULL
댓글 좋아요 (comment_like)
- Comment Like PK (id) — NOT NULL — 기본 키 — NOT NULL
- Comment PK (comment_id) — NOT NULL — 외래 키 → 댓글.Comment PK — NOT NULL
- User PK (user_id) — NOT NULL — 외래 키 → 유저.User PK — NOT NULL
- created_at — NOT NULL — NOT NULL
- updated_at — NOT NULL — NOT NULL
레퍼런스 (reference)
- Reference PK (id) — NOT NULL — 기본 키 — NOT NULL
- User PK (user_id) — NOT NULL — 외래 키 → 유저.User PK — NOT NULL
- created_at — NOT NULL — NOT NULL
- updated_at — NOT NULL — NOT NULL
- scrap_count — NOT NULL — NOT NULL
레퍼런스 이미지 (reference_image)
- Reference Image PK (id) — NOT NULL — 기본 키 — NOT NULL
- Reference PK (reference_id) — NOT NULL — 외래 키 → 레퍼런스.Reference PK — NOT NULL
- object_key — NOT NULL — NOT NULL
- created_at — NOT NULL — NOT NULL
- updated_at — NOT NULL — NOT NULL
문의 (inquiry)
- Inquiry PK (id) — NOT NULL — 기본 키 — NOT NULL
- User PK (user_id) — NOT NULL — 외래 키 → 유저.User PK — NOT NULL
- created_at — NOT NULL — NOT NULL
- updated_at — NOT NULL — NOT NULL
- content — NULL — NOT NULL
- status — NOT NULL — NOT NULL
- type — NOT NULL — NOT NULL
문의 답변 (inquiry_answer)
- Inquiry Answer PK (id) — NOT NULL — 기본 키 — NOT NULL
- Inquiry PK (inquiry_id) — NOT NULL — 외래 키 → 문의.Inquiry PK — NOT NULL
- User PK (user_id) — NOT NULL — 외래 키 → 유저.User PK — NOT NULL
- created_at — NOT NULL — NOT NULL
- updated_at — NOT NULL — NOT NULL
- content — NULL — NOT NULL
상품 (product)
- Product PK (id) — NOT NULL — 기본 키 — NOT NULL
- Shop PK (shop_id) — NOT NULL — 외래 키 → 가게.Shop PK — NOT NULL
- 상품명 (name) — NOT NULL — NOT NULL
- 상품 설명 (description) — NULL
- 상품 가격 (price) — NULL
- 상품 카테고리 (category) — NOT NULL
- 상품 URL (product_url) — NOT NULL
- 상품 썸네일 (thumbnail_key) — NULL
- Field (created_at) — NOT NULL
- Field (updated_at) — NOT NULL
상품 이미지 (product_Image)
- ProductImagePK (id) — NOT NULL — 기본 키 — NOT NULL
- Product PK (product_id) — NOT NULL — 외래 키 → 상품.Product PK — NOT NULL
- 상품 이미지 링크 (image_url) — NOT NULL — NOT NULL
- 이미지 순서 (sortOrder) — NOT NULL
- 상품 object key (object_key) — NULL
- Field (created_at) — NOT NULL
- Field (updated_at) — NOT NULL
상품태그 (product_tag)
- ProductTag PK (id) — NOT NULL — 기본 키 — NOT NULL
- Product PK (product_id) — NOT NULL — 외래 키 → 상품.Product PK — NOT NULL
- Tag PK (tag_id) — NOT NULL — 외래 키 → 태그.Tag PK — NOT NULL
- Field (created_at) — NOT NULL
- Field (updated_at) — NOT NULL
유저 (user)
- User PK (id) — NOT NULL — 기본 키 — NOT NULL
- User Email (email) — NULL
- User Password (password) — NULL
- User Nickname (nickname) — NULL
- User Login Type (login_type) — NOT NULL
- User Provider Id (provider_id) — NOT NULL
- User Refresh Token (refresh_token) — NULL
- User Phone Number (phone_number) — NULL
- User Role (role) — NOT NULL
- User Profile Image (profile_image) — NOT NULL
- Field (created_at) — NOT NULL
- Field (updated_at) — NOT NULL
유저 레퍼런스 스크랩 (user_scrap_reference)
- User Scrap Reference PK (id) — 기본 키 — NOT NULL
- Reference PK (reference_id) — NOT NULL — 외래 키 → 레퍼런스.Reference PK — NOT NULL
- User PK (user_id) — NOT NULL — 외래 키 → 유저.User PK — NOT NULL
- created_at — NOT NULL — NOT NULL
- updated_at — NOT NULL — NOT NULL
유저 상품 스크렙 (user_scrap_product)
- User Scrap Product PK (id) — NOT NULL — 기본 키 — NOT NULL
- User PK (user_id) — NOT NULL — 외래 키 → 유저.User PK — NOT NULL
- Product PK (product_id) — NOT NULL — 외래 키 → 상품.Product PK — NOT NULL
- created_at — NOT NULL — NOT NULL
- updated_at — NOT NULL — NOT NULL
유저 온보딩 (user_onboarding)
- User Onboarding PK (id) — NOT NULL — 기본 키 — NOT NULL
- User PK (user) — NOT NULL — 외래 키 → 유저.User PK — NOT NULL
- 연령대 (age_group) — NOT NULL
- 성별 (gender) — NOT NULL
- 무드 타입 (mood_type) — NOT NULL
- 상품 타입 (product_type) — NOT NULL
- 공간 타입 (space_type) — NOT NULL
- Field (created_at) — NOT NULL
- Field (updated_at) — NOT NULL
유저 이메일 인증 (email_verification)
- Key (id) — NOT NULL — 기본 키 — NOT NULL
- Field (email) — NOT NULL
- Field (is_verified) — NOT NULL
- Field (verification_code) — NOT NULL
- Field (created_at) — NOT NULL
- Field (updated_at) — NOT NULL
유저 좋아요 항목 (user_like)
- User like PK (id) — NOT NULL — 기본 키 — NOT NULL
- User PK (user_id) — NOT NULL — 외래 키 → 유저.User PK — NOT NULL
- Product PK (product_id) — NOT NULL — 외래 키 → 상품.Product PK — NOT NULL
- Field (created_at) — NOT NULL
- Field (updated_at) — NOT NULL
유저 최근 본 상품 (user_view)
- User View PK (id) — NOT NULL — 기본 키 — NOT NULL
- User PK (user_id) — NOT NULL — 외래 키 → 유저.User PK — NOT NULL
- Product PK (product_id) — NOT NULL — 외래 키 → 상품.Product PK — NOT NULL
- Field (created_at) — NOT NULL
- Field (updated_at) — NOT NULL
장바구니 (user_cart_item)
- User View PK (id) — NOT NULL — 기본 키 — NOT NULL
- User PK (user) — NOT NULL — 외래 키 → 유저.User PK — NOT NULL
- Product PK (product) — NOT NULL — 외래 키 → 상품.Product PK — NOT NULL
- 수량 (quantity) — NOT NULL
- Field (created_at) — NOT NULL
- Field (updated_at) — NOT NULL
태그 (tag)
- Tag PK (id) — NOT NULL — 기본 키 — NOT NULL
- 태그명 (name) — NOT NULL — NOT NULL
- 태그 종류 (type) — NOT NULL
- Field (created_at) — NOT NULL
- Field (updated_at) — NOT NULL