중고시장

테이블 (4)

Buy

  • Id (Key) — int — 기본 키 — NOT NULL
  • BuyerId (Key2) — int — 외래 키 → User.아이디 — NOT NULL
  • Id (Key3) — int — 외래 키 → Product.아이디 — NOT NULL
  • ProductId (Key22) — int — 외래 키 → Product.카테고리아이디 — NOT NULL

Category

  • 아이디 (Id) — int — 기본 키 — NOT NULL
  • 카테고리 (Category) — String — NOT NULL
  • Field

Product

  • 아이디 (Id) — int — 기본 키 — NOT NULL
  • 카테고리아이디 (ProductCateId) — int — 외래 키 → Category.아이디 — NOT NULL
  • 상품명 (ProductName) — String — NOT NULL
  • 상품정보 (ProductDetail) — String — NOT NULL
  • 가격 (ProductPrice) — int — NOT NULL
  • 판매자 아이디 (ProductSellerId) — int — 외래 키 → User.아이디 — NOT NULL

User

  • 아이디 (Id) — int — 기본 키 — NOT NULL
  • 닉네임 (NickName) — String — NOT NULL
  • 이름 (Name) — String — NOT NULL
  • 비밀번호 (Password) — String — NOT NULL
  • 등급 (Member) — String — NOT NULL