사자같이
테이블 (6)
Product (공구상품)
- id — number — 기본 키 — NOT NULL
- host_id (호스트유저) — number — 외래 키 → User.id — NOT NULL
- topic (제목) — string
- content (내용) — string
- people_count (인원) — number
- close_time (마감시간) — number
- category (카테고리) — string
User (사용자)
- id — number — 기본 키 — NOT NULL
- nickname (유저이름) — string
- point (포인트) — number
chat (채팅)
- product_id (상품아이디) — number — 외래 키 → Product.id — NOT NULL
- host_id (호스트유저) — number — 외래 키 → Product.host_id — NOT NULL
- message (메세지) — string
- nickname (보낸유저이름) — string
- time (보낸시간) — datetime
favorite (찜하기)
- user_id (유저아이디) — number — 외래 키 → User.id — NOT NULL
- id (id3) — number — 외래 키 → Product.id — NOT NULL
- host_id (호스트유저) — number — 외래 키 → Product.host_id — NOT NULL
participate (공구참여)
- user_id (공구참여유저) — number — 외래 키 → User.id — NOT NULL
- product_id (상품id) — number — 외래 키 → Product.id — NOT NULL
- host_id (호스트유저) — number — 외래 키 → Product.host_id — NOT NULL
- complete (거래완료) — boolean
- point (공구에 낸 포인트) — number
url (상품url)
- product_id — number — 외래 키 → Product.id — NOT NULL
- host_id (호스트유저) — number — 외래 키 → Product.host_id — NOT NULL
- url (주소) — string