Sprint Mart
Tables (5)
customer (고객)
- 고객아이디 (customer_id) — int — Primary key — NOT NULL
- 마트아이디 (mart_id) — int — Foreign key → mart.마트아이디 — NOT NULL
- 고객명 (customer_name) — text
- 성별 (gender) — text
- 생년월일 (birthday) — text
- 전화번호 (tlno) — text
- 고객등급 (grade) — text
mart (마트)
- 마트아이디 (mart_id) — int — Primary key — NOT NULL
- 마트명 (mart_name) — text
- 주소 (address) — text
- 전화번호 (tel_number) — text
order (주문)
- 주문아이디 (order_id) — int — Primary key — NOT NULL
- 고객아이디 (customer_id) — int — Foreign key → customer.고객아이디 — NOT NULL
- 마트아이디 (mart_id) — int — Foreign key → mart.마트아이디 — NOT NULL
- 총 주문수량 (total_amount) — int
- 총 주문금액 (total_price) — int
order_detail (주문상세)
- 주문상세아이디 (order_detail_id) — int — Primary key — NOT NULL
- 주문아이디 (order_id) — int — Foreign key → order.주문아이디 — NOT NULL
- 상품아이디 (product_id) — int — Foreign key → product.상품아이디 — NOT NULL
- 주문날짜 (order_date) — datetime
- 주문수량 (amount) — int
product (상품)
- 상품아이디 (product_id) — int — Primary key — NOT NULL
- 마트아이디 (mart_id) — int — Foreign key → mart.마트아이디 — NOT NULL
- 상품명 (product_name) — text
- 상품종류 (category) — text
- 단가 (price) — int
- 제조공장 (manufactur) — text