test
테이블 (4)
사용자 (user)
- 사용자 고유 아이디 (id) — bigint — 기본 키 — NOT NULL — Auto Increment
- 로그인 아이디 (Field) — varchar(50) — NOT NULL
- 비밀번호 (password) — varchar(50) — NOT NULL
- 나이 (age) — int
- 성별 (gender) — varchar(10)
- 이름 (name) — varchar(20)
- 휴대폰번호 (phone_number) — varchar(15)
- 기업일자 (created_dt) — date
상품 (product)
- 상품 고유 아이디 (id) — bigint — 기본 키 — NOT NULL — Auto Increment
- 상품명 (product_name) — varchar(500) — NOT NULL
- 가격 (price) — int — NOT NULL
- 브랜드 (brand) — varchar(200)
- 상품설명 (product_description) — varchar(4000)
- 등록일 (created_dt) — date
주문 (order)
- 주문 고유 아이디 (id) — bigint — 기본 키 — NOT NULL — Auto Increment
- 사용자 고유 아이디 (user_id) — bigint — 외래 키 → 사용자.사용자 고유 아이디 — NOT NULL — Auto Increment
- 주문날짜 (order_Dt) — date
주문상세 (order_detail)
- 주문 상세 고유 아이디 (id) — bigint — 기본 키 — NOT NULL — Auto Increment
- 주문 고유 아이디 (order_id) — bigint — 외래 키 → 주문.주문 고유 아이디 — NOT NULL — Auto Increment
- 상품 고유 아이디 (id2) — bigint — 외래 키 → 상품.상품 고유 아이디 — NOT NULL — Auto Increment
- 개수 (cnt) — int