practice

Tables (5)

Untitled (Customer)

  • Key (id) — int — Primary key — NOT NULL
  • Field (FirstName) — nvarchar(30)
  • Field (LastName) — nvarchar(30)
  • Field (phone) — nvarchar(30)
  • Field (city) — nvarchar(30)
  • Field (country) — nvarchar(30)

Untitled (_Order)

  • Key (id) — int — Primary key — NOT NULL
  • Key (custimerid) — int — Foreign key → Untitled.Key — NOT NULL
  • Field (orderdate) — datetime2
  • Field (totalamount) — decimal
  • Field (ordername) — nvarchar(30)

Untitled (Product)

  • Key (id) — int — Primary key — NOT NULL
  • Key (supplierid) — int — Foreign key → Untitled.Key — NOT NULL
  • Field (productname) — nvarchar(30)
  • Field (unitprice) — decimal

Untitled (OrderItem)

  • Key (id) — int — Primary key — NOT NULL
  • Key (productid) — int — Foreign key → Untitled.Key — NOT NULL
  • Key (orderid) — int — Foreign key → Untitled.Key — NOT NULL
  • Field (unitprice) — decimal
  • Field (quantity) — int

Untitled (Supplier)

  • Key (id) — int — Primary key — NOT NULL
  • Field (companyname) — nvarchar(30)
  • Field (city) — nvarchar(30)
  • Field (country) — nvarchar(30)
  • Field (ContactName) — nvarchar(30)