carrot-market

Tables (10)

BADGE (뱃지)

  • Unique_Id (고유 아이디) — text — Primary key — NOT NULL
  • display (뱃지명) — text
  • icon (아이콘) — image
  • condition (조건) — text

Chat (채팅)

  • Unique_Id (고유 아이디) — text — Primary key — NOT NULL
  • user (채팅 참여 유저) — List<User> — Foreign key → User.Unique_Id — NOT NULL
  • product (상품) — Product — Foreign key → Product.Unique_Id — NOT NULL
  • is_read (채팅 읽음 여부) — boolean
  • create_at (생성일) — date

ChatMessage (채팅메세지)

  • Unique_Id (고유 아이디) — text — Primary key — NOT NULL
  • create_at (생성일) — date
  • message (채팅메세지) — text
  • chat (채팅방) — Chat — Foreign key → Chat.Unique_Id — NOT NULL
  • image (채팅이미지) — image

Comment (댓글)

  • Unique_Id (고유 아이디) — text — Primary key — NOT NULL
  • user (작성자) — User — Foreign key → User.Unique_Id — NOT NULL
  • create_at (생성일) — date
  • contents (내용) — text
  • 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
  • create_at (생성일) — date
  • neighborhood (동네) — NEIGHBORHOOD_TYPE
  • subject_category_detail (게시글주제) — SUBJECT_CATEGORY_DETAIL
  • title (제목) — text
  • contents (내용) — text
  • view_count (조회수) — number
  • rank (조회수 + 댓글수) — number

Product (상품)

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

Promise (약속잡기)

  • Unique_Id (고유 아이디) — text — Primary key — NOT NULL
  • create_at (생성일) — date
  • chat_massage (채팅메세지) — ChatMassage — 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
  • subject_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>