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