DMERD
테이블 (5)
거래 (trade)
- id — uuid — 기본 키 — NOT NULL
- 상품 (product_id) — uuid — 외래 키 → 상품.id — NOT NULL
상품 (product)
- id — bigint — 기본 키 — NOT NULL
- default_price — unsigned_int — NOT NULL
- 판매자 (seller_id) — 외래 키 → 유저.id — NOT NULL
채팅메시지 (chat_message)
- id — uuid — 기본 키 — NOT NULL
- 채팅방 (chat_room_id) — uuid — 외래 키 → 채팅방.id — NOT NULL
- sender_id — uuid — NOT NULL
- chat_content — varchar — NOT NULL
- create_date — datetime — NOT NULL
- modified_date — datetime — NOT NULL
채팅방 (chat_room)
- id — bigint — 기본 키 — NOT NULL
- create_date — datetime — NOT NULL
- modified_date — datetime — NOT NULL
- 거래 성립 여부 (check_transaction) — tinyint(1) — NOT NULL — 0(false), 1(true)
- 상품 id (product_id) — bigint — 외래 키 → 상품.id — NOT NULL
- 구매자 id (buyer_id) — varchar — 외래 키 → 유저.id — NOT NULL