중고거래 커뮤니티
테이블 (7)
거래 이력 (transaction_history)
- 거래 이력 아이디 (transaction_history_id) — 기본 키 — NOT NULL
- 사용자 아이디 (user_id2) — 외래 키 → 사용자.사용자 아이디 — NOT NULL
- 거래 대상 유저 아이디 (target_user_id)
- 거래 완료일 (transaction_end_date)
- 거래 약속 성립일 (transaction_establish_date)
- 받은 거래 점수 (recive_point)
- 보낸 거래 점수 (send_point)
거래약속 (transaction_promise)
- 거래 약속 아이디 (transaction_promise_id) — 기본 키 — NOT NULL
- 대화방 아이디 (chat_room_id) — 외래 키 → 대화방.대화방 아이디 — NOT NULL
- 약속시간 (transaction_promise_date)
- 약속 장소 (transaction_promise_place)
- 거래 약속 상태 (transaction_promise_type)
게시글 (notice_list)
- 게시글 번호 (notice_number) — 기본 키 — NOT NULL
- 작성자 (user_id) — 외래 키 → 사용자.사용자 아이디 — NOT NULL
- 게시글 제목 (notice_title)
- 게시글 내용 (notice_content)
- 이미지 아이디 (attachment_image_id)
- 작성 날짜 (register_date)
- 수정 날짜 (modify _date)
- 거래 상태 (transaction_type)
답글 (reply_list)
- 답글 번호 (reply_number) — 기본 키 — NOT NULL
- 댓글 번호 (review_number) — 외래 키 → 댓글.댓글 번호 — NOT NULL
- 게시글 번호 (notice_number) — 외래 키 → 댓글.게시글 번호 — NOT NULL
- 작성자 (user_id) — 외래 키 → 댓글.작성자 — NOT NULL
- 답글 내용 (reply_content)
- 작성자 (reply_register)
- 작성 날짜 (reply_register_date)
- 수정 날짜reply (reply_modify_date)
대화방 (chat_room)
- 대화방 아이디 (chat_room_id) — 기본 키 — NOT NULL
- 거래제안 횟수 (request_count)
- 구매자 아이디 (buyer_id) — 외래 키 → 사용자.사용자 아이디 — NOT NULL
- 판매자 아이디 (seller_id) — 외래 키 → 사용자.사용자 아이디 — NOT NULL
댓글 (review_list)
- 댓글 번호 (review_number) — 기본 키 — NOT NULL
- 게시글 번호 (notice_number) — 외래 키 → 게시글.게시글 번호 — NOT NULL
- 작성자 (user_id) — 외래 키 → 게시글.작성자 — NOT NULL
- 댓글 내용 (review_content)
- 작성자 (review_register)
- 작성 날짜 (review_register_date)
- 수정 날짜 (review_modify_date)
사용자 (user_infomation)
- 사용자 아이디 (user_id) — 기본 키 — NOT NULL
- 비밀번호 (user_password)
- 사용자 이름 (user_name)
- 전화번호 (phone_number)
- 거래 점수 (transaction_point)