OrderProcessing2024산대

테이블 (5)

Customer

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (FirstName) — nvarchar(40)
  • Field (LastName) — nvarchar(40)
  • Field (City) — nvarchar(40)
  • Field (Country) — nvarchar(40)
  • Field (Phone) — nvarchar(20)

Untitled (_Order)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (OrderDate) — date
  • Field (OrderNumber) — nvarchar(10)
  • Field (TotalAmount) — int
  • Key (CustomerId) — int — 외래 키 → Customer.Key — NOT NULL

Untitled (OrderItem)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (ProductId) — int — 외래 키 → Untitled.Key — NOT NULL
  • Key (OrderId) — int — 외래 키 → Untitled.Key — NOT NULL
  • Field (Quantity) — int
  • Field (UnitPrice) — int

Untitled (Product)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (ProductName) — nvarchar(50)
  • Field (UnitPrice) — int
  • Field (Package) — nvarchar(30)
  • Field

Untitled (Supplier)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (CompanyName) — nvarchar(40)
  • Field
  • Key (SupplierId) — int — 외래 키 → Untitled.Key — NOT NULL