Read-Circle
Tables (16)
Book (도서)
- 책 id (id) — int — Primary key — NOT NULL — Auto Increment
- 제목 (title) — VARCHAR(50) — NOT NULL
- 카테고리 (category) — ENUM — NOT NULL
- 저자 (author) — VARCHAR(50) — NOT NULL
- 출판사 (publisher) — VARCHAR(50) — NOT NULL
- 책 설명 (description) — TEXT — NOT NULL
- 도서 번호 (isbn) — VARCHAR(50) — NOT NULL
- 출판 날짜 (publishDate) — VARCHAR(30) — NOT NULL
- 책 사진 (thumbnail) — VARCHAR(100) — NOT NULL
- 책 상태 (bookCondition) — ENUM — NOT NULL
- 가격 (price) — int — NOT NULL
- 판매 여부 (isForSale) — boolean — NOT NULL
- 처리 여부 (bookProcess) — ENUM — NOT NULL
- 생성 일자 (createdAt) — DATETIME — NOT NULL
- 수정 일자 (updatedAt) — DATETIME — NOT NULL
Cart (장바구니)
- 장바구니 id (cartId) — int — Primary key — NOT NULL
- 회원 id (userId) — int — Foreign key → Users.회원 id — NOT NULL — Auto Increment
- 담은 날짜 (added_date) — DATETIME — NOT NULL
CartItem (장바구니 상품)
- 장바구니 상품 id (cartItemId) — int — Primary key — NOT NULL
- 장바구니 id (cartId) — int — Foreign key → Cart.장바구니 id — NOT NULL
- 책 id (bookId) — int — Foreign key → Book.책 id — NOT NULL — Auto Increment
ChatMessage (채팅 메시지)
- 채팅 메시지 id (id) — int — Primary key — NOT NULL
- 채팅 메시지 (message) — VARCHAR(500) — NOT NULL
- 생성 일자 (created_at) — DATETIME — NOT NULL
ChatRoom (채팅방)
- 채팅방 id (id) — int — Primary key — NOT NULL — Auto Increment
- 생성 일자 (created_at) — DATETIME — NOT NULL
- Field — int
- Field2
Comment (댓글)
- 댓글 id (comment_id) — bigint — Primary key — NOT NULL
- 게시글 id (post_id) — int — Foreign key → Post.게시글 id — NOT NULL — Auto Increment
- 회원 id (user_id) — int — Foreign key → Users.회원 id — NOT NULL — Auto Increment
- 댓글 내용 (comment_content) — VARCHAR(255) — NOT NULL
- 생성 일자 (created_at) — DATETIME — NOT NULL
- 수정 일자 (updated_at) — DATETIME — NOT NULL
Delivery (배송)
- 배송 id (delivery_id) — int — Primary key — NOT NULL
- 수령인 (recipient_name) — VARCHAR(20) — NOT NULL
- 우편번호 (postalCode) — VARCHAR(20) — NOT NULL
- 도로명 주소 (road_name_address) — VARCHAR(100) — NOT NULL
- 상세 주소 (detail_address) — VARCHAR(100) — NOT NULL
- 택배사 (delivery_company) — VARCHAR(20)
- 송장번호 (invoice number) — VARCHAR(20)
- 배송 상태 (deliveryStatus) — ENUM — NOT NULL
Notification (알림)
- 알림 id (notification_id) — bigint — Primary key — NOT NULL
- 아이디(unique) (user_id) — VARCHAR(40) — Foreign key → Users.회원 id — NOT NULL — Auto Increment
- 알림 타입 (notification_type) — ENUM — NOT NULL
- 알림 내용 (message) — VARCHAR(255) — NOT NULL
- 생성 일자 (created_at) — DATETIME — NOT NULL
Order (주문 내역)
- 주문 id (orderId) — int — Primary key — NOT NULL
- 구매자 id (buyerId) — int — Foreign key → Users.회원 id — NOT NULL — Auto Increment
- 배송 id (deliveryId) — int — Foreign key → Delivery.배송 id — NOT NULL
- 주문 상태 (orderStatus) — ENUM — NOT NULL
- 총 합계 (totalPrice) — int — NOT NULL
- 주문 날짜 (orderDate) — DATETIME — NOT NULL
OrderArchive (취소된 주문 내역)
- 주문 아카이브 id (id) — int — Primary key — NOT NULL
- 주문자 고유 번호 (userId) — int — NOT NULL
- 배송 id (deliveryId) — int — NOT NULL
- 주문 상태 (orderStatus) — ENUM — NOT NULL
- 총 가격 (totalPrice) — int — NOT NULL
- 주문 일시 (orderDate) — DATETIME — NOT NULL
- 취소 일시 (cancelledDate) — DATETIME — NOT NULL
Order_Item (주문 상품)
- 주문 상품 id (id) — int — Primary key — NOT NULL
- 책 id (bookId) — int — Foreign key → Book.책 id — NOT NULL — Auto Increment
- 주문 id (orderId) — int — Foreign key → Order.주문 id — NOT NULL
- 주문 금액 (orderPrice) — int — NOT NULL
Payment (결제)
- 결제 id (payment_id) — int — Primary key — NOT NULL
- 주문 id (order_id) — int — Foreign key → Order.주문 id — NOT NULL
- 결제 수단 (payment_method) — ENUM — NOT NULL
- 결제 날짜 (payment_date) — DATETIME — NOT NULL
- 결제 상태 (paymentStatus) — ENUM — NOT NULL
- 결제 고유번호 (paymentUid) — int
Post (게시글)
- 게시글 id (post_id) — int — Primary key — NOT NULL — Auto Increment
- 사용자 id (user_id) — int — Foreign key → Users.회원 id — NOT NULL — Auto Increment
- 사용자 닉네임 (nickname) — VARCHAR(255) — NOT NULL
- 제목 (title) — VARCHAR(100) — NOT NULL
- 내용 (content) — TEXT
- 가격 (price) — INT — NOT NULL
- 책 카테고리 (category) — ENUM — NOT NULL
- 책 상태 (condition) — ENUM — NOT NULL
- 책 이미지 (book_image) — TEXT — NOT NULL
- 책 API 이미지 (book_api_image) — TEXT — NOT NULL
- 거래 방식 (trade_type) — ENUM — NOT NULL
- 거래 상태 (trade_status) — BOOLEAN — NOT NULL
- isbn — VARCHAR(20) — NOT NULL
- 저자 (author) — VARCHAR(255) — NOT NULL
- 출판사 (publisher) — VARCHAR(255) — NOT NULL
- 출판일 (publishDate) — DATETIME — NOT NULL
- 생성 일자 (post_created_at) — DATETIME — NOT NULL
- 수정 일자 (post_updated_at) — DATETIME — NOT NULL
Seller (판매정보)
- 판매정보 id (seller_id) — bigInt — Primary key — NOT NULL
- 아이디(unique) (user_id) — VARCHAR(40) — Foreign key → Users.회원 id — NOT NULL — Auto Increment
- 책 id (book_id) — int — Foreign key → Book.책 id — NOT NULL — Auto Increment
- 계좌 은행 (bank) — VARCHAR(20) — NOT NULL
- 계봐 번호 (account) — VARCHAR(20) — NOT NULL
- 계좌 소유자 (account_owner) — VARCHAR(20) — NOT NULL
- 판매액 (price) — int
- 생성 일자 (created_at) — DATETIME — NOT NULL
Users (회원)
- 회원 id (user_no) — int — Primary key — NOT NULL — Auto Increment
- 아이디(unique) (user_id) — VARCHAR(40) — NOT NULL — 계정
- 비밀번호 (password) — VARCHAR(40) — NOT NULL
- 이메일 (email) — VARCHAR(40) — NOT NULL
- 닉네임 (nickname) — VARCHAR(40) — NOT NULL
- 권한 (role) — ENUM — NOT NULL
- 프로필사진 (profile_Image_url) — VARCHAR(50) — NOT NULL
- 생성 일자 (created_at) — DATETIME — NOT NULL
- 수정 일자 (updated_at) — DATETIME — NOT NULL
- 주소 (address) — VARCHAR(100)
- 상세 주소 (detail_address) — VAHRCHAR(100)
- 우편 번호 (zip_code) — VARCHAR(20)
Wishlist (관심 상품)
- 관심 상품 id (id) — int — Primary key — NOT NULL
- 생성 일자 (created_at) — DATETIME — NOT NULL