carrot-market
Tables (10)
BADGE (뱃지)
- Unique_id (고유아이디) — text — Primary key — NOT NULL
- display (뱃지명) — text
- image (이미지) — 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
- message (채팅메시지) — text
- create_at (생성일) — date
- 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
- subject_category_detail (게시글주제) — CATEGORY_DETAIL
- create_at (생성일) — Date
- title (제목) — text
- contents (내용) — text
- neighborhood_type (동네) — NEIGHBORHOOD_TYPE
- view_count (조회수) — number
- rank (조회수+댓글수) — number
Product (상품)
- Unique_id (고유아이디) — 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_message (채팅메시지) — ChatMessage — 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 (동네생활 카테고리 상세)
- Unique_id (고유아이디) — text — Primary key — NOT NULL
- display (카테고리명) — text
- category (동네생활 카테고리) — SUBJECT_CATEGORY — Foreign key → SUBJECT_CATEGORY.Unique_id — NOT NULL
User (유저)
- Unique_id (고유아이디) — Primary key — NOT NULL
- email (이메일) — text
- nickname (닉네임) — text
- neighborhood (동네) — List<NEIGHBORHOOD_TYPE>
- profile_image (프로필이미지) — image
- badge (뱃지) — List<BADGE>