OrderDB
Tables (8)
Categories (tb_cate)
- CategoryID (Key) — Primary key — NOT NULL
- CategoryName (Field)
- Description (Field2)
Customers (tb_cus)
- CustomerID (Key) — Primary key — NOT NULL
- CustomerNAme (Field)
- ContactName (Field2)
- Address (Field3)
- City (Field4)
- PostalCode (Field5)
- Country (Field6)
Employees (tb_emp)
- EmployeeID (Key) — Primary key — NOT NULL
- LastName (Field)
- FirstName (Field2)
- BirthDate (Field3)
- Photo (Field4)
- Notes (Field5)
OrderDetails (tb_od)
- OrderDetailID (Key) — INT — Primary key — NOT NULL
- OrderID (Field) — INT
- ProductID (Field2) — INT
- Quantity (Field3) — INT
- OrderID (Key2) — Foreign key → Orders.OrderID — NOT NULL
- ProductID (Primary Key) — INT — Foreign key → Products.ProductID — NOT NULL
Orders (tb_orders)
- OrderID (Key) — Primary key — NOT NULL
- CustomerID (Field)
- EmployeeID (Field2)
- OrderDate (Field3)
- ShipperID (Field4)
- ShipperID (Key2) — INT — Foreign key → Shippers.ShipperID — NOT NULL
- EmployeeID (Key3) — Foreign key → Employees.EmployeeID — NOT NULL
- CustomerID (Key4) — Foreign key → Customers.CustomerID — NOT NULL
Products (tb_products)
- ProductID (Primary Key) — INT — Primary key — NOT NULL
- ProductName (Field) — VARCHAR(64)
- SupplierID (Key2) — INT — Foreign key → Suppliers.SupplierID — NOT NULL
- CategoryID (Field2) — INT
- Unit (Field3) — VARCHAR(128)
- Price (Field4) — INT
- CategoryID (Key3) — Foreign key → Categories.CategoryID — NOT NULL
Shippers (tb_shippers)
- ShipperID (Key) — INT — Primary key — NOT NULL
- ShipperName (Field) — VARCHAR(64)
- Phone (Field2)
Suppliers (tb_suppliers)
- SupplierID (Key) — INT — Primary key — NOT NULL
- SupplierName (Field)
- ContactName (Field2)
- Address (Field3)
- City (Field4)
- PostalCode (Field5)
- Country (Field6)