carrot-market

Tables (11)

BADGE (벳지)

  • Unique_id (고유아이디) — text — Primary key — NOT NULL
  • display (벳지명) — text
  • condition (획득조건) — text
  • image (이미지) — image

Chat (채팅방)

  • Unique_id (고유아이디) — text — Primary key — NOT NULL
  • user (유저) — List<User> — Foreign key → Product.Unique_id — NOT NULL
  • product (상품) — Product — Foreign key → User.Unique_id — NOT NULL
  • is_read (읽음여부) — Boolean
  • created_at (생성날짜) — Date

ChatMessage (채팅메세지)

  • Unique_id (고유아이디) — text — Primary key — NOT NULL
  • message (메세지) — text
  • created_at (생성날짜) — Date
  • image (채팅방이미지) — image
  • chat (채팅방) — Chat — Foreign key → Chat.Unique_id — NOT NULL

Comment (댓글)

  • Unique_id (고유아이디) — text — Primary key — NOT NULL
  • user (작성자) — User — Foreign key → User.Unique_id — NOT NULL
  • content (내용) — text
  • created_at (생성일자) — Date
  • neighborhood (동네생활) — Neighborhood — Foreign key → Neighborhood.Unique_id — NOT NULL

Neighborhood (동네생활)

  • Unique_id (고유아이디) — text — Primary key — NOT NULL
  • user (작성자) — User — Foreign key → User.Unique_id — NOT NULL
  • content (내용) — text
  • title (제목) — text
  • subject_category_detail (게시물주제) — SUBJECT_CATEGORY_DETAIL
  • created_at (생성일자) — Date
  • neighborhood_type (동네타입) — NEIGHBORHOOD_TYPE
  • view_count (조회수) — number
  • rank (조회수+댓글) — number

PRODUCT_STATE (CopyOf동네생활 카테고리 상세)

  • Unique_id (고유아이디) — text — Primary key — NOT NULL
  • display (판매상태) — text

Product (상품)

  • Unique_id (고유아이디) — text — Primary key — NOT NULL
  • user_like (좋아요) — List<User> — Foreign key → User.Unique_id — NOT NULL
  • product_image (상품이미지) — List<image>
  • title (제목) — text
  • description (설명) — text
  • category (카테고리) — CATEGORY_TYPE
  • price (가격) — number
  • created_at (생성일자) — Date
  • product_state (상품상태) — PRODUCT_STATE
  • seller (판매자) — User — Foreign key → User.Unique_id — NOT NULL
  • buyer (구매자) — User — Foreign key → User.Unique_id — NOT NULL
  • neighborhood_type (동네타입) — NEIGHBORHOOD_TYPE

Promise (약속)

  • Unique_id (고유아이디) — text — Primary key — NOT NULL
  • created_at (생성날짜) — Date
  • chat_message (채팅메세지) — text — Foreign key → ChatMessage.Unique_id — NOT NULL
  • date (날짜) — Date
  • time (시간) — Date
  • place (장소) — text

SUBJECT_CATEGORY (동네생활 카테고리)

  • Unique_id (고유아이디) — text — Primary key — NOT NULL
  • display (카테고리명) — text
  • icon (아이콘) — image

SUBJECT_CATEGORY_DETAIL (동네생활 카테고리 상세)

  • Unique_id (고유아이디) — text — Primary key — NOT NULL
  • display (카테고리명) — text
  • category (동네생활 카테고리) — SUBJECT_CATEGORY — Foreign key → SUBJECT_CATEGORY.Unique_id — NOT NULL

User (유저)

  • Unique_id (고유아이디) — text — Primary key — NOT NULL
  • email (이메일) — text
  • nickname (닉네임) — text
  • neighborhood (동네) — NEIGHBORHOOD_TYPE
  • profile_image (프로필이미지) — image
  • badge (뱃지) — List<BADGE>