fruites_store_service
Tables (6)
Order (주문)
- order_id (주문 PK) — BigInt — Primary key — NOT NULL
- user_id (사용자 PK) — BigInt — Foreign key → User.user_id — NOT NULL — 사용자 PK
- address (배송지) — Str
- delivery_cost (배송비) — Int
- total_price (총 가격) — Int
- status (주문상태) — Str
Payment (결제)
- payment_id (결제 PK) — BigInt — Primary key — NOT NULL
- order_id (주문 PK) — BigInt — Foreign key → Order.order_id — NOT NULL
- price (결제가격) — Int
- method (결제방법) — Str
- status (결제상태) — Str
Price (가격)
- price_id (가격 PK) — BigInt — Primary key — NOT NULL — 상품 가격 PK
- fruit_id (상품 PK) — BigInt — Foreign key → Product.fruit_id — NOT NULL — 상품 PK
- unit (판매단위) — Str — 판매 단위
- price (가격) — Int — 가격
- stock (재고) — Int — 재고 개수
PriceOrder (주문상품)
- order_id (주문 PK) — BigInt — Foreign key → Order.order_id — NOT NULL
- price_id (가격 PK) — BigInt — Foreign key → Price.price_id — NOT NULL — 상품 가격 PK
Product (상품)
- fruit_id (상품 PK) — BigInt — Primary key — NOT NULL — 상품 PK
- name (이름) — Str — 이름
- description (설명) — Str — 설명
- address (판매지) — Str — 판매지
- delivery_cost (배송비) — Int — 기본배송비
- status (판매상태) — Str — 판매상태
User (사용자)
- user_id (사용자 PK) — BigInt — Primary key — NOT NULL — 사용자 PK
- username (아이디) — Str — 아이디
- password (비밀번호) — Str — 비밀번호
- type (사용자유형) — Str