빅밸류 과제 - 영수증 분석
테이블 (5)
거래 (Orders)
- 거래 고유 ID (order_id) — bigInt — 기본 키 — NOT NULL
- 고객 고유 ID (customer_id2) — bigInt — 외래 키 → 고객.고객 고유 ID
- 결제 수단 고유 ID (payment_method_id) — bigInt — 외래 키 → 결제 수단.결제 수단 고유 ID — NOT NULL
- 총 거래 금액 (total_price) — int
- 출자금 (investment) — int
- 생성일 (created_date) — datetime
- 수정일 (modified_date) — datetime
거래 상세 (Orders Detail)
- 거래 상세 고유 ID (order_detail_id) — bigInt — 기본 키 — NOT NULL
- 거래 고유 ID (order_id2) — bigInt — 외래 키 → 거래.거래 고유 ID — NOT NULL
- 고객 고유 ID (customer_id22) — bigInt — 외래 키 → 거래.고객 고유 ID
- 제품 고유 ID (product_id) — bigInt — 외래 키 → 제품.제품 고유 ID — NOT NULL
- 수량 (quantity) — int
- 생성일 (created_date) — datetime
- 수정일 (modified_date) — datetime
결제 수단 (Payment Method)
- 결제 수단 고유 ID (payment_method_id) — bigInt — 기본 키 — NOT NULL
- 결제 수단 (method) — enum
- 승인 금액 (transaction_charge) — int
- 승인 번호 (transaction_code) — bigInt
- 카드 번호 (card_number) — bigInt
- 매입사 (card_company) — string
- VAN사 (van_company) — string
- 할부 (installment) — int
- 생성일 (created_date) — datetime
- 수정일 (modified_date) — datetime
고객 (Customers)
- 고객 고유 ID (customer_id) — bigInt — 기본 키
- 고객 명 (name) — int
- 조합원 번호 (partner_code) — int
- 출자금 (investment) — int
- 생성일 (created_date) — datetime
- 수정일 (modifed_date) — datetime
제품 (Products)
- 제품 고유 ID (product_id) — bigInt — 기본 키 — NOT NULL
- 제품 명 (name) — string
- 제품 가격 (price) — int
- 부가세 (vat) — int
- 생성일 (created_date) — datetime
- 수정일 (modified_date) — datetime