BoardProject
테이블 (6)
상품 (Product)
- 상품 id (id) — Integer — 기본 키 — NOT NULL
- 프로모션 id (promotion_id) — ENUM — 외래 키 → 프로모션.프로모션 id — NOT NULL
- 상품명 (name) — string
- 상품가격 (price) — integer
장바구니 (Cart)
- 장바구니 id (id) — Integer — 기본 키 — NOT NULL
- 제품 id (product_id) — Integer — 외래 키 → 상품.상품 id — NOT NULL
- 구매 갯수 (quantity) — integer
재고 (Inventory)
- 재고 아이디 (id) — Integer — 기본 키 — NOT NULL
- 제품 id (product_id) — Integer — 외래 키 → 상품.상품 id — NOT NULL
- 재고수량 (quantity) — Integer
- 반입일자 (created_at) — LocalDate
주문내역 (Order)
- 주문내역 id (order_id) — Integer — 기본 키 — NOT NULL
- 주문일자 (order_date) — LocalDate
- 총가격 (total_price) — Integer
주문제품 (Order_Product)
- 주문제품 id (id) — Integer — 기본 키 — NOT NULL
- 제품 Id (product_id) — Integer — 외래 키 → 상품.상품 id — NOT NULL
- 주문내역 id (order_id) — Integer — 외래 키 → 주문내역.주문내역 id — NOT NULL
- 재품 수량 (amount) — Integer
프로모션 (Promotion)
- 프로모션 id (id) — integer — 기본 키 — NOT NULL
- 프로모션명 (name) — String
- 구입개수 (buy_num) — integer
- 서비스 개수 (get_num) — integer
- 시작일자 (start_date) — LocalDate
- 종료일자 (end_date) — LocalDate