shoppingmall
테이블 (8)
리뷰 (Reviews)
- Key (ReviewID) — int — 기본 키 — NOT NULL — auto-increment
- Field (Rating) — int
- Field (Comments) — text
- Key (ProductID) — int — 외래 키 → 제품.Key — NOT NULL
- Key (UserID) — varchar(50) — 외래 키 → 사용자.Key — NOT NULL
사용자 (Users)
- Key (UserID) — varchar(50) — 기본 키 — NOT NULL
- Field (UserName') — varchar(50) — NOT NULL
- Field (UserPassword) — varchar(200) — NOT NULL
- Field (UserBirth) — varchar(8) — NOT NULL
- Field (UserAuth) — varchar(10) — NOT NULL
- Field (UserPoinr) — int — NOT NULL
- Field (CreatedAt) — datetime — NOT NULL
- Field (LatestLoginAt) — datetime
장바구니 (ShoppingCart)
- Key (RecordID) — int — 기본 키 — NOT NULL — auto-increment
- Field (CartID) — varchar(150)
- Field (Quantity) — int
- Date (DateCreated) — datetime — NOT NULL
- Key (ProductID) — int — 외래 키 → 제품.Key — NOT NULL
제품 (Product)
- Key (ProductID) — int — 기본 키 — NOT NULL — auto-increment
- CategoryID — int — 외래 키 → 카테고리.CategoryID — NOT NULL
- Field (ModelNumber) — VARCHAR(10)
- Field (ModelName) — varchart(120)
- Field (ProductImage) — varchar(30)
- Field (UnitCost) — decimal(15.0)
- Field (Description) — text
주문 (Orders)
- Key (OrderID) — int — 기본 키 — NOT NULL — auto-increment
- Field (OrderDate) — Datetime
- Field (ShipDate) — Datetime
- Key (UserID) — varchar(50) — 외래 키 → 사용자.Key — NOT NULL
주문상세 (OrderDetails)
- Key (ProductID) — int — 외래 키 → 제품.Key — NOT NULL
- Key (OrderID) — int — 외래 키 → 주문.Key — NOT NULL
- Field (Quantity) — int
- Field (UnitCost) — decimal(15)
- Key (AddressID) — int — 외래 키 → 주소.Key — NOT NULL
주소 (Address)
- Key (AddressID) — int — 기본 키 — NOT NULL — auto-increment
- Field (AddressName) — varchar(255)
- Key (UserID) — varchar(50) — 외래 키 → 사용자.Key — NOT NULL
카테고리 (Categories)
- CategoryID — int — 기본 키 — NOT NULL — auto-increment
- Field (CategoryName) — varchar(50)