Buying-server
테이블 (10)
게시물 (post)
- 게시물id (id) — notnull — 기본 키 — NOT NULL
- 작성자 (user_id) — notnull — 외래 키 → 유저.회원id — NOT NULL
- 제목 (title) — notnull
- 썸네일 (thumbnail_image_url) — notnull
- 조회수 (view_count) — notnull
- 상태 (status) — notnull
- 생성일자 (created_at) — notnull
- 삭제일자 (deleted_at) — null
- 가격 (price) — notnull
게시물_상세내용 (post_detail)
- 이미지id (id) — notnull — 기본 키 — NOT NULL
- 게시물id (post_id) — notnull — 외래 키 → 게시물.게시물id — NOT NULL
- 상세내용 (content) — notnull
- 제품수량 (quantity) — notnull
- 이미지순서 (image_seq) — notnull
게시물이미지 (post_image)
- 이미지id (id) — 기본 키 — NOT NULL
- 게시물id (post_id) — notnull — 외래 키 → 게시물.게시물id — NOT NULL
- 이미지 순서 (imageOrder)
- 이미지 (imageUrl) — notnull
결제 (Payment)
- 결제id (id) — notnull — 기본 키 — NOT NULL
- 주문id (order_id) — notnull — 외래 키 → 주문.주문id — NOT NULL
- 가맹점 키 (toss_order_id) — notnull
- toss_payment_키 (toss_payment_key) — notnull
- 결제요청일시 (requested_at) — notnull
- 승인일시 (approved_at) — notnull
- 결제방법 (toss_payment_method) — notnull
- 결제상태 (toss_payment_status) — notnull
메세지 읽음 (Chat_ReadStatus)
- id — notnull — 기본 키 — NOT NULL
- 채팅방id (chat_id) — notnull — 외래 키 → 채팅방.채팅방id — NOT NULL
- 게시물id (post_id) — notnull — 외래 키 → 채팅방.게시물id — NOT NULL
- 회원id (user_id) — notnull — 외래 키 → 채팅방.회원id — NOT NULL
- 읽음여부 (isRead) — notnull
알람 (notification)
- 알람id (id) — 기본 키 — NOT NULL
- 게시물id (id4) — null — 외래 키 → 게시물.게시물id — NOT NULL
- 채팅방id (chatroom_id) — null — 외래 키 → 채팅방.채팅방id — NOT NULL
- 게시물id (post_id) — null — 외래 키 → 채팅방.게시물id — NOT NULL
- 주문id (order_id) — null — 외래 키 → 주문.주문id — NOT NULL
- 제목 (title) — notnull
- 내용 (content) — notnull
- 타입 (notification_type) — notnull
- 조회여부 (is_read) — notnull
- 생성일시 (created_at) — notnull
- 회원id (id2) — notnull — 외래 키 → 채팅방.회원id — NOT NULL
- 회원id (id22) — notnull — 외래 키 → 주문.회원id — NOT NULL
유저 (Member)
- 회원id (id) — notnull — 기본 키 — NOT NULL
- 이메일 (email) — notnull
- 닉네임 (nickname) — notnull
- 패스워드 (password) — notnull
- 프로필이미지 (profile_image_url) — notnull
- 회원상태 (status) — notnull
- 생성일시 (created_at) — notnull
- 수정일시 (updated_at) — null
- 삭제일시 (deleted_at) — null
- 소셜로그인종류 (type) — notnull
- 소셜로그인Id (soclal_id) — notnull
주문 (order)
- 주문id (id) — notnull — 기본 키 — NOT NULL
- 회원id (member_id) — notnull — 외래 키 → 유저.회원id — NOT NULL
- 주문번호 (orderId)
- 상품명 (productName) — notnull
- 수량 (quantity) — notnull
- 결제금액 (TotalAmount) — notnull
- 결제종류 (type) — notnull
- 주문상태 (status) — notnull
- 생성일자 (created_at) — notnull
- 게시물id (post_id)
채팅방 (chat_room)
- 채팅방id (id) — notnull — 기본 키 — NOT NULL
- 게시물id (post_id) — notnull — 외래 키 → 게시물.게시물id — NOT NULL
- 회원id (user_id) — notnull — 외래 키 → 유저.회원id — NOT NULL
- 타입 (room_type) — notnull
- 생성일시 (created_at) — notnull
- 수정일시 (updated_at) — null
- 퇴장 시각 (leaved_at) — notnull
채팅방_참여자 (chat_participant)
- id — notnull — 기본 키 — NOT NULL
- 채팅방id (chat_id) — notnull — 외래 키 → 채팅방.채팅방id — NOT NULL
- 게시물id (post_id) — notnull — 외래 키 → 채팅방.게시물id — NOT NULL
- 회원id (user_id) — notnull — 외래 키 → 채팅방.회원id — NOT NULL