diff --git a/index.html b/index.html
index e1c4481..67b0be1 100644
--- a/index.html
+++ b/index.html
@@ -7,6 +7,7 @@
Examples
- Hello World - A simple example that loads mxgraph with 2 cells and a connection between them.
+ - Schema Designer (Ecommerce Demo): - Creates a schemaDesigner with using the ecommerce demo schema
- Schema Designer (World Wide Importers): - Creates a schemaDesigner with using the world wide importers schema
- Schema Designer (Adventure Works): - Creates a schemaDesigner with using adventure works schema
- Schema Designer (Small test schema): - Creates a small demo schema
diff --git a/package.json b/package.json
index 6b2799f..1bd6e47 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "azdataGraph",
"description": "azdataGraph is a derivative of mxGraph, which is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.",
- "version": "0.0.74",
+ "version": "0.0.75",
"homepage": "https://github.com/microsoft/azdataGraph",
"author": "Microsoft",
"license": "Apache-2.0",
diff --git a/src/ts/schemaDesigner/schemaDesigner.ts b/src/ts/schemaDesigner/schemaDesigner.ts
index 2f53588..742cdb1 100644
--- a/src/ts/schemaDesigner/schemaDesigner.ts
+++ b/src/ts/schemaDesigner/schemaDesigner.ts
@@ -666,8 +666,8 @@ export class SchemaDesigner {
private renderRelationship(relationship: IRelationship) {
const cells = this._model.getChildCells(this._graph.getDefaultParent());
- const source = cells.find((cell) => cell.value.name === relationship.entity);
- const target = cells.find((cell) => cell.value.name === relationship.referencedEntity);
+ const source = cells.find((cell) => cell.value.name === relationship.entity && cell.value.schema === relationship.schemaName);
+ const target = cells.find((cell) => cell.value.name === relationship.referencedEntity && cell.value.schema === relationship.referencedSchema);
if (source === undefined || target === undefined) {
return;
}
@@ -704,8 +704,10 @@ export class SchemaDesigner {
onUpdateAction: OnAction.CASCADE,
column: cell.target.value.columns[cell.value.sourceRow - 1].name,
entity: cell.target.value.name,
+ schemaName: cell.target.value.schema,
referencedEntity: cell.source.value.name,
- referencedColumn: cell.source.value.columns[cell.value.targetRow - 1].name
+ referencedColumn: cell.source.value.columns[cell.value.targetRow - 1].name,
+ referencedSchema: cell.source.value.schema,
};
schema.relationships.push(relationship);
}
diff --git a/src/ts/schemaDesigner/schemaDesignerInterfaces.ts b/src/ts/schemaDesigner/schemaDesignerInterfaces.ts
index acc404d..355b7a4 100644
--- a/src/ts/schemaDesigner/schemaDesignerInterfaces.ts
+++ b/src/ts/schemaDesigner/schemaDesignerInterfaces.ts
@@ -43,6 +43,10 @@ export interface IRelationship {
* Name of the relationship
*/
foreignKeyName: string;
+ /**
+ * Schema of the relationship
+ */
+ schemaName: string;
/**
* Parent entity of the relationship
*/
@@ -51,6 +55,10 @@ export interface IRelationship {
* Parent column of the relationship
*/
column: string;
+ /**
+ * Referenced schema of the relationship
+ */
+ referencedSchema: string;
/**
* Referenced entity of the relationship
*/
diff --git a/ts-examples/ecommerceDemoSchema.html b/ts-examples/ecommerceDemoSchema.html
new file mode 100644
index 0000000..d928570
--- /dev/null
+++ b/ts-examples/ecommerceDemoSchema.html
@@ -0,0 +1,56 @@
+
+
+
+
+
+ Big Schema Designer
+
+
+
+
+
+
+
+
diff --git a/ts-examples/schemas/schema_adventure_works.js b/ts-examples/schemas/schema_adventure_works.js
index e9ce224..8eea2c6 100644
--- a/ts-examples/schemas/schema_adventure_works.js
+++ b/ts-examples/schemas/schema_adventure_works.js
@@ -1,4168 +1,4360 @@
-export const adventureWorks =
-{
- "entities": [
- {
- "name": "SalesTaxRate",
- "schema": "Sales",
- "columns": [
- {
- "name": "SalesTaxRateID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "StateProvinceID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TaxType",
- "dataType": "tinyint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TaxRate",
- "dataType": "smallmoney",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "PersonCreditCard",
- "schema": "Sales",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "CreditCardID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "PersonPhone",
- "schema": "Person",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "PhoneNumber",
- "dataType": "Phone",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "PhoneNumberTypeID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "SalesTerritory",
- "schema": "Sales",
- "columns": [
- {
- "name": "TerritoryID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CountryRegionCode",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Group",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SalesYTD",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SalesLastYear",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CostYTD",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CostLastYear",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "PhoneNumberType",
- "schema": "Person",
- "columns": [
- {
- "name": "PhoneNumberTypeID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Product",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ProductNumber",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "MakeFlag",
- "dataType": "Flag",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "FinishedGoodsFlag",
- "dataType": "Flag",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Color",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SafetyStockLevel",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ReorderPoint",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "StandardCost",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ListPrice",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Size",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SizeUnitMeasureCode",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "WeightUnitMeasureCode",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Weight",
- "dataType": "decimal",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "DaysToManufacture",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ProductLine",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Class",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Style",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ProductSubcategoryID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ProductModelID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SellStartDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SellEndDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "DiscontinuedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "SalesTerritoryHistory",
- "schema": "Sales",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "TerritoryID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "StartDate",
- "dataType": "datetime",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "EndDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ScrapReason",
- "schema": "Production",
- "columns": [
- {
- "name": "ScrapReasonID",
- "dataType": "smallint",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Shift",
- "schema": "HumanResources",
- "columns": [
- {
- "name": "ShiftID",
- "dataType": "tinyint",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "StartTime",
- "dataType": "time",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "EndTime",
- "dataType": "time",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductCategory",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductCategoryID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ShipMethod",
- "schema": "Purchasing",
- "columns": [
- {
- "name": "ShipMethodID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ShipBase",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ShipRate",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductCostHistory",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "StartDate",
- "dataType": "datetime",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "EndDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "StandardCost",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductDescription",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductDescriptionID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Description",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ShoppingCartItem",
- "schema": "Sales",
- "columns": [
- {
- "name": "ShoppingCartItemID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "ShoppingCartID",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Quantity",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "DateCreated",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductDocument",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "DocumentNode",
- "dataType": "hierarchyid",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "DatabaseLog",
- "schema": "dbo",
- "columns": [
- {
- "name": "DatabaseLogID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "PostTime",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "DatabaseUser",
- "dataType": "sysname",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Event",
- "dataType": "sysname",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Schema",
- "dataType": "sysname",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Object",
- "dataType": "sysname",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TSQL",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "XmlEvent",
- "dataType": "xml",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductInventory",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "LocationID",
- "dataType": "smallint",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "Shelf",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Bin",
- "dataType": "tinyint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Quantity",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "SpecialOffer",
- "schema": "Sales",
- "columns": [
- {
- "name": "SpecialOfferID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Description",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "DiscountPct",
- "dataType": "smallmoney",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Type",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Category",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "StartDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "EndDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "MinQty",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "MaxQty",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ErrorLog",
- "schema": "dbo",
- "columns": [
- {
- "name": "ErrorLogID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "ErrorTime",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "UserName",
- "dataType": "sysname",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ErrorNumber",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ErrorSeverity",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ErrorState",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ErrorProcedure",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ErrorLine",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ErrorMessage",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductListPriceHistory",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "StartDate",
- "dataType": "datetime",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "EndDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ListPrice",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Address",
- "schema": "Person",
- "columns": [
- {
- "name": "AddressID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "AddressLine1",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "AddressLine2",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "City",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "StateProvinceID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "PostalCode",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SpatialLocation",
- "dataType": "geography",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "SpecialOfferProduct",
- "schema": "Sales",
- "columns": [
- {
- "name": "SpecialOfferID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductModel",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductModelID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CatalogDescription",
- "dataType": "xml",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Instructions",
- "dataType": "xml",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "AddressType",
- "schema": "Person",
- "columns": [
- {
- "name": "AddressTypeID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "StateProvince",
- "schema": "Person",
- "columns": [
- {
- "name": "StateProvinceID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "StateProvinceCode",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CountryRegionCode",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "IsOnlyStateProvinceFlag",
- "dataType": "Flag",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TerritoryID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductModelIllustration",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductModelID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "IllustrationID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "AWBuildVersion",
- "schema": "dbo",
- "columns": [
- {
- "name": "SystemInformationID",
- "dataType": "tinyint",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Database Version",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "VersionDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductModelProductDescriptionCulture",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductModelID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ProductDescriptionID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "CultureID",
- "dataType": "nchar",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "BillOfMaterials",
- "schema": "Production",
- "columns": [
- {
- "name": "BillOfMaterialsID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "ProductAssemblyID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ComponentID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "StartDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "EndDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "UnitMeasureCode",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "BOMLevel",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "PerAssemblyQty",
- "dataType": "decimal",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Store",
- "schema": "Sales",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SalesPersonID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Demographics",
- "dataType": "xml",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductPhoto",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductPhotoID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "ThumbNailPhoto",
- "dataType": "varbinary",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ThumbnailPhotoFileName",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "LargePhoto",
- "dataType": "varbinary",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "LargePhotoFileName",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductProductPhoto",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ProductPhotoID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "Primary",
- "dataType": "Flag",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "TransactionHistory",
- "schema": "Production",
- "columns": [
- {
- "name": "TransactionID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ReferenceOrderID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ReferenceOrderLineID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TransactionDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TransactionType",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Quantity",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ActualCost",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductReview",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductReviewID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ReviewerName",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ReviewDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "EmailAddress",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Rating",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Comments",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "BusinessEntity",
- "schema": "Person",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "TransactionHistoryArchive",
- "schema": "Production",
- "columns": [
- {
- "name": "TransactionID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ReferenceOrderID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ReferenceOrderLineID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TransactionDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TransactionType",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Quantity",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ActualCost",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductSubcategory",
- "schema": "Production",
- "columns": [
- {
- "name": "ProductSubcategoryID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "ProductCategoryID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "BusinessEntityAddress",
- "schema": "Person",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "AddressID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "AddressTypeID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ProductVendor",
- "schema": "Purchasing",
- "columns": [
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "AverageLeadTime",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "StandardPrice",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "LastReceiptCost",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "LastReceiptDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "MinOrderQty",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "MaxOrderQty",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "OnOrderQty",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "UnitMeasureCode",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "BusinessEntityContact",
- "schema": "Person",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "PersonID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ContactTypeID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "UnitMeasure",
- "schema": "Production",
- "columns": [
- {
- "name": "UnitMeasureCode",
- "dataType": "nchar",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Vendor",
- "schema": "Purchasing",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "AccountNumber",
- "dataType": "AccountNumber",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CreditRating",
- "dataType": "tinyint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "PreferredVendorStatus",
- "dataType": "Flag",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ActiveFlag",
- "dataType": "Flag",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "PurchasingWebServiceURL",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "ContactType",
- "schema": "Person",
- "columns": [
- {
- "name": "ContactTypeID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "CountryRegionCurrency",
- "schema": "Sales",
- "columns": [
- {
- "name": "CountryRegionCode",
- "dataType": "nvarchar",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "CurrencyCode",
- "dataType": "nchar",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "CountryRegion",
- "schema": "Person",
- "columns": [
- {
- "name": "CountryRegionCode",
- "dataType": "nvarchar",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "WorkOrder",
- "schema": "Production",
- "columns": [
- {
- "name": "WorkOrderID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "OrderQty",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "StockedQty",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ScrappedQty",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "StartDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "EndDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "DueDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ScrapReasonID",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "PurchaseOrderDetail",
- "schema": "Purchasing",
- "columns": [
- {
- "name": "PurchaseOrderID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "PurchaseOrderDetailID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "DueDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "OrderQty",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "UnitPrice",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "LineTotal",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ReceivedQty",
- "dataType": "decimal",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "RejectedQty",
- "dataType": "decimal",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "StockedQty",
- "dataType": "decimal",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "CreditCard",
- "schema": "Sales",
- "columns": [
- {
- "name": "CreditCardID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "CardType",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CardNumber",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ExpMonth",
- "dataType": "tinyint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ExpYear",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Culture",
- "schema": "Production",
- "columns": [
- {
- "name": "CultureID",
- "dataType": "nchar",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "WorkOrderRouting",
- "schema": "Production",
- "columns": [
- {
- "name": "WorkOrderID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "OperationSequence",
- "dataType": "smallint",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "LocationID",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ScheduledStartDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ScheduledEndDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ActualStartDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ActualEndDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ActualResourceHrs",
- "dataType": "decimal",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "PlannedCost",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ActualCost",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Currency",
- "schema": "Sales",
- "columns": [
- {
- "name": "CurrencyCode",
- "dataType": "nchar",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "PurchaseOrderHeader",
- "schema": "Purchasing",
- "columns": [
- {
- "name": "PurchaseOrderID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "RevisionNumber",
- "dataType": "tinyint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Status",
- "dataType": "tinyint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "EmployeeID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "VendorID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ShipMethodID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "OrderDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ShipDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SubTotal",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TaxAmt",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Freight",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TotalDue",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "CurrencyRate",
- "schema": "Sales",
- "columns": [
- {
- "name": "CurrencyRateID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "CurrencyRateDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "FromCurrencyCode",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ToCurrencyCode",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "AverageRate",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "EndOfDayRate",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Customer",
- "schema": "Sales",
- "columns": [
- {
- "name": "CustomerID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "PersonID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "StoreID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TerritoryID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "AccountNumber",
- "dataType": "varchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Department",
- "schema": "HumanResources",
- "columns": [
- {
- "name": "DepartmentID",
- "dataType": "smallint",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "GroupName",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Document",
- "schema": "Production",
- "columns": [
- {
- "name": "DocumentNode",
- "dataType": "hierarchyid",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "DocumentLevel",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Title",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Owner",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "FolderFlag",
- "dataType": "bit",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "FileName",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "FileExtension",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Revision",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ChangeNumber",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Status",
- "dataType": "tinyint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "DocumentSummary",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Document",
- "dataType": "varbinary",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "SalesOrderDetail",
- "schema": "Sales",
- "columns": [
- {
- "name": "SalesOrderID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "SalesOrderDetailID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "CarrierTrackingNumber",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "OrderQty",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ProductID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SpecialOfferID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "UnitPrice",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "UnitPriceDiscount",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "LineTotal",
- "dataType": "numeric",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "EmailAddress",
- "schema": "Person",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "EmailAddressID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "EmailAddress",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Employee",
- "schema": "HumanResources",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "NationalIDNumber",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "LoginID",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "OrganizationNode",
- "dataType": "hierarchyid",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "OrganizationLevel",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "JobTitle",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "BirthDate",
- "dataType": "date",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "MaritalStatus",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Gender",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "HireDate",
- "dataType": "date",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SalariedFlag",
- "dataType": "Flag",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "VacationHours",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SickLeaveHours",
- "dataType": "smallint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CurrentFlag",
- "dataType": "Flag",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "SalesOrderHeader",
- "schema": "Sales",
- "columns": [
- {
- "name": "SalesOrderID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "RevisionNumber",
- "dataType": "tinyint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "OrderDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "DueDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ShipDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Status",
- "dataType": "tinyint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "OnlineOrderFlag",
- "dataType": "Flag",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SalesOrderNumber",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "PurchaseOrderNumber",
- "dataType": "OrderNumber",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "AccountNumber",
- "dataType": "AccountNumber",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CustomerID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SalesPersonID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TerritoryID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "BillToAddressID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ShipToAddressID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ShipMethodID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CreditCardID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CreditCardApprovalCode",
- "dataType": "varchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CurrencyRateID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SubTotal",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TaxAmt",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Freight",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "TotalDue",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Comment",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "EmployeeDepartmentHistory",
- "schema": "HumanResources",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "DepartmentID",
- "dataType": "smallint",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ShiftID",
- "dataType": "tinyint",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "StartDate",
- "dataType": "date",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "EndDate",
- "dataType": "date",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "EmployeePayHistory",
- "schema": "HumanResources",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "RateChangeDate",
- "dataType": "datetime",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "Rate",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "PayFrequency",
- "dataType": "tinyint",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "SalesOrderHeaderSalesReason",
- "schema": "Sales",
- "columns": [
- {
- "name": "SalesOrderID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "SalesReasonID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "SalesPerson",
- "schema": "Sales",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "TerritoryID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SalesQuota",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Bonus",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CommissionPct",
- "dataType": "smallmoney",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SalesYTD",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "SalesLastYear",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Illustration",
- "schema": "Production",
- "columns": [
- {
- "name": "IllustrationID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Diagram",
- "dataType": "xml",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "JobCandidate",
- "schema": "HumanResources",
- "columns": [
- {
- "name": "JobCandidateID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Resume",
- "dataType": "xml",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Location",
- "schema": "Production",
- "columns": [
- {
- "name": "LocationID",
- "dataType": "smallint",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "CostRate",
- "dataType": "smallmoney",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Availability",
- "dataType": "decimal",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Password",
- "schema": "Person",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "PasswordHash",
- "dataType": "varchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "PasswordSalt",
- "dataType": "varchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "SalesPersonQuotaHistory",
- "schema": "Sales",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "QuotaDate",
- "dataType": "datetime",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "SalesQuota",
- "dataType": "money",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "Person",
- "schema": "Person",
- "columns": [
- {
- "name": "BusinessEntityID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": false
- },
- {
- "name": "PersonType",
- "dataType": "nchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "NameStyle",
- "dataType": "NameStyle",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Title",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "FirstName",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "MiddleName",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "LastName",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Suffix",
- "dataType": "nvarchar",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "EmailPromotion",
- "dataType": "int",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "AdditionalContactInfo",
- "dataType": "xml",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "Demographics",
- "dataType": "xml",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "rowguid",
- "dataType": "uniqueidentifier",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- },
- {
- "name": "SalesReason",
- "schema": "Sales",
- "columns": [
- {
- "name": "SalesReasonID",
- "dataType": "int",
- "isPrimaryKey": true,
- "isIdentity": true
- },
- {
- "name": "Name",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ReasonType",
- "dataType": "Name",
- "isPrimaryKey": false,
- "isIdentity": false
- },
- {
- "name": "ModifiedDate",
- "dataType": "datetime",
- "isPrimaryKey": false,
- "isIdentity": false
- }
- ]
- }
- ],
- "relationships": [
- {
- "foreignKeyName": "FK_Customer_SalesTerritory_TerritoryID",
- "entity": "Customer",
- "column": "TerritoryID",
- "referencedEntity": "SalesTerritory",
- "referencedColumn": "TerritoryID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderHeader_SalesTerritory_TerritoryID",
- "entity": "SalesOrderHeader",
- "column": "TerritoryID",
- "referencedEntity": "SalesTerritory",
- "referencedColumn": "TerritoryID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesPerson_SalesTerritory_TerritoryID",
- "entity": "SalesPerson",
- "column": "TerritoryID",
- "referencedEntity": "SalesTerritory",
- "referencedColumn": "TerritoryID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesTerritoryHistory_SalesTerritory_TerritoryID",
- "entity": "SalesTerritoryHistory",
- "column": "TerritoryID",
- "referencedEntity": "SalesTerritory",
- "referencedColumn": "TerritoryID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_StateProvince_SalesTerritory_TerritoryID",
- "entity": "StateProvince",
- "column": "TerritoryID",
- "referencedEntity": "SalesTerritory",
- "referencedColumn": "TerritoryID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_PersonPhone_PhoneNumberType_PhoneNumberTypeID",
- "entity": "PersonPhone",
- "column": "PhoneNumberTypeID",
- "referencedEntity": "PhoneNumberType",
- "referencedColumn": "PhoneNumberTypeID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_BillOfMaterials_Product_ProductAssemblyID",
- "entity": "BillOfMaterials",
- "column": "ProductAssemblyID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_BillOfMaterials_Product_ComponentID",
- "entity": "BillOfMaterials",
- "column": "ComponentID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductCostHistory_Product_ProductID",
- "entity": "ProductCostHistory",
- "column": "ProductID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductDocument_Product_ProductID",
- "entity": "ProductDocument",
- "column": "ProductID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductInventory_Product_ProductID",
- "entity": "ProductInventory",
- "column": "ProductID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductListPriceHistory_Product_ProductID",
- "entity": "ProductListPriceHistory",
- "column": "ProductID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductProductPhoto_Product_ProductID",
- "entity": "ProductProductPhoto",
- "column": "ProductID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductReview_Product_ProductID",
- "entity": "ProductReview",
- "column": "ProductID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductVendor_Product_ProductID",
- "entity": "ProductVendor",
- "column": "ProductID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_PurchaseOrderDetail_Product_ProductID",
- "entity": "PurchaseOrderDetail",
- "column": "ProductID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ShoppingCartItem_Product_ProductID",
- "entity": "ShoppingCartItem",
- "column": "ProductID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SpecialOfferProduct_Product_ProductID",
- "entity": "SpecialOfferProduct",
- "column": "ProductID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_TransactionHistory_Product_ProductID",
- "entity": "TransactionHistory",
- "column": "ProductID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_WorkOrder_Product_ProductID",
- "entity": "WorkOrder",
- "column": "ProductID",
- "referencedEntity": "Product",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_WorkOrder_ScrapReason_ScrapReasonID",
- "entity": "WorkOrder",
- "column": "ScrapReasonID",
- "referencedEntity": "ScrapReason",
- "referencedColumn": "ScrapReasonID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_EmployeeDepartmentHistory_Shift_ShiftID",
- "entity": "EmployeeDepartmentHistory",
- "column": "ShiftID",
- "referencedEntity": "Shift",
- "referencedColumn": "ShiftID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductSubcategory_ProductCategory_ProductCategoryID",
- "entity": "ProductSubcategory",
- "column": "ProductCategoryID",
- "referencedEntity": "ProductCategory",
- "referencedColumn": "ProductCategoryID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_PurchaseOrderHeader_ShipMethod_ShipMethodID",
- "entity": "PurchaseOrderHeader",
- "column": "ShipMethodID",
- "referencedEntity": "ShipMethod",
- "referencedColumn": "ShipMethodID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderHeader_ShipMethod_ShipMethodID",
- "entity": "SalesOrderHeader",
- "column": "ShipMethodID",
- "referencedEntity": "ShipMethod",
- "referencedColumn": "ShipMethodID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductModelProductDescriptionCulture_ProductDescription_ProductDescriptionID",
- "entity": "ProductModelProductDescriptionCulture",
- "column": "ProductDescriptionID",
- "referencedEntity": "ProductDescription",
- "referencedColumn": "ProductDescriptionID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SpecialOfferProduct_SpecialOffer_SpecialOfferID",
- "entity": "SpecialOfferProduct",
- "column": "SpecialOfferID",
- "referencedEntity": "SpecialOffer",
- "referencedColumn": "SpecialOfferID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_BusinessEntityAddress_Address_AddressID",
- "entity": "BusinessEntityAddress",
- "column": "AddressID",
- "referencedEntity": "Address",
- "referencedColumn": "AddressID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderHeader_Address_BillToAddressID",
- "entity": "SalesOrderHeader",
- "column": "BillToAddressID",
- "referencedEntity": "Address",
- "referencedColumn": "AddressID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderHeader_Address_ShipToAddressID",
- "entity": "SalesOrderHeader",
- "column": "ShipToAddressID",
- "referencedEntity": "Address",
- "referencedColumn": "AddressID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderDetail_SpecialOfferProduct_SpecialOfferIDProductID",
- "entity": "SalesOrderDetail",
- "column": "SpecialOfferID",
- "referencedEntity": "SpecialOfferProduct",
- "referencedColumn": "SpecialOfferID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderDetail_SpecialOfferProduct_SpecialOfferIDProductID",
- "entity": "SalesOrderDetail",
- "column": "ProductID",
- "referencedEntity": "SpecialOfferProduct",
- "referencedColumn": "ProductID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Product_ProductModel_ProductModelID",
- "entity": "Product",
- "column": "ProductModelID",
- "referencedEntity": "ProductModel",
- "referencedColumn": "ProductModelID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductModelIllustration_ProductModel_ProductModelID",
- "entity": "ProductModelIllustration",
- "column": "ProductModelID",
- "referencedEntity": "ProductModel",
- "referencedColumn": "ProductModelID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductModelProductDescriptionCulture_ProductModel_ProductModelID",
- "entity": "ProductModelProductDescriptionCulture",
- "column": "ProductModelID",
- "referencedEntity": "ProductModel",
- "referencedColumn": "ProductModelID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_BusinessEntityAddress_AddressType_AddressTypeID",
- "entity": "BusinessEntityAddress",
- "column": "AddressTypeID",
- "referencedEntity": "AddressType",
- "referencedColumn": "AddressTypeID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Address_StateProvince_StateProvinceID",
- "entity": "Address",
- "column": "StateProvinceID",
- "referencedEntity": "StateProvince",
- "referencedColumn": "StateProvinceID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesTaxRate_StateProvince_StateProvinceID",
- "entity": "SalesTaxRate",
- "column": "StateProvinceID",
- "referencedEntity": "StateProvince",
- "referencedColumn": "StateProvinceID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Customer_Store_StoreID",
- "entity": "Customer",
- "column": "StoreID",
- "referencedEntity": "Store",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductProductPhoto_ProductPhoto_ProductPhotoID",
- "entity": "ProductProductPhoto",
- "column": "ProductPhotoID",
- "referencedEntity": "ProductPhoto",
- "referencedColumn": "ProductPhotoID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_BusinessEntityAddress_BusinessEntity_BusinessEntityID",
- "entity": "BusinessEntityAddress",
- "column": "BusinessEntityID",
- "referencedEntity": "BusinessEntity",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_BusinessEntityContact_BusinessEntity_BusinessEntityID",
- "entity": "BusinessEntityContact",
- "column": "BusinessEntityID",
- "referencedEntity": "BusinessEntity",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Person_BusinessEntity_BusinessEntityID",
- "entity": "Person",
- "column": "BusinessEntityID",
- "referencedEntity": "BusinessEntity",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Store_BusinessEntity_BusinessEntityID",
- "entity": "Store",
- "column": "BusinessEntityID",
- "referencedEntity": "BusinessEntity",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Vendor_BusinessEntity_BusinessEntityID",
- "entity": "Vendor",
- "column": "BusinessEntityID",
- "referencedEntity": "BusinessEntity",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Product_ProductSubcategory_ProductSubcategoryID",
- "entity": "Product",
- "column": "ProductSubcategoryID",
- "referencedEntity": "ProductSubcategory",
- "referencedColumn": "ProductSubcategoryID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_BillOfMaterials_UnitMeasure_UnitMeasureCode",
- "entity": "BillOfMaterials",
- "column": "UnitMeasureCode",
- "referencedEntity": "UnitMeasure",
- "referencedColumn": "UnitMeasureCode",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Product_UnitMeasure_SizeUnitMeasureCode",
- "entity": "Product",
- "column": "SizeUnitMeasureCode",
- "referencedEntity": "UnitMeasure",
- "referencedColumn": "UnitMeasureCode",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Product_UnitMeasure_WeightUnitMeasureCode",
- "entity": "Product",
- "column": "WeightUnitMeasureCode",
- "referencedEntity": "UnitMeasure",
- "referencedColumn": "UnitMeasureCode",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductVendor_UnitMeasure_UnitMeasureCode",
- "entity": "ProductVendor",
- "column": "UnitMeasureCode",
- "referencedEntity": "UnitMeasure",
- "referencedColumn": "UnitMeasureCode",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductVendor_Vendor_BusinessEntityID",
- "entity": "ProductVendor",
- "column": "BusinessEntityID",
- "referencedEntity": "Vendor",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_PurchaseOrderHeader_Vendor_VendorID",
- "entity": "PurchaseOrderHeader",
- "column": "VendorID",
- "referencedEntity": "Vendor",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_BusinessEntityContact_ContactType_ContactTypeID",
- "entity": "BusinessEntityContact",
- "column": "ContactTypeID",
- "referencedEntity": "ContactType",
- "referencedColumn": "ContactTypeID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_CountryRegionCurrency_CountryRegion_CountryRegionCode",
- "entity": "CountryRegionCurrency",
- "column": "CountryRegionCode",
- "referencedEntity": "CountryRegion",
- "referencedColumn": "CountryRegionCode",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesTerritory_CountryRegion_CountryRegionCode",
- "entity": "SalesTerritory",
- "column": "CountryRegionCode",
- "referencedEntity": "CountryRegion",
- "referencedColumn": "CountryRegionCode",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_StateProvince_CountryRegion_CountryRegionCode",
- "entity": "StateProvince",
- "column": "CountryRegionCode",
- "referencedEntity": "CountryRegion",
- "referencedColumn": "CountryRegionCode",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_WorkOrderRouting_WorkOrder_WorkOrderID",
- "entity": "WorkOrderRouting",
- "column": "WorkOrderID",
- "referencedEntity": "WorkOrder",
- "referencedColumn": "WorkOrderID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_PersonCreditCard_CreditCard_CreditCardID",
- "entity": "PersonCreditCard",
- "column": "CreditCardID",
- "referencedEntity": "CreditCard",
- "referencedColumn": "CreditCardID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderHeader_CreditCard_CreditCardID",
- "entity": "SalesOrderHeader",
- "column": "CreditCardID",
- "referencedEntity": "CreditCard",
- "referencedColumn": "CreditCardID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductModelProductDescriptionCulture_Culture_CultureID",
- "entity": "ProductModelProductDescriptionCulture",
- "column": "CultureID",
- "referencedEntity": "Culture",
- "referencedColumn": "CultureID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_CountryRegionCurrency_Currency_CurrencyCode",
- "entity": "CountryRegionCurrency",
- "column": "CurrencyCode",
- "referencedEntity": "Currency",
- "referencedColumn": "CurrencyCode",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_CurrencyRate_Currency_FromCurrencyCode",
- "entity": "CurrencyRate",
- "column": "FromCurrencyCode",
- "referencedEntity": "Currency",
- "referencedColumn": "CurrencyCode",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_CurrencyRate_Currency_ToCurrencyCode",
- "entity": "CurrencyRate",
- "column": "ToCurrencyCode",
- "referencedEntity": "Currency",
- "referencedColumn": "CurrencyCode",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_PurchaseOrderDetail_PurchaseOrderHeader_PurchaseOrderID",
- "entity": "PurchaseOrderDetail",
- "column": "PurchaseOrderID",
- "referencedEntity": "PurchaseOrderHeader",
- "referencedColumn": "PurchaseOrderID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderHeader_CurrencyRate_CurrencyRateID",
- "entity": "SalesOrderHeader",
- "column": "CurrencyRateID",
- "referencedEntity": "CurrencyRate",
- "referencedColumn": "CurrencyRateID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderHeader_Customer_CustomerID",
- "entity": "SalesOrderHeader",
- "column": "CustomerID",
- "referencedEntity": "Customer",
- "referencedColumn": "CustomerID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_EmployeeDepartmentHistory_Department_DepartmentID",
- "entity": "EmployeeDepartmentHistory",
- "column": "DepartmentID",
- "referencedEntity": "Department",
- "referencedColumn": "DepartmentID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductDocument_Document_DocumentNode",
- "entity": "ProductDocument",
- "column": "DocumentNode",
- "referencedEntity": "Document",
- "referencedColumn": "DocumentNode",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Document_Employee_Owner",
- "entity": "Document",
- "column": "Owner",
- "referencedEntity": "Employee",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_EmployeeDepartmentHistory_Employee_BusinessEntityID",
- "entity": "EmployeeDepartmentHistory",
- "column": "BusinessEntityID",
- "referencedEntity": "Employee",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_EmployeePayHistory_Employee_BusinessEntityID",
- "entity": "EmployeePayHistory",
- "column": "BusinessEntityID",
- "referencedEntity": "Employee",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_JobCandidate_Employee_BusinessEntityID",
- "entity": "JobCandidate",
- "column": "BusinessEntityID",
- "referencedEntity": "Employee",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_PurchaseOrderHeader_Employee_EmployeeID",
- "entity": "PurchaseOrderHeader",
- "column": "EmployeeID",
- "referencedEntity": "Employee",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesPerson_Employee_BusinessEntityID",
- "entity": "SalesPerson",
- "column": "BusinessEntityID",
- "referencedEntity": "Employee",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderDetail_SalesOrderHeader_SalesOrderID",
- "entity": "SalesOrderDetail",
- "column": "SalesOrderID",
- "referencedEntity": "SalesOrderHeader",
- "referencedColumn": "SalesOrderID",
- "onDeleteAction": 0,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderHeaderSalesReason_SalesOrderHeader_SalesOrderID",
- "entity": "SalesOrderHeaderSalesReason",
- "column": "SalesOrderID",
- "referencedEntity": "SalesOrderHeader",
- "referencedColumn": "SalesOrderID",
- "onDeleteAction": 0,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderHeader_SalesPerson_SalesPersonID",
- "entity": "SalesOrderHeader",
- "column": "SalesPersonID",
- "referencedEntity": "SalesPerson",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesPersonQuotaHistory_SalesPerson_BusinessEntityID",
- "entity": "SalesPersonQuotaHistory",
- "column": "BusinessEntityID",
- "referencedEntity": "SalesPerson",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesTerritoryHistory_SalesPerson_BusinessEntityID",
- "entity": "SalesTerritoryHistory",
- "column": "BusinessEntityID",
- "referencedEntity": "SalesPerson",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Store_SalesPerson_SalesPersonID",
- "entity": "Store",
- "column": "SalesPersonID",
- "referencedEntity": "SalesPerson",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductModelIllustration_Illustration_IllustrationID",
- "entity": "ProductModelIllustration",
- "column": "IllustrationID",
- "referencedEntity": "Illustration",
- "referencedColumn": "IllustrationID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_ProductInventory_Location_LocationID",
- "entity": "ProductInventory",
- "column": "LocationID",
- "referencedEntity": "Location",
- "referencedColumn": "LocationID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_WorkOrderRouting_Location_LocationID",
- "entity": "WorkOrderRouting",
- "column": "LocationID",
- "referencedEntity": "Location",
- "referencedColumn": "LocationID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_BusinessEntityContact_Person_PersonID",
- "entity": "BusinessEntityContact",
- "column": "PersonID",
- "referencedEntity": "Person",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Customer_Person_PersonID",
- "entity": "Customer",
- "column": "PersonID",
- "referencedEntity": "Person",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_EmailAddress_Person_BusinessEntityID",
- "entity": "EmailAddress",
- "column": "BusinessEntityID",
- "referencedEntity": "Person",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Employee_Person_BusinessEntityID",
- "entity": "Employee",
- "column": "BusinessEntityID",
- "referencedEntity": "Person",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_Password_Person_BusinessEntityID",
- "entity": "Password",
- "column": "BusinessEntityID",
- "referencedEntity": "Person",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_PersonCreditCard_Person_BusinessEntityID",
- "entity": "PersonCreditCard",
- "column": "BusinessEntityID",
- "referencedEntity": "Person",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_PersonPhone_Person_BusinessEntityID",
- "entity": "PersonPhone",
- "column": "BusinessEntityID",
- "referencedEntity": "Person",
- "referencedColumn": "BusinessEntityID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- },
- {
- "foreignKeyName": "FK_SalesOrderHeaderSalesReason_SalesReason_SalesReasonID",
- "entity": "SalesOrderHeaderSalesReason",
- "column": "SalesReasonID",
- "referencedEntity": "SalesReason",
- "referencedColumn": "SalesReasonID",
- "onDeleteAction": 1,
- "onUpdateAction": 1
- }
- ]
-};
\ No newline at end of file
+export const adventureWorks = {
+ entities: [
+ {
+ name: "SalesTaxRate",
+ schema: "Sales",
+ columns: [
+ {
+ name: "SalesTaxRateID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "StateProvinceID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TaxType",
+ dataType: "tinyint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TaxRate",
+ dataType: "smallmoney",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "PersonCreditCard",
+ schema: "Sales",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "CreditCardID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "PersonPhone",
+ schema: "Person",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "PhoneNumber",
+ dataType: "Phone",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "PhoneNumberTypeID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "SalesTerritory",
+ schema: "Sales",
+ columns: [
+ {
+ name: "TerritoryID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CountryRegionCode",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Group",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SalesYTD",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SalesLastYear",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CostYTD",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CostLastYear",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "PhoneNumberType",
+ schema: "Person",
+ columns: [
+ {
+ name: "PhoneNumberTypeID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Product",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ProductNumber",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "MakeFlag",
+ dataType: "Flag",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "FinishedGoodsFlag",
+ dataType: "Flag",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Color",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SafetyStockLevel",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ReorderPoint",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "StandardCost",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ListPrice",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Size",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SizeUnitMeasureCode",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "WeightUnitMeasureCode",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Weight",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "DaysToManufacture",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ProductLine",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Class",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Style",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ProductSubcategoryID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ProductModelID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SellStartDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SellEndDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "DiscontinuedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "SalesTerritoryHistory",
+ schema: "Sales",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "TerritoryID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "StartDate",
+ dataType: "datetime",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "EndDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ScrapReason",
+ schema: "Production",
+ columns: [
+ {
+ name: "ScrapReasonID",
+ dataType: "smallint",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Shift",
+ schema: "HumanResources",
+ columns: [
+ {
+ name: "ShiftID",
+ dataType: "tinyint",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "StartTime",
+ dataType: "time",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "EndTime",
+ dataType: "time",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductCategory",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductCategoryID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ShipMethod",
+ schema: "Purchasing",
+ columns: [
+ {
+ name: "ShipMethodID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ShipBase",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ShipRate",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductCostHistory",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "StartDate",
+ dataType: "datetime",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "EndDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "StandardCost",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductDescription",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductDescriptionID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Description",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ShoppingCartItem",
+ schema: "Sales",
+ columns: [
+ {
+ name: "ShoppingCartItemID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "ShoppingCartID",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Quantity",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "DateCreated",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductDocument",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "DocumentNode",
+ dataType: "hierarchyid",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "DatabaseLog",
+ schema: "dbo",
+ columns: [
+ {
+ name: "DatabaseLogID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "PostTime",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "DatabaseUser",
+ dataType: "sysname",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Event",
+ dataType: "sysname",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Schema",
+ dataType: "sysname",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Object",
+ dataType: "sysname",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TSQL",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "XmlEvent",
+ dataType: "xml",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductInventory",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "LocationID",
+ dataType: "smallint",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "Shelf",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Bin",
+ dataType: "tinyint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Quantity",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "SpecialOffer",
+ schema: "Sales",
+ columns: [
+ {
+ name: "SpecialOfferID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Description",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "DiscountPct",
+ dataType: "smallmoney",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Type",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Category",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "StartDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "EndDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "MinQty",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "MaxQty",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ErrorLog",
+ schema: "dbo",
+ columns: [
+ {
+ name: "ErrorLogID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "ErrorTime",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "UserName",
+ dataType: "sysname",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ErrorNumber",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ErrorSeverity",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ErrorState",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ErrorProcedure",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ErrorLine",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ErrorMessage",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductListPriceHistory",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "StartDate",
+ dataType: "datetime",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "EndDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ListPrice",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Address",
+ schema: "Person",
+ columns: [
+ {
+ name: "AddressID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "AddressLine1",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "AddressLine2",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "City",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "StateProvinceID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PostalCode",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SpatialLocation",
+ dataType: "geography",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "SpecialOfferProduct",
+ schema: "Sales",
+ columns: [
+ {
+ name: "SpecialOfferID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductModel",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductModelID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CatalogDescription",
+ dataType: "xml",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Instructions",
+ dataType: "xml",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "AddressType",
+ schema: "Person",
+ columns: [
+ {
+ name: "AddressTypeID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "StateProvince",
+ schema: "Person",
+ columns: [
+ {
+ name: "StateProvinceID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "StateProvinceCode",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CountryRegionCode",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "IsOnlyStateProvinceFlag",
+ dataType: "Flag",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TerritoryID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductModelIllustration",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductModelID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "IllustrationID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "AWBuildVersion",
+ schema: "dbo",
+ columns: [
+ {
+ name: "SystemInformationID",
+ dataType: "tinyint",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Database Version",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "VersionDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductModelProductDescriptionCulture",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductModelID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ProductDescriptionID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "CultureID",
+ dataType: "nchar",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "BillOfMaterials",
+ schema: "Production",
+ columns: [
+ {
+ name: "BillOfMaterialsID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "ProductAssemblyID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ComponentID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "StartDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "EndDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "UnitMeasureCode",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "BOMLevel",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PerAssemblyQty",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Store",
+ schema: "Sales",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SalesPersonID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Demographics",
+ dataType: "xml",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductPhoto",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductPhotoID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "ThumbNailPhoto",
+ dataType: "varbinary",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ThumbnailPhotoFileName",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "LargePhoto",
+ dataType: "varbinary",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "LargePhotoFileName",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductProductPhoto",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ProductPhotoID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "Primary",
+ dataType: "Flag",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "TransactionHistory",
+ schema: "Production",
+ columns: [
+ {
+ name: "TransactionID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ReferenceOrderID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ReferenceOrderLineID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TransactionDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TransactionType",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Quantity",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ActualCost",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductReview",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductReviewID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ReviewerName",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ReviewDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "EmailAddress",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Rating",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Comments",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "BusinessEntity",
+ schema: "Person",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "TransactionHistoryArchive",
+ schema: "Production",
+ columns: [
+ {
+ name: "TransactionID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ReferenceOrderID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ReferenceOrderLineID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TransactionDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TransactionType",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Quantity",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ActualCost",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductSubcategory",
+ schema: "Production",
+ columns: [
+ {
+ name: "ProductSubcategoryID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "ProductCategoryID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "BusinessEntityAddress",
+ schema: "Person",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "AddressID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "AddressTypeID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ProductVendor",
+ schema: "Purchasing",
+ columns: [
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "AverageLeadTime",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "StandardPrice",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "LastReceiptCost",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "LastReceiptDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "MinOrderQty",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "MaxOrderQty",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "OnOrderQty",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "UnitMeasureCode",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "BusinessEntityContact",
+ schema: "Person",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "PersonID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ContactTypeID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "UnitMeasure",
+ schema: "Production",
+ columns: [
+ {
+ name: "UnitMeasureCode",
+ dataType: "nchar",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Vendor",
+ schema: "Purchasing",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "AccountNumber",
+ dataType: "AccountNumber",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CreditRating",
+ dataType: "tinyint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PreferredVendorStatus",
+ dataType: "Flag",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ActiveFlag",
+ dataType: "Flag",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PurchasingWebServiceURL",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "ContactType",
+ schema: "Person",
+ columns: [
+ {
+ name: "ContactTypeID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "CountryRegionCurrency",
+ schema: "Sales",
+ columns: [
+ {
+ name: "CountryRegionCode",
+ dataType: "nvarchar",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "CurrencyCode",
+ dataType: "nchar",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "CountryRegion",
+ schema: "Person",
+ columns: [
+ {
+ name: "CountryRegionCode",
+ dataType: "nvarchar",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "WorkOrder",
+ schema: "Production",
+ columns: [
+ {
+ name: "WorkOrderID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "OrderQty",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "StockedQty",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ScrappedQty",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "StartDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "EndDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "DueDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ScrapReasonID",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "PurchaseOrderDetail",
+ schema: "Purchasing",
+ columns: [
+ {
+ name: "PurchaseOrderID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "PurchaseOrderDetailID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "DueDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "OrderQty",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "UnitPrice",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "LineTotal",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ReceivedQty",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "RejectedQty",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "StockedQty",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "CreditCard",
+ schema: "Sales",
+ columns: [
+ {
+ name: "CreditCardID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "CardType",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CardNumber",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ExpMonth",
+ dataType: "tinyint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ExpYear",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Culture",
+ schema: "Production",
+ columns: [
+ {
+ name: "CultureID",
+ dataType: "nchar",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "WorkOrderRouting",
+ schema: "Production",
+ columns: [
+ {
+ name: "WorkOrderID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "OperationSequence",
+ dataType: "smallint",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "LocationID",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ScheduledStartDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ScheduledEndDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ActualStartDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ActualEndDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ActualResourceHrs",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PlannedCost",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ActualCost",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Currency",
+ schema: "Sales",
+ columns: [
+ {
+ name: "CurrencyCode",
+ dataType: "nchar",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "PurchaseOrderHeader",
+ schema: "Purchasing",
+ columns: [
+ {
+ name: "PurchaseOrderID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "RevisionNumber",
+ dataType: "tinyint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Status",
+ dataType: "tinyint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "EmployeeID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "VendorID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ShipMethodID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "OrderDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ShipDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SubTotal",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TaxAmt",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Freight",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TotalDue",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "CurrencyRate",
+ schema: "Sales",
+ columns: [
+ {
+ name: "CurrencyRateID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "CurrencyRateDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "FromCurrencyCode",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ToCurrencyCode",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "AverageRate",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "EndOfDayRate",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Customer",
+ schema: "Sales",
+ columns: [
+ {
+ name: "CustomerID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "PersonID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "StoreID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TerritoryID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "AccountNumber",
+ dataType: "varchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Department",
+ schema: "HumanResources",
+ columns: [
+ {
+ name: "DepartmentID",
+ dataType: "smallint",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "GroupName",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Document",
+ schema: "Production",
+ columns: [
+ {
+ name: "DocumentNode",
+ dataType: "hierarchyid",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "DocumentLevel",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Title",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Owner",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "FolderFlag",
+ dataType: "bit",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "FileName",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "FileExtension",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Revision",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ChangeNumber",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Status",
+ dataType: "tinyint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "DocumentSummary",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Document",
+ dataType: "varbinary",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "SalesOrderDetail",
+ schema: "Sales",
+ columns: [
+ {
+ name: "SalesOrderID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "SalesOrderDetailID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "CarrierTrackingNumber",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "OrderQty",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SpecialOfferID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "UnitPrice",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "UnitPriceDiscount",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "LineTotal",
+ dataType: "numeric",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "EmailAddress",
+ schema: "Person",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "EmailAddressID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "EmailAddress",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Employee",
+ schema: "HumanResources",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "NationalIDNumber",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "LoginID",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "OrganizationNode",
+ dataType: "hierarchyid",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "OrganizationLevel",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "JobTitle",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "BirthDate",
+ dataType: "date",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "MaritalStatus",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Gender",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "HireDate",
+ dataType: "date",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SalariedFlag",
+ dataType: "Flag",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "VacationHours",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SickLeaveHours",
+ dataType: "smallint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CurrentFlag",
+ dataType: "Flag",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "SalesOrderHeader",
+ schema: "Sales",
+ columns: [
+ {
+ name: "SalesOrderID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "RevisionNumber",
+ dataType: "tinyint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "OrderDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "DueDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ShipDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Status",
+ dataType: "tinyint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "OnlineOrderFlag",
+ dataType: "Flag",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SalesOrderNumber",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PurchaseOrderNumber",
+ dataType: "OrderNumber",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "AccountNumber",
+ dataType: "AccountNumber",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CustomerID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SalesPersonID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TerritoryID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "BillToAddressID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ShipToAddressID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ShipMethodID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CreditCardID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CreditCardApprovalCode",
+ dataType: "varchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CurrencyRateID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SubTotal",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TaxAmt",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Freight",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TotalDue",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Comment",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "EmployeeDepartmentHistory",
+ schema: "HumanResources",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "DepartmentID",
+ dataType: "smallint",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ShiftID",
+ dataType: "tinyint",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "StartDate",
+ dataType: "date",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "EndDate",
+ dataType: "date",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "EmployeePayHistory",
+ schema: "HumanResources",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "RateChangeDate",
+ dataType: "datetime",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "Rate",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PayFrequency",
+ dataType: "tinyint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "SalesOrderHeaderSalesReason",
+ schema: "Sales",
+ columns: [
+ {
+ name: "SalesOrderID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "SalesReasonID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "SalesPerson",
+ schema: "Sales",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "TerritoryID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SalesQuota",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Bonus",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CommissionPct",
+ dataType: "smallmoney",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SalesYTD",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SalesLastYear",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Illustration",
+ schema: "Production",
+ columns: [
+ {
+ name: "IllustrationID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Diagram",
+ dataType: "xml",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "JobCandidate",
+ schema: "HumanResources",
+ columns: [
+ {
+ name: "JobCandidateID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Resume",
+ dataType: "xml",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Location",
+ schema: "Production",
+ columns: [
+ {
+ name: "LocationID",
+ dataType: "smallint",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CostRate",
+ dataType: "smallmoney",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Availability",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Password",
+ schema: "Person",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "PasswordHash",
+ dataType: "varchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PasswordSalt",
+ dataType: "varchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "SalesPersonQuotaHistory",
+ schema: "Sales",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "QuotaDate",
+ dataType: "datetime",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "SalesQuota",
+ dataType: "money",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Person",
+ schema: "Person",
+ columns: [
+ {
+ name: "BusinessEntityID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "PersonType",
+ dataType: "nchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "NameStyle",
+ dataType: "NameStyle",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Title",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "FirstName",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "MiddleName",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "LastName",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Suffix",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "EmailPromotion",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "AdditionalContactInfo",
+ dataType: "xml",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Demographics",
+ dataType: "xml",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "rowguid",
+ dataType: "uniqueidentifier",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "SalesReason",
+ schema: "Sales",
+ columns: [
+ {
+ name: "SalesReasonID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "Name",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ReasonType",
+ dataType: "Name",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ModifiedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ ],
+ relationships: [
+ {
+ foreignKeyName: "FK_Customer_SalesTerritory_TerritoryID",
+ schemaName: "Sales",
+ entity: "Customer",
+ column: "TerritoryID",
+ referencedSchema: "Sales",
+ referencedEntity: "SalesTerritory",
+ referencedColumn: "TerritoryID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesOrderHeader_SalesTerritory_TerritoryID",
+ schemaName: "Sales",
+ entity: "SalesOrderHeader",
+ column: "TerritoryID",
+ referencedSchema: "Sales",
+ referencedEntity: "SalesTerritory",
+ referencedColumn: "TerritoryID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesPerson_SalesTerritory_TerritoryID",
+ schemaName: "Sales",
+ entity: "SalesPerson",
+ column: "TerritoryID",
+ referencedSchema: "Sales",
+ referencedEntity: "SalesTerritory",
+ referencedColumn: "TerritoryID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesTerritoryHistory_SalesTerritory_TerritoryID",
+ schemaName: "Sales",
+ entity: "SalesTerritoryHistory",
+ column: "TerritoryID",
+ referencedSchema: "Sales",
+ referencedEntity: "SalesTerritory",
+ referencedColumn: "TerritoryID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_StateProvince_SalesTerritory_TerritoryID",
+ schemaName: "Person",
+ entity: "StateProvince",
+ column: "TerritoryID",
+ referencedSchema: "Sales",
+ referencedEntity: "SalesTerritory",
+ referencedColumn: "TerritoryID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_PersonPhone_PhoneNumberType_PhoneNumberTypeID",
+ schemaName: "Person",
+ entity: "PersonPhone",
+ column: "PhoneNumberTypeID",
+ referencedSchema: "Person",
+ referencedEntity: "PhoneNumberType",
+ referencedColumn: "PhoneNumberTypeID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_BillOfMaterials_Product_ProductAssemblyID",
+ schemaName: "Production",
+ entity: "BillOfMaterials",
+ column: "ProductAssemblyID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_BillOfMaterials_Product_ComponentID",
+ schemaName: "Production",
+ entity: "BillOfMaterials",
+ column: "ComponentID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductCostHistory_Product_ProductID",
+ schemaName: "Production",
+ entity: "ProductCostHistory",
+ column: "ProductID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductDocument_Product_ProductID",
+ schemaName: "Production",
+ entity: "ProductDocument",
+ column: "ProductID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductInventory_Product_ProductID",
+ schemaName: "Production",
+ entity: "ProductInventory",
+ column: "ProductID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductListPriceHistory_Product_ProductID",
+ schemaName: "Production",
+ entity: "ProductListPriceHistory",
+ column: "ProductID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductProductPhoto_Product_ProductID",
+ schemaName: "Production",
+ entity: "ProductProductPhoto",
+ column: "ProductID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductReview_Product_ProductID",
+ schemaName: "Production",
+ entity: "ProductReview",
+ column: "ProductID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductVendor_Product_ProductID",
+ schemaName: "Purchasing",
+ entity: "ProductVendor",
+ column: "ProductID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_PurchaseOrderDetail_Product_ProductID",
+ schemaName: "Purchasing",
+ entity: "PurchaseOrderDetail",
+ column: "ProductID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ShoppingCartItem_Product_ProductID",
+ schemaName: "Sales",
+ entity: "ShoppingCartItem",
+ column: "ProductID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SpecialOfferProduct_Product_ProductID",
+ schemaName: "Sales",
+ entity: "SpecialOfferProduct",
+ column: "ProductID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_TransactionHistory_Product_ProductID",
+ schemaName: "Production",
+ entity: "TransactionHistory",
+ column: "ProductID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_WorkOrder_Product_ProductID",
+ schemaName: "Production",
+ entity: "WorkOrder",
+ column: "ProductID",
+ referencedSchema: "Production",
+ referencedEntity: "Product",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_WorkOrder_ScrapReason_ScrapReasonID",
+ schemaName: "Production",
+ entity: "WorkOrder",
+ column: "ScrapReasonID",
+ referencedSchema: "Production",
+ referencedEntity: "ScrapReason",
+ referencedColumn: "ScrapReasonID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_EmployeeDepartmentHistory_Shift_ShiftID",
+ schemaName: "HumanResources",
+ entity: "EmployeeDepartmentHistory",
+ column: "ShiftID",
+ referencedSchema: "HumanResources",
+ referencedEntity: "Shift",
+ referencedColumn: "ShiftID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductSubcategory_ProductCategory_ProductCategoryID",
+ schemaName: "Production",
+ entity: "ProductSubcategory",
+ column: "ProductCategoryID",
+ referencedSchema: "Production",
+ referencedEntity: "ProductCategory",
+ referencedColumn: "ProductCategoryID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_PurchaseOrderHeader_ShipMethod_ShipMethodID",
+ schemaName: "Purchasing",
+ entity: "PurchaseOrderHeader",
+ column: "ShipMethodID",
+ referencedSchema: "Purchasing",
+ referencedEntity: "ShipMethod",
+ referencedColumn: "ShipMethodID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesOrderHeader_ShipMethod_ShipMethodID",
+ schemaName: "Sales",
+ entity: "SalesOrderHeader",
+ column: "ShipMethodID",
+ referencedSchema: "Purchasing",
+ referencedEntity: "ShipMethod",
+ referencedColumn: "ShipMethodID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_ProductModelProductDescriptionCulture_ProductDescription_ProductDescriptionID",
+ schemaName: "Production",
+ entity: "ProductModelProductDescriptionCulture",
+ column: "ProductDescriptionID",
+ referencedSchema: "Production",
+ referencedEntity: "ProductDescription",
+ referencedColumn: "ProductDescriptionID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SpecialOfferProduct_SpecialOffer_SpecialOfferID",
+ schemaName: "Sales",
+ entity: "SpecialOfferProduct",
+ column: "SpecialOfferID",
+ referencedSchema: "Sales",
+ referencedEntity: "SpecialOffer",
+ referencedColumn: "SpecialOfferID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_BusinessEntityAddress_Address_AddressID",
+ schemaName: "Person",
+ entity: "BusinessEntityAddress",
+ column: "AddressID",
+ referencedSchema: "Person",
+ referencedEntity: "Address",
+ referencedColumn: "AddressID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesOrderHeader_Address_BillToAddressID",
+ schemaName: "Sales",
+ entity: "SalesOrderHeader",
+ column: "BillToAddressID",
+ referencedSchema: "Person",
+ referencedEntity: "Address",
+ referencedColumn: "AddressID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesOrderHeader_Address_ShipToAddressID",
+ schemaName: "Sales",
+ entity: "SalesOrderHeader",
+ column: "ShipToAddressID",
+ referencedSchema: "Person",
+ referencedEntity: "Address",
+ referencedColumn: "AddressID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_SalesOrderDetail_SpecialOfferProduct_SpecialOfferIDProductID",
+ schemaName: "Sales",
+ entity: "SalesOrderDetail",
+ column: "SpecialOfferID",
+ referencedSchema: "Sales",
+ referencedEntity: "SpecialOfferProduct",
+ referencedColumn: "SpecialOfferID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_SalesOrderDetail_SpecialOfferProduct_SpecialOfferIDProductID",
+ schemaName: "Sales",
+ entity: "SalesOrderDetail",
+ column: "ProductID",
+ referencedSchema: "Sales",
+ referencedEntity: "SpecialOfferProduct",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Product_ProductModel_ProductModelID",
+ schemaName: "Production",
+ entity: "Product",
+ column: "ProductModelID",
+ referencedSchema: "Production",
+ referencedEntity: "ProductModel",
+ referencedColumn: "ProductModelID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductModelIllustration_ProductModel_ProductModelID",
+ schemaName: "Production",
+ entity: "ProductModelIllustration",
+ column: "ProductModelID",
+ referencedSchema: "Production",
+ referencedEntity: "ProductModel",
+ referencedColumn: "ProductModelID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_ProductModelProductDescriptionCulture_ProductModel_ProductModelID",
+ schemaName: "Production",
+ entity: "ProductModelProductDescriptionCulture",
+ column: "ProductModelID",
+ referencedSchema: "Production",
+ referencedEntity: "ProductModel",
+ referencedColumn: "ProductModelID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_BusinessEntityAddress_AddressType_AddressTypeID",
+ schemaName: "Person",
+ entity: "BusinessEntityAddress",
+ column: "AddressTypeID",
+ referencedSchema: "Person",
+ referencedEntity: "AddressType",
+ referencedColumn: "AddressTypeID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Address_StateProvince_StateProvinceID",
+ schemaName: "Person",
+ entity: "Address",
+ column: "StateProvinceID",
+ referencedSchema: "Person",
+ referencedEntity: "StateProvince",
+ referencedColumn: "StateProvinceID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesTaxRate_StateProvince_StateProvinceID",
+ schemaName: "Sales",
+ entity: "SalesTaxRate",
+ column: "StateProvinceID",
+ referencedSchema: "Person",
+ referencedEntity: "StateProvince",
+ referencedColumn: "StateProvinceID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Customer_Store_StoreID",
+ schemaName: "Sales",
+ entity: "Customer",
+ column: "StoreID",
+ referencedSchema: "Sales",
+ referencedEntity: "Store",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductProductPhoto_ProductPhoto_ProductPhotoID",
+ schemaName: "Production",
+ entity: "ProductProductPhoto",
+ column: "ProductPhotoID",
+ referencedSchema: "Production",
+ referencedEntity: "ProductPhoto",
+ referencedColumn: "ProductPhotoID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_BusinessEntityAddress_BusinessEntity_BusinessEntityID",
+ schemaName: "Person",
+ entity: "BusinessEntityAddress",
+ column: "BusinessEntityID",
+ referencedSchema: "Person",
+ referencedEntity: "BusinessEntity",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_BusinessEntityContact_BusinessEntity_BusinessEntityID",
+ schemaName: "Person",
+ entity: "BusinessEntityContact",
+ column: "BusinessEntityID",
+ referencedSchema: "Person",
+ referencedEntity: "BusinessEntity",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Person_BusinessEntity_BusinessEntityID",
+ schemaName: "Person",
+ entity: "Person",
+ column: "BusinessEntityID",
+ referencedSchema: "Person",
+ referencedEntity: "BusinessEntity",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Store_BusinessEntity_BusinessEntityID",
+ schemaName: "Sales",
+ entity: "Store",
+ column: "BusinessEntityID",
+ referencedSchema: "Person",
+ referencedEntity: "BusinessEntity",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Vendor_BusinessEntity_BusinessEntityID",
+ schemaName: "Purchasing",
+ entity: "Vendor",
+ column: "BusinessEntityID",
+ referencedSchema: "Person",
+ referencedEntity: "BusinessEntity",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Product_ProductSubcategory_ProductSubcategoryID",
+ schemaName: "Production",
+ entity: "Product",
+ column: "ProductSubcategoryID",
+ referencedSchema: "Production",
+ referencedEntity: "ProductSubcategory",
+ referencedColumn: "ProductSubcategoryID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_BillOfMaterials_UnitMeasure_UnitMeasureCode",
+ schemaName: "Production",
+ entity: "BillOfMaterials",
+ column: "UnitMeasureCode",
+ referencedSchema: "Production",
+ referencedEntity: "UnitMeasure",
+ referencedColumn: "UnitMeasureCode",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Product_UnitMeasure_SizeUnitMeasureCode",
+ schemaName: "Production",
+ entity: "Product",
+ column: "SizeUnitMeasureCode",
+ referencedSchema: "Production",
+ referencedEntity: "UnitMeasure",
+ referencedColumn: "UnitMeasureCode",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Product_UnitMeasure_WeightUnitMeasureCode",
+ schemaName: "Production",
+ entity: "Product",
+ column: "WeightUnitMeasureCode",
+ referencedSchema: "Production",
+ referencedEntity: "UnitMeasure",
+ referencedColumn: "UnitMeasureCode",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductVendor_UnitMeasure_UnitMeasureCode",
+ schemaName: "Purchasing",
+ entity: "ProductVendor",
+ column: "UnitMeasureCode",
+ referencedSchema: "Production",
+ referencedEntity: "UnitMeasure",
+ referencedColumn: "UnitMeasureCode",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductVendor_Vendor_BusinessEntityID",
+ schemaName: "Purchasing",
+ entity: "ProductVendor",
+ column: "BusinessEntityID",
+ referencedSchema: "Purchasing",
+ referencedEntity: "Vendor",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_PurchaseOrderHeader_Vendor_VendorID",
+ schemaName: "Purchasing",
+ entity: "PurchaseOrderHeader",
+ column: "VendorID",
+ referencedSchema: "Purchasing",
+ referencedEntity: "Vendor",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_BusinessEntityContact_ContactType_ContactTypeID",
+ schemaName: "Person",
+ entity: "BusinessEntityContact",
+ column: "ContactTypeID",
+ referencedSchema: "Person",
+ referencedEntity: "ContactType",
+ referencedColumn: "ContactTypeID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_CountryRegionCurrency_CountryRegion_CountryRegionCode",
+ schemaName: "Sales",
+ entity: "CountryRegionCurrency",
+ column: "CountryRegionCode",
+ referencedSchema: "Person",
+ referencedEntity: "CountryRegion",
+ referencedColumn: "CountryRegionCode",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesTerritory_CountryRegion_CountryRegionCode",
+ schemaName: "Sales",
+ entity: "SalesTerritory",
+ column: "CountryRegionCode",
+ referencedSchema: "Person",
+ referencedEntity: "CountryRegion",
+ referencedColumn: "CountryRegionCode",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_StateProvince_CountryRegion_CountryRegionCode",
+ schemaName: "Person",
+ entity: "StateProvince",
+ column: "CountryRegionCode",
+ referencedSchema: "Person",
+ referencedEntity: "CountryRegion",
+ referencedColumn: "CountryRegionCode",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_WorkOrderRouting_WorkOrder_WorkOrderID",
+ schemaName: "Production",
+ entity: "WorkOrderRouting",
+ column: "WorkOrderID",
+ referencedSchema: "Production",
+ referencedEntity: "WorkOrder",
+ referencedColumn: "WorkOrderID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_PersonCreditCard_CreditCard_CreditCardID",
+ schemaName: "Sales",
+ entity: "PersonCreditCard",
+ column: "CreditCardID",
+ referencedSchema: "Sales",
+ referencedEntity: "CreditCard",
+ referencedColumn: "CreditCardID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesOrderHeader_CreditCard_CreditCardID",
+ schemaName: "Sales",
+ entity: "SalesOrderHeader",
+ column: "CreditCardID",
+ referencedSchema: "Sales",
+ referencedEntity: "CreditCard",
+ referencedColumn: "CreditCardID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_ProductModelProductDescriptionCulture_Culture_CultureID",
+ schemaName: "Production",
+ entity: "ProductModelProductDescriptionCulture",
+ column: "CultureID",
+ referencedSchema: "Production",
+ referencedEntity: "Culture",
+ referencedColumn: "CultureID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_CountryRegionCurrency_Currency_CurrencyCode",
+ schemaName: "Sales",
+ entity: "CountryRegionCurrency",
+ column: "CurrencyCode",
+ referencedSchema: "Sales",
+ referencedEntity: "Currency",
+ referencedColumn: "CurrencyCode",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_CurrencyRate_Currency_FromCurrencyCode",
+ schemaName: "Sales",
+ entity: "CurrencyRate",
+ column: "FromCurrencyCode",
+ referencedSchema: "Sales",
+ referencedEntity: "Currency",
+ referencedColumn: "CurrencyCode",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_CurrencyRate_Currency_ToCurrencyCode",
+ schemaName: "Sales",
+ entity: "CurrencyRate",
+ column: "ToCurrencyCode",
+ referencedSchema: "Sales",
+ referencedEntity: "Currency",
+ referencedColumn: "CurrencyCode",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_PurchaseOrderDetail_PurchaseOrderHeader_PurchaseOrderID",
+ schemaName: "Purchasing",
+ entity: "PurchaseOrderDetail",
+ column: "PurchaseOrderID",
+ referencedSchema: "Purchasing",
+ referencedEntity: "PurchaseOrderHeader",
+ referencedColumn: "PurchaseOrderID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesOrderHeader_CurrencyRate_CurrencyRateID",
+ schemaName: "Sales",
+ entity: "SalesOrderHeader",
+ column: "CurrencyRateID",
+ referencedSchema: "Sales",
+ referencedEntity: "CurrencyRate",
+ referencedColumn: "CurrencyRateID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesOrderHeader_Customer_CustomerID",
+ schemaName: "Sales",
+ entity: "SalesOrderHeader",
+ column: "CustomerID",
+ referencedSchema: "Sales",
+ referencedEntity: "Customer",
+ referencedColumn: "CustomerID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_EmployeeDepartmentHistory_Department_DepartmentID",
+ schemaName: "HumanResources",
+ entity: "EmployeeDepartmentHistory",
+ column: "DepartmentID",
+ referencedSchema: "HumanResources",
+ referencedEntity: "Department",
+ referencedColumn: "DepartmentID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductDocument_Document_DocumentNode",
+ schemaName: "Production",
+ entity: "ProductDocument",
+ column: "DocumentNode",
+ referencedSchema: "Production",
+ referencedEntity: "Document",
+ referencedColumn: "DocumentNode",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Document_Employee_Owner",
+ schemaName: "Production",
+ entity: "Document",
+ column: "Owner",
+ referencedSchema: "HumanResources",
+ referencedEntity: "Employee",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_EmployeeDepartmentHistory_Employee_BusinessEntityID",
+ schemaName: "HumanResources",
+ entity: "EmployeeDepartmentHistory",
+ column: "BusinessEntityID",
+ referencedSchema: "HumanResources",
+ referencedEntity: "Employee",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_EmployeePayHistory_Employee_BusinessEntityID",
+ schemaName: "HumanResources",
+ entity: "EmployeePayHistory",
+ column: "BusinessEntityID",
+ referencedSchema: "HumanResources",
+ referencedEntity: "Employee",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_JobCandidate_Employee_BusinessEntityID",
+ schemaName: "HumanResources",
+ entity: "JobCandidate",
+ column: "BusinessEntityID",
+ referencedSchema: "HumanResources",
+ referencedEntity: "Employee",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_PurchaseOrderHeader_Employee_EmployeeID",
+ schemaName: "Purchasing",
+ entity: "PurchaseOrderHeader",
+ column: "EmployeeID",
+ referencedSchema: "HumanResources",
+ referencedEntity: "Employee",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesPerson_Employee_BusinessEntityID",
+ schemaName: "Sales",
+ entity: "SalesPerson",
+ column: "BusinessEntityID",
+ referencedSchema: "HumanResources",
+ referencedEntity: "Employee",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesOrderDetail_SalesOrderHeader_SalesOrderID",
+ schemaName: "Sales",
+ entity: "SalesOrderDetail",
+ column: "SalesOrderID",
+ referencedSchema: "Sales",
+ referencedEntity: "SalesOrderHeader",
+ referencedColumn: "SalesOrderID",
+ onDeleteAction: 1,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_SalesOrderHeaderSalesReason_SalesOrderHeader_SalesOrderID",
+ schemaName: "Sales",
+ entity: "SalesOrderHeaderSalesReason",
+ column: "SalesOrderID",
+ referencedSchema: "Sales",
+ referencedEntity: "SalesOrderHeader",
+ referencedColumn: "SalesOrderID",
+ onDeleteAction: 1,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesOrderHeader_SalesPerson_SalesPersonID",
+ schemaName: "Sales",
+ entity: "SalesOrderHeader",
+ column: "SalesPersonID",
+ referencedSchema: "Sales",
+ referencedEntity: "SalesPerson",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesPersonQuotaHistory_SalesPerson_BusinessEntityID",
+ schemaName: "Sales",
+ entity: "SalesPersonQuotaHistory",
+ column: "BusinessEntityID",
+ referencedSchema: "Sales",
+ referencedEntity: "SalesPerson",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_SalesTerritoryHistory_SalesPerson_BusinessEntityID",
+ schemaName: "Sales",
+ entity: "SalesTerritoryHistory",
+ column: "BusinessEntityID",
+ referencedSchema: "Sales",
+ referencedEntity: "SalesPerson",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Store_SalesPerson_SalesPersonID",
+ schemaName: "Sales",
+ entity: "Store",
+ column: "SalesPersonID",
+ referencedSchema: "Sales",
+ referencedEntity: "SalesPerson",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductModelIllustration_Illustration_IllustrationID",
+ schemaName: "Production",
+ entity: "ProductModelIllustration",
+ column: "IllustrationID",
+ referencedSchema: "Production",
+ referencedEntity: "Illustration",
+ referencedColumn: "IllustrationID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_ProductInventory_Location_LocationID",
+ schemaName: "Production",
+ entity: "ProductInventory",
+ column: "LocationID",
+ referencedSchema: "Production",
+ referencedEntity: "Location",
+ referencedColumn: "LocationID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_WorkOrderRouting_Location_LocationID",
+ schemaName: "Production",
+ entity: "WorkOrderRouting",
+ column: "LocationID",
+ referencedSchema: "Production",
+ referencedEntity: "Location",
+ referencedColumn: "LocationID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_BusinessEntityContact_Person_PersonID",
+ schemaName: "Person",
+ entity: "BusinessEntityContact",
+ column: "PersonID",
+ referencedSchema: "Person",
+ referencedEntity: "Person",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Customer_Person_PersonID",
+ schemaName: "Sales",
+ entity: "Customer",
+ column: "PersonID",
+ referencedSchema: "Person",
+ referencedEntity: "Person",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_EmailAddress_Person_BusinessEntityID",
+ schemaName: "Person",
+ entity: "EmailAddress",
+ column: "BusinessEntityID",
+ referencedSchema: "Person",
+ referencedEntity: "Person",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Employee_Person_BusinessEntityID",
+ schemaName: "HumanResources",
+ entity: "Employee",
+ column: "BusinessEntityID",
+ referencedSchema: "Person",
+ referencedEntity: "Person",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Password_Person_BusinessEntityID",
+ schemaName: "Person",
+ entity: "Password",
+ column: "BusinessEntityID",
+ referencedSchema: "Person",
+ referencedEntity: "Person",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_PersonCreditCard_Person_BusinessEntityID",
+ schemaName: "Sales",
+ entity: "PersonCreditCard",
+ column: "BusinessEntityID",
+ referencedSchema: "Person",
+ referencedEntity: "Person",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_PersonPhone_Person_BusinessEntityID",
+ schemaName: "Person",
+ entity: "PersonPhone",
+ column: "BusinessEntityID",
+ referencedSchema: "Person",
+ referencedEntity: "Person",
+ referencedColumn: "BusinessEntityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_SalesOrderHeaderSalesReason_SalesReason_SalesReasonID",
+ schemaName: "Sales",
+ entity: "SalesOrderHeaderSalesReason",
+ column: "SalesReasonID",
+ referencedSchema: "Sales",
+ referencedEntity: "SalesReason",
+ referencedColumn: "SalesReasonID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ ],
+};
diff --git a/ts-examples/schemas/schema_ecommerce_demo.js b/ts-examples/schemas/schema_ecommerce_demo.js
new file mode 100644
index 0000000..0bf0c9c
--- /dev/null
+++ b/ts-examples/schemas/schema_ecommerce_demo.js
@@ -0,0 +1,453 @@
+export const ecommerceDemoSchema = {
+ entities: [
+ {
+ name: "Customers",
+ schema: "Demo",
+ columns: [
+ {
+ name: "CustomerID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "FirstName",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "LastName",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Email",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Phone",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CreatedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Addresses",
+ schema: "Demo",
+ columns: [
+ {
+ name: "AddressID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "CustomerID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "AddressLine1",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "AddressLine2",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "City",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "State",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PostalCode",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Country",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "IsBillingAddress",
+ dataType: "bit",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "IsShippingAddress",
+ dataType: "bit",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Categories",
+ schema: "Demo",
+ columns: [
+ {
+ name: "CategoryID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "CategoryName",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Description",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Suppliers",
+ schema: "Demo",
+ columns: [
+ {
+ name: "SupplierID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "SupplierName",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ContactName",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Phone",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Email",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Country",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Products",
+ schema: "Demo",
+ columns: [
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "CategoryID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SupplierID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ProductName",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Description",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Price",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "StockQuantity",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CreatedDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Orders",
+ schema: "Demo",
+ columns: [
+ {
+ name: "OrderID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "CustomerID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ShippingAddressID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "BillingAddressID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "OrderDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TotalAmount",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "OrderDetails",
+ schema: "Demo",
+ columns: [
+ {
+ name: "OrderDetailID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "OrderID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ProductID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Quantity",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Price",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Payments",
+ schema: "Demo",
+ columns: [
+ {
+ name: "PaymentID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "OrderID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PaymentDate",
+ dataType: "datetime",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PaymentMethod",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PaymentStatus",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Amount",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ ],
+ relationships: [
+ {
+ foreignKeyName: "FK__Addresses__Custo__3D5E1FD2",
+ schemaName: "Demo",
+ entity: "Addresses",
+ column: "CustomerID",
+ referencedSchema: "Demo",
+ referencedEntity: "Customers",
+ referencedColumn: "CustomerID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK__Orders__Customer__4BAC3F29",
+ schemaName: "Demo",
+ entity: "Orders",
+ column: "CustomerID",
+ referencedSchema: "Demo",
+ referencedEntity: "Customers",
+ referencedColumn: "CustomerID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK__Orders__Shipping__4CA06362",
+ schemaName: "Demo",
+ entity: "Orders",
+ column: "ShippingAddressID",
+ referencedSchema: "Demo",
+ referencedEntity: "Addresses",
+ referencedColumn: "AddressID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK__Orders__BillingA__4D94879B",
+ schemaName: "Demo",
+ entity: "Orders",
+ column: "BillingAddressID",
+ referencedSchema: "Demo",
+ referencedEntity: "Addresses",
+ referencedColumn: "AddressID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK__Products__Catego__46E78A0C",
+ schemaName: "Demo",
+ entity: "Products",
+ column: "CategoryID",
+ referencedSchema: "Demo",
+ referencedEntity: "Categories",
+ referencedColumn: "CategoryID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK__Products__Suppli__47DBAE45",
+ schemaName: "Demo",
+ entity: "Products",
+ column: "SupplierID",
+ referencedSchema: "Demo",
+ referencedEntity: "Suppliers",
+ referencedColumn: "SupplierID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK__OrderDeta__Produ__52593CB8",
+ schemaName: "Demo",
+ entity: "OrderDetails",
+ column: "ProductID",
+ referencedSchema: "Demo",
+ referencedEntity: "Products",
+ referencedColumn: "ProductID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK__OrderDeta__Order__5165187F",
+ schemaName: "Demo",
+ entity: "OrderDetails",
+ column: "OrderID",
+ referencedSchema: "Demo",
+ referencedEntity: "Orders",
+ referencedColumn: "OrderID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK__Payments__OrderI__571DF1D5",
+ schemaName: "Demo",
+ entity: "Payments",
+ column: "OrderID",
+ referencedSchema: "Demo",
+ referencedEntity: "Orders",
+ referencedColumn: "OrderID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ ],
+};
diff --git a/ts-examples/schemas/schema_world_wide_importers.js b/ts-examples/schemas/schema_world_wide_importers.js
index 7c90b62..5bb991f 100644
--- a/ts-examples/schemas/schema_world_wide_importers.js
+++ b/ts-examples/schemas/schema_world_wide_importers.js
@@ -1,89 +1,35 @@
export const worldWideImporters = {
entities: [
{
- name: "CustomerTransactions",
- schema: "Sales",
+ name: "Colors",
+ schema: "Warehouse",
columns: [
{
- name: "CustomerTransactionID",
+ name: "ColorID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "CustomerID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "TransactionTypeID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "InvoiceID",
- dataType: "int",
+ name: "ColorName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PaymentMethodID",
+ name: "LastEditedBy",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "TransactionDate",
- dataType: "date",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "AmountExcludingTax",
- dataType: "decimal",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "TaxAmount",
- dataType: "decimal",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "TransactionAmount",
- dataType: "decimal",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "OutstandingBalance",
- dataType: "decimal",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "FinalizationDate",
- dataType: "date",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "IsFinalized",
- dataType: "bit",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "LastEditedBy",
- dataType: "int",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedWhen",
+ name: "ValidTo",
dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
@@ -91,17 +37,17 @@ export const worldWideImporters = {
],
},
{
- name: "CustomerCategories_Archive",
- schema: "Sales",
+ name: "Colors_Archive",
+ schema: "Warehouse",
columns: [
{
- name: "CustomerCategoryID",
+ name: "ColorID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CustomerCategoryName",
+ name: "ColorName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
@@ -127,17 +73,17 @@ export const worldWideImporters = {
],
},
{
- name: "InvoiceLines",
+ name: "OrderLines",
schema: "Sales",
columns: [
{
- name: "InvoiceLineID",
+ name: "OrderLineID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "InvoiceID",
+ name: "OrderID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
@@ -179,20 +125,14 @@ export const worldWideImporters = {
isIdentity: false,
},
{
- name: "TaxAmount",
- dataType: "decimal",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "LineProfit",
- dataType: "decimal",
+ name: "PickedQuantity",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ExtendedPrice",
- dataType: "decimal",
+ name: "PickingCompletedWhen",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
@@ -211,143 +151,161 @@ export const worldWideImporters = {
],
},
{
- name: "Invoices",
- schema: "Sales",
+ name: "PackageTypes",
+ schema: "Warehouse",
columns: [
{
- name: "InvoiceID",
+ name: "PackageTypeID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "CustomerID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "BillToCustomerID",
- dataType: "int",
+ name: "PackageTypeName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "OrderID",
+ name: "LastEditedBy",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryMethodID",
- dataType: "int",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ContactPersonID",
- dataType: "int",
+ name: "ValidTo",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "PackageTypes_Archive",
+ schema: "Warehouse",
+ columns: [
{
- name: "AccountsPersonID",
+ name: "PackageTypeID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SalespersonPersonID",
- dataType: "int",
+ name: "PackageTypeName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PackedByPersonID",
+ name: "LastEditedBy",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "InvoiceDate",
- dataType: "date",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CustomerPurchaseOrderNumber",
- dataType: "nvarchar",
+ name: "ValidTo",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "StockGroups",
+ schema: "Warehouse",
+ columns: [
{
- name: "IsCreditNote",
- dataType: "bit",
- isPrimaryKey: false,
+ name: "StockGroupID",
+ dataType: "int",
+ isPrimaryKey: true,
isIdentity: false,
},
{
- name: "CreditNoteReason",
+ name: "StockGroupName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Comments",
- dataType: "nvarchar",
+ name: "LastEditedBy",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryInstructions",
- dataType: "nvarchar",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "InternalComments",
- dataType: "nvarchar",
+ name: "ValidTo",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "StockItemStockGroups",
+ schema: "Warehouse",
+ columns: [
{
- name: "TotalDryItems",
+ name: "StockItemStockGroupID",
dataType: "int",
- isPrimaryKey: false,
+ isPrimaryKey: true,
isIdentity: false,
},
{
- name: "TotalChillerItems",
+ name: "StockItemID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryRun",
- dataType: "nvarchar",
+ name: "StockGroupID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "RunPosition",
- dataType: "nvarchar",
+ name: "LastEditedBy",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ReturnedDeliveryData",
- dataType: "nvarchar",
+ name: "LastEditedWhen",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "StockGroups_Archive",
+ schema: "Warehouse",
+ columns: [
{
- name: "ConfirmedDeliveryTime",
- dataType: "datetime2",
+ name: "StockGroupID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ConfirmedReceivedBy",
+ name: "StockGroupName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
@@ -359,7 +317,13 @@ export const worldWideImporters = {
isIdentity: false,
},
{
- name: "LastEditedWhen",
+ name: "ValidFrom",
+ dataType: "datetime2",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ValidTo",
dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
@@ -367,77 +331,65 @@ export const worldWideImporters = {
],
},
{
- name: "OrderLines",
- schema: "Sales",
+ name: "StateProvinces",
+ schema: "Application",
columns: [
{
- name: "OrderLineID",
+ name: "StateProvinceID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "OrderID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "StockItemID",
- dataType: "int",
+ name: "StateProvinceCode",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Description",
+ name: "StateProvinceName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PackageTypeID",
+ name: "CountryID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Quantity",
- dataType: "int",
+ name: "SalesTerritory",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "UnitPrice",
- dataType: "decimal",
+ name: "Border",
+ dataType: "geography",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "TaxRate",
- dataType: "decimal",
+ name: "LatestRecordedPopulation",
+ dataType: "bigint",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PickedQuantity",
+ name: "LastEditedBy",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PickingCompletedWhen",
+ name: "ValidFrom",
dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "LastEditedWhen",
+ name: "ValidTo",
dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
@@ -445,11 +397,11 @@ export const worldWideImporters = {
],
},
{
- name: "Orders",
+ name: "CustomerTransactions",
schema: "Sales",
columns: [
{
- name: "OrderID",
+ name: "CustomerTransactionID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
@@ -461,74 +413,62 @@ export const worldWideImporters = {
isIdentity: false,
},
{
- name: "SalespersonPersonID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "PickedByPersonID",
+ name: "TransactionTypeID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ContactPersonID",
+ name: "InvoiceID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BackorderOrderID",
+ name: "PaymentMethodID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "OrderDate",
- dataType: "date",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ExpectedDeliveryDate",
+ name: "TransactionDate",
dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CustomerPurchaseOrderNumber",
- dataType: "nvarchar",
+ name: "AmountExcludingTax",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsUndersupplyBackordered",
- dataType: "bit",
+ name: "TaxAmount",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Comments",
- dataType: "nvarchar",
+ name: "TransactionAmount",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryInstructions",
- dataType: "nvarchar",
+ name: "OutstandingBalance",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "InternalComments",
- dataType: "nvarchar",
+ name: "FinalizationDate",
+ dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PickingCompletedWhen",
- dataType: "datetime2",
+ name: "IsFinalized",
+ dataType: "bit",
isPrimaryKey: false,
isIdentity: false,
},
@@ -547,135 +487,189 @@ export const worldWideImporters = {
],
},
{
- name: "Customers_Archive",
- schema: "Sales",
+ name: "StateProvinces_Archive",
+ schema: "Application",
columns: [
{
- name: "CustomerID",
+ name: "StateProvinceID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CustomerName",
+ name: "StateProvinceCode",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BillToCustomerID",
- dataType: "int",
+ name: "StateProvinceName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CustomerCategoryID",
+ name: "CountryID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BuyingGroupID",
- dataType: "int",
+ name: "SalesTerritory",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PrimaryContactPersonID",
- dataType: "int",
+ name: "Border",
+ dataType: "geography",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "AlternateContactPersonID",
- dataType: "int",
+ name: "LatestRecordedPopulation",
+ dataType: "bigint",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryMethodID",
+ name: "LastEditedBy",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryCityID",
+ name: "ValidFrom",
+ dataType: "datetime2",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ValidTo",
+ dataType: "datetime2",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Cities",
+ schema: "Application",
+ columns: [
+ {
+ name: "CityID",
dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "CityName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PostalCityID",
+ name: "StateProvinceID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CreditLimit",
- dataType: "decimal",
+ name: "Location",
+ dataType: "geography",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "AccountOpenedDate",
- dataType: "date",
+ name: "LatestRecordedPopulation",
+ dataType: "bigint",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StandardDiscountPercentage",
- dataType: "decimal",
+ name: "LastEditedBy",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsStatementSent",
- dataType: "bit",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsOnCreditHold",
- dataType: "bit",
+ name: "ValidTo",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "Cities_Archive",
+ schema: "Application",
+ columns: [
{
- name: "PaymentDays",
+ name: "CityID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PhoneNumber",
+ name: "CityName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "FaxNumber",
- dataType: "nvarchar",
+ name: "StateProvinceID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryRun",
- dataType: "nvarchar",
+ name: "Location",
+ dataType: "geography",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "RunPosition",
- dataType: "nvarchar",
+ name: "LatestRecordedPopulation",
+ dataType: "bigint",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "WebsiteURL",
- dataType: "nvarchar",
+ name: "LastEditedBy",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ValidFrom",
+ dataType: "datetime2",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ValidTo",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "SystemParameters",
+ schema: "Application",
+ columns: [
+ {
+ name: "SystemParameterID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
{
name: "DeliveryAddressLine1",
dataType: "nvarchar",
@@ -688,6 +682,12 @@ export const worldWideImporters = {
isPrimaryKey: false,
isIdentity: false,
},
+ {
+ name: "DeliveryCityID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
{
name: "DeliveryPostalCode",
dataType: "nvarchar",
@@ -712,6 +712,12 @@ export const worldWideImporters = {
isPrimaryKey: false,
isIdentity: false,
},
+ {
+ name: "PostalCityID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
{
name: "PostalPostalCode",
dataType: "nvarchar",
@@ -719,19 +725,19 @@ export const worldWideImporters = {
isIdentity: false,
},
{
- name: "LastEditedBy",
- dataType: "int",
+ name: "ApplicationSettings",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "LastEditedBy",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
+ name: "LastEditedWhen",
dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
@@ -739,77 +745,71 @@ export const worldWideImporters = {
],
},
{
- name: "SpecialDeals",
+ name: "InvoiceLines",
schema: "Sales",
columns: [
{
- name: "SpecialDealID",
+ name: "InvoiceLineID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "StockItemID",
+ name: "InvoiceID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CustomerID",
+ name: "StockItemID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BuyingGroupID",
- dataType: "int",
+ name: "Description",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CustomerCategoryID",
+ name: "PackageTypeID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StockGroupID",
+ name: "Quantity",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DealDescription",
- dataType: "nvarchar",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "StartDate",
- dataType: "date",
+ name: "UnitPrice",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "EndDate",
- dataType: "date",
+ name: "TaxRate",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DiscountAmount",
+ name: "TaxAmount",
dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DiscountPercentage",
+ name: "LineProfit",
dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "UnitPrice",
+ name: "ExtendedPrice",
dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
@@ -829,120 +829,36 @@ export const worldWideImporters = {
],
},
{
- name: "CustomerCategories",
- schema: "Sales",
+ name: "Suppliers",
+ schema: "Purchasing",
columns: [
{
- name: "CustomerCategoryID",
+ name: "SupplierID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "CustomerCategoryName",
+ name: "SupplierName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
+ name: "SupplierCategoryID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "PrimaryContactPersonID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
- dataType: "datetime2",
- isPrimaryKey: false,
- isIdentity: false,
- },
- ],
- },
- {
- name: "BuyingGroups",
- schema: "Sales",
- columns: [
- {
- name: "BuyingGroupID",
- dataType: "int",
- isPrimaryKey: true,
- isIdentity: false,
- },
- {
- name: "BuyingGroupName",
- dataType: "nvarchar",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "LastEditedBy",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ValidFrom",
- dataType: "datetime2",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ValidTo",
- dataType: "datetime2",
- isPrimaryKey: false,
- isIdentity: false,
- },
- ],
- },
- {
- name: "Customers",
- schema: "Sales",
- columns: [
- {
- name: "CustomerID",
- dataType: "int",
- isPrimaryKey: true,
- isIdentity: false,
- },
- {
- name: "CustomerName",
- dataType: "nvarchar",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "BillToCustomerID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "CustomerCategoryID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "BuyingGroupID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "PrimaryContactPersonID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "AlternateContactPersonID",
- dataType: "int",
+ name: "AlternateContactPersonID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
@@ -965,61 +881,61 @@ export const worldWideImporters = {
isIdentity: false,
},
{
- name: "CreditLimit",
- dataType: "decimal",
+ name: "SupplierReference",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "AccountOpenedDate",
- dataType: "date",
+ name: "BankAccountName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StandardDiscountPercentage",
- dataType: "decimal",
+ name: "BankAccountBranch",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsStatementSent",
- dataType: "bit",
+ name: "BankAccountCode",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsOnCreditHold",
- dataType: "bit",
+ name: "BankAccountNumber",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PaymentDays",
- dataType: "int",
+ name: "BankInternationalCode",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PhoneNumber",
- dataType: "nvarchar",
+ name: "PaymentDays",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "FaxNumber",
+ name: "InternalComments",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryRun",
+ name: "PhoneNumber",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "RunPosition",
+ name: "FaxNumber",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
@@ -1093,90 +1009,60 @@ export const worldWideImporters = {
],
},
{
- name: "ColdRoomTemperatures_Archive",
+ name: "StockItemTransactions",
schema: "Warehouse",
columns: [
{
- name: "ColdRoomTemperatureID",
- dataType: "bigint",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ColdRoomSensorNumber",
+ name: "StockItemTransactionID",
dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "RecordedWhen",
- dataType: "datetime2",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "Temperature",
- dataType: "decimal",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ValidFrom",
- dataType: "datetime2",
- isPrimaryKey: false,
+ isPrimaryKey: true,
isIdentity: false,
},
{
- name: "ValidTo",
- dataType: "datetime2",
+ name: "StockItemID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "StockItemHoldings",
- schema: "Warehouse",
- columns: [
{
- name: "StockItemID",
+ name: "TransactionTypeID",
dataType: "int",
- isPrimaryKey: true,
+ isPrimaryKey: false,
isIdentity: false,
},
{
- name: "QuantityOnHand",
+ name: "CustomerID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BinLocation",
- dataType: "nvarchar",
+ name: "InvoiceID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastStocktakeQuantity",
+ name: "SupplierID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastCostPrice",
- dataType: "decimal",
+ name: "PurchaseOrderID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ReorderLevel",
- dataType: "int",
+ name: "TransactionOccurredWhen",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "TargetStockLevel",
- dataType: "int",
+ name: "Quantity",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
@@ -1195,185 +1081,161 @@ export const worldWideImporters = {
],
},
{
- name: "PackageTypes_Archive",
- schema: "Warehouse",
+ name: "Suppliers_Archive",
+ schema: "Purchasing",
columns: [
{
- name: "PackageTypeID",
+ name: "SupplierID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PackageTypeName",
+ name: "SupplierName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
+ name: "SupplierCategoryID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "PrimaryContactPersonID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
- dataType: "datetime2",
+ name: "AlternateContactPersonID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "VehicleTemperatures",
- schema: "Warehouse",
- columns: [
{
- name: "VehicleTemperatureID",
- dataType: "bigint",
- isPrimaryKey: true,
- isIdentity: true,
+ name: "DeliveryMethodID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
},
{
- name: "VehicleRegistration",
- dataType: "nvarchar",
+ name: "DeliveryCityID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ChillerSensorNumber",
+ name: "PostalCityID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "RecordedWhen",
- dataType: "datetime2",
+ name: "SupplierReference",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Temperature",
- dataType: "decimal",
+ name: "BankAccountName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "FullSensorData",
+ name: "BankAccountBranch",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsCompressed",
- dataType: "bit",
+ name: "BankAccountCode",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CompressedSensorData",
- dataType: "varbinary",
+ name: "BankAccountNumber",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "StockItemStockGroups",
- schema: "Warehouse",
- columns: [
{
- name: "StockItemStockGroupID",
- dataType: "int",
- isPrimaryKey: true,
+ name: "BankInternationalCode",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StockItemID",
+ name: "PaymentDays",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StockGroupID",
- dataType: "int",
+ name: "InternalComments",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
- dataType: "int",
+ name: "PhoneNumber",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedWhen",
- dataType: "datetime2",
+ name: "FaxNumber",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "ColdRoomTemperatures",
- schema: "Warehouse",
- columns: [
{
- name: "ColdRoomTemperatureID",
- dataType: "bigint",
- isPrimaryKey: true,
- isIdentity: true,
+ name: "WebsiteURL",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
},
{
- name: "ColdRoomSensorNumber",
- dataType: "int",
+ name: "DeliveryAddressLine1",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "RecordedWhen",
- dataType: "datetime2",
+ name: "DeliveryAddressLine2",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Temperature",
- dataType: "decimal",
+ name: "DeliveryPostalCode",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "DeliveryLocation",
+ dataType: "geography",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
- dataType: "datetime2",
+ name: "PostalAddressLine1",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "Colors_Archive",
- schema: "Warehouse",
- columns: [
{
- name: "ColorID",
- dataType: "int",
+ name: "PostalAddressLine2",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ColorName",
+ name: "PostalPostalCode",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
@@ -1399,441 +1261,369 @@ export const worldWideImporters = {
],
},
{
- name: "StockGroups_Archive",
- schema: "Warehouse",
+ name: "Customers",
+ schema: "Sales",
columns: [
{
- name: "StockGroupID",
+ name: "CustomerID",
dataType: "int",
- isPrimaryKey: false,
+ isPrimaryKey: true,
isIdentity: false,
},
{
- name: "StockGroupName",
+ name: "CustomerName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
+ name: "BillToCustomerID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ValidTo",
- dataType: "datetime2",
+ name: "CustomerCategoryID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "StockItemTransactions",
- schema: "Warehouse",
- columns: [
{
- name: "StockItemTransactionID",
+ name: "BuyingGroupID",
dataType: "int",
- isPrimaryKey: true,
+ isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StockItemID",
+ name: "PrimaryContactPersonID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "TransactionTypeID",
+ name: "AlternateContactPersonID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CustomerID",
+ name: "DeliveryMethodID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "InvoiceID",
+ name: "DeliveryCityID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SupplierID",
+ name: "PostalCityID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PurchaseOrderID",
- dataType: "int",
+ name: "CreditLimit",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "TransactionOccurredWhen",
- dataType: "datetime2",
+ name: "AccountOpenedDate",
+ dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Quantity",
+ name: "StandardDiscountPercentage",
dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
- dataType: "int",
+ name: "IsStatementSent",
+ dataType: "bit",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedWhen",
- dataType: "datetime2",
+ name: "IsOnCreditHold",
+ dataType: "bit",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "StockItems_Archive",
- schema: "Warehouse",
- columns: [
{
- name: "StockItemID",
+ name: "PaymentDays",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StockItemName",
+ name: "PhoneNumber",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SupplierID",
- dataType: "int",
+ name: "FaxNumber",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ColorID",
- dataType: "int",
+ name: "DeliveryRun",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "UnitPackageID",
- dataType: "int",
+ name: "RunPosition",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "OuterPackageID",
- dataType: "int",
+ name: "WebsiteURL",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Brand",
+ name: "DeliveryAddressLine1",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Size",
+ name: "DeliveryAddressLine2",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LeadTimeDays",
- dataType: "int",
+ name: "DeliveryPostalCode",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "QuantityPerOuter",
- dataType: "int",
+ name: "DeliveryLocation",
+ dataType: "geography",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsChillerStock",
- dataType: "bit",
+ name: "PostalAddressLine1",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Barcode",
+ name: "PostalAddressLine2",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "TaxRate",
- dataType: "decimal",
+ name: "PostalPostalCode",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "UnitPrice",
- dataType: "decimal",
+ name: "LastEditedBy",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "RecommendedRetailPrice",
- dataType: "decimal",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "TypicalWeightPerUnit",
- dataType: "decimal",
+ name: "ValidTo",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "Customers_Archive",
+ schema: "Sales",
+ columns: [
{
- name: "MarketingComments",
- dataType: "nvarchar",
+ name: "CustomerID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "InternalComments",
+ name: "CustomerName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Photo",
- dataType: "varbinary",
+ name: "BillToCustomerID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CustomFields",
- dataType: "nvarchar",
+ name: "CustomerCategoryID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Tags",
- dataType: "nvarchar",
+ name: "BuyingGroupID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SearchDetails",
- dataType: "nvarchar",
+ name: "PrimaryContactPersonID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
+ name: "AlternateContactPersonID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "DeliveryMethodID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
- dataType: "datetime2",
+ name: "DeliveryCityID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "PackageTypes",
- schema: "Warehouse",
- columns: [
{
- name: "PackageTypeID",
+ name: "PostalCityID",
dataType: "int",
- isPrimaryKey: true,
+ isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PackageTypeName",
- dataType: "nvarchar",
+ name: "CreditLimit",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
- dataType: "int",
+ name: "AccountOpenedDate",
+ dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "StandardDiscountPercentage",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
- dataType: "datetime2",
+ name: "IsStatementSent",
+ dataType: "bit",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "StateProvinces",
- schema: "Application",
- columns: [
{
- name: "StateProvinceID",
- dataType: "int",
- isPrimaryKey: true,
+ name: "IsOnCreditHold",
+ dataType: "bit",
+ isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StateProvinceCode",
- dataType: "nvarchar",
+ name: "PaymentDays",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StateProvinceName",
+ name: "PhoneNumber",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CountryID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "SalesTerritory",
+ name: "FaxNumber",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Border",
- dataType: "geography",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "LatestRecordedPopulation",
- dataType: "bigint",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "LastEditedBy",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ValidFrom",
- dataType: "datetime2",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ValidTo",
- dataType: "datetime2",
+ name: "DeliveryRun",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "Countries",
- schema: "Application",
- columns: [
- {
- name: "CountryID",
- dataType: "int",
- isPrimaryKey: true,
- isIdentity: false,
- },
{
- name: "CountryName",
+ name: "RunPosition",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "FormalName",
+ name: "WebsiteURL",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsoAlpha3Code",
+ name: "DeliveryAddressLine1",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsoNumericCode",
- dataType: "int",
+ name: "DeliveryAddressLine2",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CountryType",
+ name: "DeliveryPostalCode",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LatestRecordedPopulation",
- dataType: "bigint",
+ name: "DeliveryLocation",
+ dataType: "geography",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Continent",
+ name: "PostalAddressLine1",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Region",
+ name: "PostalAddressLine2",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Subregion",
+ name: "PostalPostalCode",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
- {
- name: "Border",
- dataType: "geography",
- isPrimaryKey: false,
- isIdentity: false,
- },
{
name: "LastEditedBy",
dataType: "int",
@@ -1855,89 +1645,77 @@ export const worldWideImporters = {
],
},
{
- name: "Cities",
- schema: "Application",
+ name: "PurchaseOrders",
+ schema: "Purchasing",
columns: [
{
- name: "CityID",
+ name: "PurchaseOrderID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "CityName",
- dataType: "nvarchar",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "StateProvinceID",
+ name: "SupplierID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Location",
- dataType: "geography",
+ name: "OrderDate",
+ dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LatestRecordedPopulation",
- dataType: "bigint",
+ name: "DeliveryMethodID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
+ name: "ContactPersonID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "ExpectedDeliveryDate",
+ dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
- dataType: "datetime2",
+ name: "SupplierReference",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "SupplierCategories",
- schema: "Purchasing",
- columns: [
{
- name: "SupplierCategoryID",
- dataType: "int",
- isPrimaryKey: true,
+ name: "IsOrderFinalized",
+ dataType: "bit",
+ isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SupplierCategoryName",
+ name: "Comments",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
- dataType: "int",
+ name: "InternalComments",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "LastEditedBy",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
+ name: "LastEditedWhen",
dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
@@ -1945,233 +1723,311 @@ export const worldWideImporters = {
],
},
{
- name: "Suppliers",
- schema: "Purchasing",
+ name: "Orders",
+ schema: "Sales",
columns: [
{
- name: "SupplierID",
+ name: "OrderID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "SupplierName",
- dataType: "nvarchar",
+ name: "CustomerID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SupplierCategoryID",
+ name: "SalespersonPersonID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PrimaryContactPersonID",
+ name: "PickedByPersonID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "AlternateContactPersonID",
+ name: "ContactPersonID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryMethodID",
+ name: "BackorderOrderID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryCityID",
- dataType: "int",
+ name: "OrderDate",
+ dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PostalCityID",
- dataType: "int",
+ name: "ExpectedDeliveryDate",
+ dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SupplierReference",
+ name: "CustomerPurchaseOrderNumber",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BankAccountName",
- dataType: "nvarchar",
+ name: "IsUndersupplyBackordered",
+ dataType: "bit",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BankAccountBranch",
+ name: "Comments",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BankAccountCode",
+ name: "DeliveryInstructions",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BankAccountNumber",
+ name: "InternalComments",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BankInternationalCode",
- dataType: "nvarchar",
+ name: "PickingCompletedWhen",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PaymentDays",
+ name: "LastEditedBy",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "InternalComments",
- dataType: "nvarchar",
+ name: "LastEditedWhen",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "ColdRoomTemperatures",
+ schema: "Warehouse",
+ columns: [
{
- name: "PhoneNumber",
- dataType: "nvarchar",
- isPrimaryKey: false,
- isIdentity: false,
+ name: "ColdRoomTemperatureID",
+ dataType: "bigint",
+ isPrimaryKey: true,
+ isIdentity: true,
},
{
- name: "FaxNumber",
- dataType: "nvarchar",
+ name: "ColdRoomSensorNumber",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "WebsiteURL",
- dataType: "nvarchar",
+ name: "RecordedWhen",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryAddressLine1",
- dataType: "nvarchar",
+ name: "Temperature",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryAddressLine2",
- dataType: "nvarchar",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryPostalCode",
- dataType: "nvarchar",
+ name: "ValidTo",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "VehicleTemperatures",
+ schema: "Warehouse",
+ columns: [
{
- name: "DeliveryLocation",
- dataType: "geography",
+ name: "VehicleTemperatureID",
+ dataType: "bigint",
+ isPrimaryKey: true,
+ isIdentity: true,
+ },
+ {
+ name: "VehicleRegistration",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PostalAddressLine1",
- dataType: "nvarchar",
+ name: "ChillerSensorNumber",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PostalAddressLine2",
- dataType: "nvarchar",
+ name: "RecordedWhen",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PostalPostalCode",
- dataType: "nvarchar",
+ name: "Temperature",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
- dataType: "int",
+ name: "FullSensorData",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "IsCompressed",
+ dataType: "bit",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
- dataType: "datetime2",
+ name: "CompressedSensorData",
+ dataType: "varbinary",
isPrimaryKey: false,
isIdentity: false,
},
],
},
{
- name: "Colors",
- schema: "Warehouse",
+ name: "People",
+ schema: "Application",
columns: [
{
- name: "ColorID",
+ name: "PersonID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "ColorName",
+ name: "FullName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
- dataType: "int",
+ name: "PreferredName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "SearchName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
- dataType: "datetime2",
+ name: "IsPermittedToLogon",
+ dataType: "bit",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "StockGroups",
- schema: "Warehouse",
- columns: [
{
- name: "StockGroupID",
- dataType: "int",
- isPrimaryKey: true,
+ name: "LogonName",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StockGroupName",
+ name: "IsExternalLogonProvider",
+ dataType: "bit",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "HashedPassword",
+ dataType: "varbinary",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "IsSystemUser",
+ dataType: "bit",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "IsEmployee",
+ dataType: "bit",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "IsSalesperson",
+ dataType: "bit",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "UserPreferences",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "PhoneNumber",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "FaxNumber",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "EmailAddress",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Photo",
+ dataType: "varbinary",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CustomFields",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "OtherLanguages",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
@@ -2352,42 +2208,6 @@ export const worldWideImporters = {
},
],
},
- {
- name: "TransactionTypes_Archive",
- schema: "Application",
- columns: [
- {
- name: "TransactionTypeID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "TransactionTypeName",
- dataType: "nvarchar",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "LastEditedBy",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ValidFrom",
- dataType: "datetime2",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ValidTo",
- dataType: "datetime2",
- isPrimaryKey: false,
- isIdentity: false,
- },
- ],
- },
{
name: "People_Archive",
schema: "Application",
@@ -2521,24 +2341,30 @@ export const worldWideImporters = {
],
},
{
- name: "DeliveryMethods_Archive",
- schema: "Application",
+ name: "ColdRoomTemperatures_Archive",
+ schema: "Warehouse",
columns: [
{
- name: "DeliveryMethodID",
+ name: "ColdRoomTemperatureID",
+ dataType: "bigint",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ColdRoomSensorNumber",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryMethodName",
- dataType: "nvarchar",
+ name: "RecordedWhen",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
- dataType: "int",
+ name: "Temperature",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
@@ -2557,108 +2383,138 @@ export const worldWideImporters = {
],
},
{
- name: "DeliveryMethods",
- schema: "Application",
+ name: "StockItems_Archive",
+ schema: "Warehouse",
columns: [
{
- name: "DeliveryMethodID",
+ name: "StockItemID",
dataType: "int",
- isPrimaryKey: true,
+ isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryMethodName",
+ name: "StockItemName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
+ name: "SupplierID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "ColorID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
- dataType: "datetime2",
+ name: "UnitPackageID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "Countries_Archive",
- schema: "Application",
- columns: [
{
- name: "CountryID",
+ name: "OuterPackageID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CountryName",
+ name: "Brand",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "FormalName",
+ name: "Size",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsoAlpha3Code",
- dataType: "nvarchar",
+ name: "LeadTimeDays",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsoNumericCode",
+ name: "QuantityPerOuter",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CountryType",
+ name: "IsChillerStock",
+ dataType: "bit",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Barcode",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LatestRecordedPopulation",
- dataType: "bigint",
+ name: "TaxRate",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Continent",
+ name: "UnitPrice",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "RecommendedRetailPrice",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TypicalWeightPerUnit",
+ dataType: "decimal",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "MarketingComments",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Region",
+ name: "InternalComments",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Subregion",
+ name: "Photo",
+ dataType: "varbinary",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CustomFields",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Border",
- dataType: "geography",
+ name: "Tags",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "SearchDetails",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
@@ -2683,42 +2539,42 @@ export const worldWideImporters = {
],
},
{
- name: "StateProvinces_Archive",
+ name: "Countries",
schema: "Application",
columns: [
{
- name: "StateProvinceID",
+ name: "CountryID",
dataType: "int",
- isPrimaryKey: false,
+ isPrimaryKey: true,
isIdentity: false,
},
{
- name: "StateProvinceCode",
+ name: "CountryName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StateProvinceName",
+ name: "FormalName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CountryID",
- dataType: "int",
+ name: "IsoAlpha3Code",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SalesTerritory",
- dataType: "nvarchar",
+ name: "IsoNumericCode",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Border",
- dataType: "geography",
+ name: "CountryType",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
@@ -2728,6 +2584,30 @@ export const worldWideImporters = {
isPrimaryKey: false,
isIdentity: false,
},
+ {
+ name: "Continent",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Region",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Subregion",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Border",
+ dataType: "geography",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
{
name: "LastEditedBy",
dataType: "int",
@@ -2749,35 +2629,59 @@ export const worldWideImporters = {
],
},
{
- name: "PaymentMethods_Archive",
- schema: "Application",
+ name: "StockItemHoldings",
+ schema: "Warehouse",
columns: [
{
- name: "PaymentMethodID",
+ name: "StockItemID",
+ dataType: "int",
+ isPrimaryKey: true,
+ isIdentity: false,
+ },
+ {
+ name: "QuantityOnHand",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PaymentMethodName",
+ name: "BinLocation",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
+ name: "LastStocktakeQuantity",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "LastCostPrice",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
+ name: "ReorderLevel",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TargetStockLevel",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "LastEditedBy",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "LastEditedWhen",
dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
@@ -2785,117 +2689,153 @@ export const worldWideImporters = {
],
},
{
- name: "People",
- schema: "Application",
+ name: "PurchaseOrderLines",
+ schema: "Purchasing",
columns: [
{
- name: "PersonID",
+ name: "PurchaseOrderLineID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "FullName",
- dataType: "nvarchar",
+ name: "PurchaseOrderID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PreferredName",
- dataType: "nvarchar",
+ name: "StockItemID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SearchName",
+ name: "OrderedOuters",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Description",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsPermittedToLogon",
- dataType: "bit",
+ name: "ReceivedOuters",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LogonName",
- dataType: "nvarchar",
+ name: "PackageTypeID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsExternalLogonProvider",
- dataType: "bit",
+ name: "ExpectedUnitPricePerOuter",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "HashedPassword",
- dataType: "varbinary",
+ name: "LastReceiptDate",
+ dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsSystemUser",
+ name: "IsOrderLineFinalized",
dataType: "bit",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsEmployee",
- dataType: "bit",
+ name: "LastEditedBy",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsSalesperson",
- dataType: "bit",
+ name: "LastEditedWhen",
+ dataType: "datetime2",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "Countries_Archive",
+ schema: "Application",
+ columns: [
+ {
+ name: "CountryID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "UserPreferences",
+ name: "CountryName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PhoneNumber",
+ name: "FormalName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "FaxNumber",
+ name: "IsoAlpha3Code",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "EmailAddress",
+ name: "IsoNumericCode",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "CountryType",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Photo",
- dataType: "varbinary",
+ name: "LatestRecordedPopulation",
+ dataType: "bigint",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CustomFields",
+ name: "Continent",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "OtherLanguages",
+ name: "Region",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "Subregion",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
+ {
+ name: "Border",
+ dataType: "geography",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
{
name: "LastEditedBy",
dataType: "int",
@@ -2917,17 +2857,17 @@ export const worldWideImporters = {
],
},
{
- name: "TransactionTypes",
+ name: "DeliveryMethods",
schema: "Application",
columns: [
{
- name: "TransactionTypeID",
+ name: "DeliveryMethodID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "TransactionTypeName",
+ name: "DeliveryMethodName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
@@ -2953,17 +2893,17 @@ export const worldWideImporters = {
],
},
{
- name: "PaymentMethods",
+ name: "DeliveryMethods_Archive",
schema: "Application",
columns: [
{
- name: "PaymentMethodID",
+ name: "DeliveryMethodID",
dataType: "int",
- isPrimaryKey: true,
+ isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PaymentMethodName",
+ name: "DeliveryMethodName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
@@ -2989,120 +2929,120 @@ export const worldWideImporters = {
],
},
{
- name: "SystemParameters",
+ name: "PaymentMethods",
schema: "Application",
columns: [
{
- name: "SystemParameterID",
+ name: "PaymentMethodID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "DeliveryAddressLine1",
+ name: "PaymentMethodName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryAddressLine2",
- dataType: "nvarchar",
+ name: "LastEditedBy",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryCityID",
- dataType: "int",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryPostalCode",
- dataType: "nvarchar",
+ name: "ValidTo",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "SupplierTransactions",
+ schema: "Purchasing",
+ columns: [
{
- name: "DeliveryLocation",
- dataType: "geography",
- isPrimaryKey: false,
+ name: "SupplierTransactionID",
+ dataType: "int",
+ isPrimaryKey: true,
isIdentity: false,
},
{
- name: "PostalAddressLine1",
- dataType: "nvarchar",
+ name: "SupplierID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PostalAddressLine2",
- dataType: "nvarchar",
+ name: "TransactionTypeID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PostalCityID",
+ name: "PurchaseOrderID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PostalPostalCode",
- dataType: "nvarchar",
+ name: "PaymentMethodID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ApplicationSettings",
+ name: "SupplierInvoiceNumber",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
- dataType: "int",
+ name: "TransactionDate",
+ dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedWhen",
- dataType: "datetime2",
+ name: "AmountExcludingTax",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "Cities_Archive",
- schema: "Application",
- columns: [
{
- name: "CityID",
- dataType: "int",
+ name: "TaxAmount",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "CityName",
- dataType: "nvarchar",
+ name: "TransactionAmount",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StateProvinceID",
- dataType: "int",
+ name: "OutstandingBalance",
+ dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Location",
- dataType: "geography",
+ name: "FinalizationDate",
+ dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LatestRecordedPopulation",
- dataType: "bigint",
+ name: "IsFinalized",
+ dataType: "bit",
isPrimaryKey: false,
isIdentity: false,
},
@@ -3113,13 +3053,7 @@ export const worldWideImporters = {
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ValidTo",
+ name: "LastEditedWhen",
dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
@@ -3127,77 +3061,71 @@ export const worldWideImporters = {
],
},
{
- name: "PurchaseOrderLines",
- schema: "Purchasing",
+ name: "PaymentMethods_Archive",
+ schema: "Application",
columns: [
{
- name: "PurchaseOrderLineID",
- dataType: "int",
- isPrimaryKey: true,
- isIdentity: false,
- },
- {
- name: "PurchaseOrderID",
+ name: "PaymentMethodID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "StockItemID",
- dataType: "int",
+ name: "PaymentMethodName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "OrderedOuters",
+ name: "LastEditedBy",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Description",
- dataType: "nvarchar",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ReceivedOuters",
- dataType: "int",
+ name: "ValidTo",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "TransactionTypes",
+ schema: "Application",
+ columns: [
{
- name: "PackageTypeID",
+ name: "TransactionTypeID",
dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ExpectedUnitPricePerOuter",
- dataType: "decimal",
- isPrimaryKey: false,
+ isPrimaryKey: true,
isIdentity: false,
},
{
- name: "LastReceiptDate",
- dataType: "date",
+ name: "TransactionTypeName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsOrderLineFinalized",
- dataType: "bit",
+ name: "LastEditedBy",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
- dataType: "int",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedWhen",
+ name: "ValidTo",
dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
@@ -3205,84 +3133,108 @@ export const worldWideImporters = {
],
},
{
- name: "SupplierTransactions",
- schema: "Purchasing",
+ name: "SpecialDeals",
+ schema: "Sales",
columns: [
{
- name: "SupplierTransactionID",
+ name: "SpecialDealID",
dataType: "int",
isPrimaryKey: true,
isIdentity: false,
},
{
- name: "SupplierID",
+ name: "StockItemID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "TransactionTypeID",
+ name: "CustomerID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PurchaseOrderID",
+ name: "BuyingGroupID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PaymentMethodID",
+ name: "CustomerCategoryID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SupplierInvoiceNumber",
+ name: "StockGroupID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "DealDescription",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "TransactionDate",
+ name: "StartDate",
dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "AmountExcludingTax",
- dataType: "decimal",
+ name: "EndDate",
+ dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "TaxAmount",
+ name: "DiscountAmount",
dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "TransactionAmount",
+ name: "DiscountPercentage",
dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "OutstandingBalance",
+ name: "UnitPrice",
dataType: "decimal",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "FinalizationDate",
- dataType: "date",
+ name: "LastEditedBy",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsFinalized",
- dataType: "bit",
+ name: "LastEditedWhen",
+ dataType: "datetime2",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ ],
+ },
+ {
+ name: "TransactionTypes_Archive",
+ schema: "Application",
+ columns: [
+ {
+ name: "TransactionTypeID",
+ dataType: "int",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "TransactionTypeName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
@@ -3293,7 +3245,13 @@ export const worldWideImporters = {
isIdentity: false,
},
{
- name: "LastEditedWhen",
+ name: "ValidFrom",
+ dataType: "datetime2",
+ isPrimaryKey: false,
+ isIdentity: false,
+ },
+ {
+ name: "ValidTo",
dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
@@ -3301,13 +3259,13 @@ export const worldWideImporters = {
],
},
{
- name: "SupplierCategories_Archive",
+ name: "SupplierCategories",
schema: "Purchasing",
columns: [
{
name: "SupplierCategoryID",
dataType: "int",
- isPrimaryKey: false,
+ isPrimaryKey: true,
isIdentity: false,
},
{
@@ -3337,245 +3295,215 @@ export const worldWideImporters = {
],
},
{
- name: "Suppliers_Archive",
+ name: "SupplierCategories_Archive",
schema: "Purchasing",
columns: [
{
- name: "SupplierID",
+ name: "SupplierCategoryID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SupplierName",
+ name: "SupplierCategoryName",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SupplierCategoryID",
+ name: "LastEditedBy",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PrimaryContactPersonID",
- dataType: "int",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "AlternateContactPersonID",
- dataType: "int",
+ name: "ValidTo",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "BuyingGroups",
+ schema: "Sales",
+ columns: [
{
- name: "DeliveryMethodID",
+ name: "BuyingGroupID",
dataType: "int",
- isPrimaryKey: false,
+ isPrimaryKey: true,
isIdentity: false,
},
{
- name: "DeliveryCityID",
- dataType: "int",
+ name: "BuyingGroupName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PostalCityID",
+ name: "LastEditedBy",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SupplierReference",
- dataType: "nvarchar",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BankAccountName",
- dataType: "nvarchar",
+ name: "ValidTo",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
+ ],
+ },
+ {
+ name: "Invoices",
+ schema: "Sales",
+ columns: [
{
- name: "BankAccountBranch",
- dataType: "nvarchar",
- isPrimaryKey: false,
+ name: "InvoiceID",
+ dataType: "int",
+ isPrimaryKey: true,
isIdentity: false,
},
{
- name: "BankAccountCode",
- dataType: "nvarchar",
+ name: "CustomerID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BankAccountNumber",
- dataType: "nvarchar",
+ name: "BillToCustomerID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "BankInternationalCode",
- dataType: "nvarchar",
+ name: "OrderID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PaymentDays",
+ name: "DeliveryMethodID",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "InternalComments",
- dataType: "nvarchar",
+ name: "ContactPersonID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PhoneNumber",
- dataType: "nvarchar",
+ name: "AccountsPersonID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "FaxNumber",
- dataType: "nvarchar",
+ name: "SalespersonPersonID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "WebsiteURL",
- dataType: "nvarchar",
+ name: "PackedByPersonID",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryAddressLine1",
- dataType: "nvarchar",
+ name: "InvoiceDate",
+ dataType: "date",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryAddressLine2",
+ name: "CustomerPurchaseOrderNumber",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryPostalCode",
- dataType: "nvarchar",
+ name: "IsCreditNote",
+ dataType: "bit",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "DeliveryLocation",
- dataType: "geography",
+ name: "CreditNoteReason",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PostalAddressLine1",
+ name: "Comments",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PostalAddressLine2",
+ name: "DeliveryInstructions",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "PostalPostalCode",
+ name: "InternalComments",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "LastEditedBy",
+ name: "TotalDryItems",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidFrom",
- dataType: "datetime2",
+ name: "TotalChillerItems",
+ dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "ValidTo",
- dataType: "datetime2",
- isPrimaryKey: false,
- isIdentity: false,
- },
- ],
- },
- {
- name: "PurchaseOrders",
- schema: "Purchasing",
- columns: [
- {
- name: "PurchaseOrderID",
- dataType: "int",
- isPrimaryKey: true,
- isIdentity: false,
- },
- {
- name: "SupplierID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "OrderDate",
- dataType: "date",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "DeliveryMethodID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ContactPersonID",
- dataType: "int",
- isPrimaryKey: false,
- isIdentity: false,
- },
- {
- name: "ExpectedDeliveryDate",
- dataType: "date",
+ name: "DeliveryRun",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "SupplierReference",
+ name: "RunPosition",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "IsOrderFinalized",
- dataType: "bit",
+ name: "ReturnedDeliveryData",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Comments",
- dataType: "nvarchar",
+ name: "ConfirmedDeliveryTime",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "InternalComments",
+ name: "ConfirmedReceivedBy",
dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
@@ -3631,1084 +3559,1199 @@ export const worldWideImporters = {
],
},
{
- name: "New Table",
- schema: "dbo",
+ name: "CustomerCategories",
+ schema: "Sales",
columns: [
{
- name: "Column1",
+ name: "CustomerCategoryID",
dataType: "int",
isPrimaryKey: true,
- isIdentity: true,
+ isIdentity: false,
},
{
- name: "Column2",
- dataType: "int",
+ name: "CustomerCategoryName",
+ dataType: "nvarchar",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Column2",
+ name: "LastEditedBy",
dataType: "int",
isPrimaryKey: false,
isIdentity: false,
},
- ],
- },
- {
- name: "New Table 2",
- schema: "dbo",
- columns: [
- {
- name: "Column1",
- dataType: "int",
- isPrimaryKey: true,
- isIdentity: true,
- },
{
- name: "Column2",
- dataType: "int",
+ name: "ValidFrom",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
{
- name: "Column2",
- dataType: "int",
+ name: "ValidTo",
+ dataType: "datetime2",
isPrimaryKey: false,
isIdentity: false,
},
],
},
{
- name: "New Table 3",
- schema: "dbo",
+ name: "CustomerCategories_Archive",
+ schema: "Sales",
columns: [
{
- name: "Column1",
+ name: "CustomerCategoryID",
dataType: "int",
- isPrimaryKey: true,
- isIdentity: true,
+ isPrimaryKey: false,
+ isIdentity: false,
},
- ],
- },
- {
- name: "New Table 4",
- schema: "dbo",
- columns: [
{
- name: "Column1",
- dataType: "int",
- isPrimaryKey: true,
- isIdentity: true,
+ name: "CustomerCategoryName",
+ dataType: "nvarchar",
+ isPrimaryKey: false,
+ isIdentity: false,
},
- ],
- },
- {
- name: "New Table 5",
- schema: "dbo",
- columns: [
{
- name: "Column1",
+ name: "LastEditedBy",
dataType: "int",
- isPrimaryKey: true,
- isIdentity: true,
+ isPrimaryKey: false,
+ isIdentity: false,
},
- ],
- },
- {
- name: "New Table 6",
- schema: "dbo",
- columns: [
{
- name: "Column1",
- dataType: "int",
- isPrimaryKey: true,
- isIdentity: true,
+ name: "ValidFrom",
+ dataType: "datetime2",
+ isPrimaryKey: false,
+ isIdentity: false,
},
- ],
- },
- {
- name: "New Table 7",
- schema: "dbo",
- columns: [
{
- name: "Column1",
- dataType: "int",
- isPrimaryKey: true,
- isIdentity: true,
+ name: "ValidTo",
+ dataType: "datetime2",
+ isPrimaryKey: false,
+ isIdentity: false,
},
],
},
],
relationships: [
{
- foreignKeyName: "FK_Sales_CustomerTransactions_InvoiceID_Sales_Invoices",
- entity: "CustomerTransactions",
- column: "InvoiceID",
- referencedEntity: "Invoices",
- referencedColumn: "InvoiceID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName: "FK_Warehouse_StockItems_ColorID_Warehouse_Colors",
+ schemaName: "Warehouse",
+ entity: "StockItems",
+ column: "ColorID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "Colors",
+ referencedColumn: "ColorID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_InvoiceLines_InvoiceID_Sales_Invoices",
+ foreignKeyName:
+ "FK_Sales_OrderLines_PackageTypeID_Warehouse_PackageTypes",
+ schemaName: "Sales",
+ entity: "OrderLines",
+ column: "PackageTypeID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "PackageTypes",
+ referencedColumn: "PackageTypeID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_Sales_InvoiceLines_PackageTypeID_Warehouse_PackageTypes",
+ schemaName: "Sales",
entity: "InvoiceLines",
- column: "InvoiceID",
- referencedEntity: "Invoices",
- referencedColumn: "InvoiceID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ column: "PackageTypeID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "PackageTypes",
+ referencedColumn: "PackageTypeID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Warehouse_StockItemTransactions_InvoiceID_Sales_Invoices",
- entity: "StockItemTransactions",
- column: "InvoiceID",
- referencedEntity: "Invoices",
- referencedColumn: "InvoiceID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ "FK_Warehouse_StockItems_UnitPackageID_Warehouse_PackageTypes",
+ schemaName: "Warehouse",
+ entity: "StockItems",
+ column: "UnitPackageID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "PackageTypes",
+ referencedColumn: "PackageTypeID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_Invoices_OrderID_Sales_Orders",
- entity: "Invoices",
- column: "OrderID",
- referencedEntity: "Orders",
- referencedColumn: "OrderID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName:
+ "FK_Warehouse_StockItems_OuterPackageID_Warehouse_PackageTypes",
+ schemaName: "Warehouse",
+ entity: "StockItems",
+ column: "OuterPackageID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "PackageTypes",
+ referencedColumn: "PackageTypeID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_OrderLines_OrderID_Sales_Orders",
- entity: "OrderLines",
- column: "OrderID",
- referencedEntity: "Orders",
- referencedColumn: "OrderID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName:
+ "FK_Purchasing_PurchaseOrderLines_PackageTypeID_Warehouse_PackageTypes",
+ schemaName: "Purchasing",
+ entity: "PurchaseOrderLines",
+ column: "PackageTypeID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "PackageTypes",
+ referencedColumn: "PackageTypeID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_Orders_BackorderOrderID_Sales_Orders",
- entity: "Orders",
- column: "BackorderOrderID",
- referencedEntity: "Orders",
- referencedColumn: "OrderID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName:
+ "FK_Warehouse_StockItemStockGroups_StockGroupID_Warehouse_StockGroups",
+ schemaName: "Warehouse",
+ entity: "StockItemStockGroups",
+ column: "StockGroupID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "StockGroups",
+ referencedColumn: "StockGroupID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Sales_SpecialDeals_CustomerCategoryID_Sales_CustomerCategories",
+ "FK_Sales_SpecialDeals_StockGroupID_Warehouse_StockGroups",
+ schemaName: "Sales",
entity: "SpecialDeals",
- column: "CustomerCategoryID",
- referencedEntity: "CustomerCategories",
- referencedColumn: "CustomerCategoryID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ column: "StockGroupID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "StockGroups",
+ referencedColumn: "StockGroupID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Sales_Customers_CustomerCategoryID_Sales_CustomerCategories",
- entity: "Customers",
- column: "CustomerCategoryID",
- referencedEntity: "CustomerCategories",
- referencedColumn: "CustomerCategoryID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ "FK_Application_Cities_StateProvinceID_Application_StateProvinces",
+ schemaName: "Application",
+ entity: "Cities",
+ column: "StateProvinceID",
+ referencedSchema: "Application",
+ referencedEntity: "StateProvinces",
+ referencedColumn: "StateProvinceID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_SpecialDeals_BuyingGroupID_Sales_BuyingGroups",
- entity: "SpecialDeals",
- column: "BuyingGroupID",
- referencedEntity: "BuyingGroups",
- referencedColumn: "BuyingGroupID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName:
+ "FK_Application_SystemParameters_DeliveryCityID_Application_Cities",
+ schemaName: "Application",
+ entity: "SystemParameters",
+ column: "DeliveryCityID",
+ referencedSchema: "Application",
+ referencedEntity: "Cities",
+ referencedColumn: "CityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_Customers_BuyingGroupID_Sales_BuyingGroups",
- entity: "Customers",
- column: "BuyingGroupID",
- referencedEntity: "BuyingGroups",
- referencedColumn: "BuyingGroupID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName:
+ "FK_Application_SystemParameters_PostalCityID_Application_Cities",
+ schemaName: "Application",
+ entity: "SystemParameters",
+ column: "PostalCityID",
+ referencedSchema: "Application",
+ referencedEntity: "Cities",
+ referencedColumn: "CityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Sales_CustomerTransactions_CustomerID_Sales_Customers",
- entity: "CustomerTransactions",
- column: "CustomerID",
- referencedEntity: "Customers",
- referencedColumn: "CustomerID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ "FK_Purchasing_Suppliers_DeliveryCityID_Application_Cities",
+ schemaName: "Purchasing",
+ entity: "Suppliers",
+ column: "DeliveryCityID",
+ referencedSchema: "Application",
+ referencedEntity: "Cities",
+ referencedColumn: "CityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_Invoices_BillToCustomerID_Sales_Customers",
- entity: "Invoices",
- column: "BillToCustomerID",
- referencedEntity: "Customers",
- referencedColumn: "CustomerID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName: "FK_Sales_Invoices_CustomerID_Sales_Customers",
- entity: "Invoices",
- column: "CustomerID",
- referencedEntity: "Customers",
- referencedColumn: "CustomerID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName: "FK_Sales_Orders_CustomerID_Sales_Customers",
- entity: "Orders",
- column: "CustomerID",
- referencedEntity: "Customers",
- referencedColumn: "CustomerID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName: "FK_Sales_SpecialDeals_CustomerID_Sales_Customers",
- entity: "SpecialDeals",
- column: "CustomerID",
- referencedEntity: "Customers",
- referencedColumn: "CustomerID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName: "FK_Sales_Customers_BillToCustomerID_Sales_Customers",
- entity: "Customers",
- column: "BillToCustomerID",
- referencedEntity: "Customers",
- referencedColumn: "CustomerID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName:
- "FK_Warehouse_StockItemTransactions_CustomerID_Sales_Customers",
- entity: "StockItemTransactions",
- column: "CustomerID",
- referencedEntity: "Customers",
- referencedColumn: "CustomerID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName:
- "FK_Purchasing_PurchaseOrderLines_PackageTypeID_Warehouse_PackageTypes",
- entity: "PurchaseOrderLines",
- column: "PackageTypeID",
- referencedEntity: "PackageTypes",
- referencedColumn: "PackageTypeID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName:
- "FK_Sales_InvoiceLines_PackageTypeID_Warehouse_PackageTypes",
- entity: "InvoiceLines",
- column: "PackageTypeID",
- referencedEntity: "PackageTypes",
- referencedColumn: "PackageTypeID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName:
- "FK_Sales_OrderLines_PackageTypeID_Warehouse_PackageTypes",
- entity: "OrderLines",
- column: "PackageTypeID",
- referencedEntity: "PackageTypes",
- referencedColumn: "PackageTypeID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName:
- "FK_Warehouse_StockItems_OuterPackageID_Warehouse_PackageTypes",
- entity: "StockItems",
- column: "OuterPackageID",
- referencedEntity: "PackageTypes",
- referencedColumn: "PackageTypeID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName:
- "FK_Warehouse_StockItems_UnitPackageID_Warehouse_PackageTypes",
- entity: "StockItems",
- column: "UnitPackageID",
- referencedEntity: "PackageTypes",
- referencedColumn: "PackageTypeID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName:
- "FK_Application_Cities_StateProvinceID_Application_StateProvinces",
- entity: "Cities",
- column: "StateProvinceID",
- referencedEntity: "StateProvinces",
- referencedColumn: "StateProvinceID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName:
- "FK_Application_StateProvinces_CountryID_Application_Countries",
- entity: "StateProvinces",
- column: "CountryID",
- referencedEntity: "Countries",
- referencedColumn: "CountryID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName:
- "FK_Application_SystemParameters_PostalCityID_Application_Cities",
- entity: "SystemParameters",
- column: "PostalCityID",
- referencedEntity: "Cities",
- referencedColumn: "CityID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName:
- "FK_Application_SystemParameters_DeliveryCityID_Application_Cities",
- entity: "SystemParameters",
- column: "DeliveryCityID",
- referencedEntity: "Cities",
- referencedColumn: "CityID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName:
- "FK_Purchasing_Suppliers_DeliveryCityID_Application_Cities",
- entity: "Suppliers",
- column: "DeliveryCityID",
- referencedEntity: "Cities",
- referencedColumn: "CityID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName: "FK_Purchasing_Suppliers_PostalCityID_Application_Cities",
- entity: "Suppliers",
- column: "PostalCityID",
- referencedEntity: "Cities",
- referencedColumn: "CityID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName: "FK_Purchasing_Suppliers_PostalCityID_Application_Cities",
+ schemaName: "Purchasing",
+ entity: "Suppliers",
+ column: "PostalCityID",
+ referencedSchema: "Application",
+ referencedEntity: "Cities",
+ referencedColumn: "CityID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName: "FK_Sales_Customers_DeliveryCityID_Application_Cities",
+ schemaName: "Sales",
entity: "Customers",
column: "DeliveryCityID",
+ referencedSchema: "Application",
referencedEntity: "Cities",
referencedColumn: "CityID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName: "FK_Sales_Customers_PostalCityID_Application_Cities",
+ schemaName: "Sales",
entity: "Customers",
column: "PostalCityID",
+ referencedSchema: "Application",
referencedEntity: "Cities",
referencedColumn: "CityID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Purchasing_Suppliers_SupplierCategoryID_Purchasing_SupplierCategories",
- entity: "Suppliers",
- column: "SupplierCategoryID",
- referencedEntity: "SupplierCategories",
- referencedColumn: "SupplierCategoryID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName:
- "FK_Purchasing_SupplierTransactions_SupplierID_Purchasing_Suppliers",
- entity: "SupplierTransactions",
+ "FK_Warehouse_StockItemTransactions_SupplierID_Purchasing_Suppliers",
+ schemaName: "Warehouse",
+ entity: "StockItemTransactions",
column: "SupplierID",
+ referencedSchema: "Purchasing",
referencedEntity: "Suppliers",
referencedColumn: "SupplierID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
"FK_Purchasing_PurchaseOrders_SupplierID_Purchasing_Suppliers",
+ schemaName: "Purchasing",
entity: "PurchaseOrders",
column: "SupplierID",
+ referencedSchema: "Purchasing",
referencedEntity: "Suppliers",
referencedColumn: "SupplierID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName:
- "FK_Warehouse_StockItemTransactions_SupplierID_Purchasing_Suppliers",
- entity: "StockItemTransactions",
+ foreignKeyName: "FK_Warehouse_StockItems_SupplierID_Purchasing_Suppliers",
+ schemaName: "Warehouse",
+ entity: "StockItems",
column: "SupplierID",
+ referencedSchema: "Purchasing",
referencedEntity: "Suppliers",
referencedColumn: "SupplierID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Warehouse_StockItems_SupplierID_Purchasing_Suppliers",
- entity: "StockItems",
+ foreignKeyName:
+ "FK_Purchasing_SupplierTransactions_SupplierID_Purchasing_Suppliers",
+ schemaName: "Purchasing",
+ entity: "SupplierTransactions",
column: "SupplierID",
+ referencedSchema: "Purchasing",
referencedEntity: "Suppliers",
referencedColumn: "SupplierID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Warehouse_StockItems_ColorID_Warehouse_Colors",
- entity: "StockItems",
- column: "ColorID",
- referencedEntity: "Colors",
- referencedColumn: "ColorID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName:
+ "FK_Sales_CustomerTransactions_CustomerID_Sales_Customers",
+ schemaName: "Sales",
+ entity: "CustomerTransactions",
+ column: "CustomerID",
+ referencedSchema: "Sales",
+ referencedEntity: "Customers",
+ referencedColumn: "CustomerID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Sales_SpecialDeals_StockGroupID_Warehouse_StockGroups",
- entity: "SpecialDeals",
- column: "StockGroupID",
- referencedEntity: "StockGroups",
- referencedColumn: "StockGroupID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ "FK_Warehouse_StockItemTransactions_CustomerID_Sales_Customers",
+ schemaName: "Warehouse",
+ entity: "StockItemTransactions",
+ column: "CustomerID",
+ referencedSchema: "Sales",
+ referencedEntity: "Customers",
+ referencedColumn: "CustomerID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName:
- "FK_Warehouse_StockItemStockGroups_StockGroupID_Warehouse_StockGroups",
- entity: "StockItemStockGroups",
- column: "StockGroupID",
- referencedEntity: "StockGroups",
- referencedColumn: "StockGroupID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName: "FK_Sales_Customers_BillToCustomerID_Sales_Customers",
+ schemaName: "Sales",
+ entity: "Customers",
+ column: "BillToCustomerID",
+ referencedSchema: "Sales",
+ referencedEntity: "Customers",
+ referencedColumn: "CustomerID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName:
- "FK_Purchasing_PurchaseOrderLines_StockItemID_Warehouse_StockItems",
- entity: "PurchaseOrderLines",
- column: "StockItemID",
- referencedEntity: "StockItems",
- referencedColumn: "StockItemID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName: "FK_Sales_Orders_CustomerID_Sales_Customers",
+ schemaName: "Sales",
+ entity: "Orders",
+ column: "CustomerID",
+ referencedSchema: "Sales",
+ referencedEntity: "Customers",
+ referencedColumn: "CustomerID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_InvoiceLines_StockItemID_Warehouse_StockItems",
- entity: "InvoiceLines",
- column: "StockItemID",
- referencedEntity: "StockItems",
- referencedColumn: "StockItemID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName: "FK_Sales_SpecialDeals_CustomerID_Sales_Customers",
+ schemaName: "Sales",
+ entity: "SpecialDeals",
+ column: "CustomerID",
+ referencedSchema: "Sales",
+ referencedEntity: "Customers",
+ referencedColumn: "CustomerID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_OrderLines_StockItemID_Warehouse_StockItems",
- entity: "OrderLines",
- column: "StockItemID",
- referencedEntity: "StockItems",
- referencedColumn: "StockItemID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName: "FK_Sales_Invoices_CustomerID_Sales_Customers",
+ schemaName: "Sales",
+ entity: "Invoices",
+ column: "CustomerID",
+ referencedSchema: "Sales",
+ referencedEntity: "Customers",
+ referencedColumn: "CustomerID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_SpecialDeals_StockItemID_Warehouse_StockItems",
- entity: "SpecialDeals",
- column: "StockItemID",
- referencedEntity: "StockItems",
- referencedColumn: "StockItemID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName: "FK_Sales_Invoices_BillToCustomerID_Sales_Customers",
+ schemaName: "Sales",
+ entity: "Invoices",
+ column: "BillToCustomerID",
+ referencedSchema: "Sales",
+ referencedEntity: "Customers",
+ referencedColumn: "CustomerID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "PKFK_Warehouse_StockItemHoldings_StockItemID_Warehouse_StockItems",
- entity: "StockItemHoldings",
- column: "StockItemID",
- referencedEntity: "StockItems",
- referencedColumn: "StockItemID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ "FK_Warehouse_StockItemTransactions_PurchaseOrderID_Purchasing_PurchaseOrders",
+ schemaName: "Warehouse",
+ entity: "StockItemTransactions",
+ column: "PurchaseOrderID",
+ referencedSchema: "Purchasing",
+ referencedEntity: "PurchaseOrders",
+ referencedColumn: "PurchaseOrderID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Warehouse_StockItemStockGroups_StockItemID_Warehouse_StockItems",
- entity: "StockItemStockGroups",
- column: "StockItemID",
- referencedEntity: "StockItems",
- referencedColumn: "StockItemID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ "FK_Purchasing_PurchaseOrderLines_PurchaseOrderID_Purchasing_PurchaseOrders",
+ schemaName: "Purchasing",
+ entity: "PurchaseOrderLines",
+ column: "PurchaseOrderID",
+ referencedSchema: "Purchasing",
+ referencedEntity: "PurchaseOrders",
+ referencedColumn: "PurchaseOrderID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Warehouse_StockItemTransactions_StockItemID_Warehouse_StockItems",
- entity: "StockItemTransactions",
- column: "StockItemID",
- referencedEntity: "StockItems",
- referencedColumn: "StockItemID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ "FK_Purchasing_SupplierTransactions_PurchaseOrderID_Purchasing_PurchaseOrders",
+ schemaName: "Purchasing",
+ entity: "SupplierTransactions",
+ column: "PurchaseOrderID",
+ referencedSchema: "Purchasing",
+ referencedEntity: "PurchaseOrders",
+ referencedColumn: "PurchaseOrderID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName:
- "FK_Purchasing_Suppliers_DeliveryMethodID_Application_DeliveryMethods",
- entity: "Suppliers",
- column: "DeliveryMethodID",
- referencedEntity: "DeliveryMethods",
- referencedColumn: "DeliveryMethodID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName: "FK_Sales_OrderLines_OrderID_Sales_Orders",
+ schemaName: "Sales",
+ entity: "OrderLines",
+ column: "OrderID",
+ referencedSchema: "Sales",
+ referencedEntity: "Orders",
+ referencedColumn: "OrderID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName:
- "FK_Purchasing_PurchaseOrders_DeliveryMethodID_Application_DeliveryMethods",
- entity: "PurchaseOrders",
- column: "DeliveryMethodID",
- referencedEntity: "DeliveryMethods",
- referencedColumn: "DeliveryMethodID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ foreignKeyName: "FK_Sales_Orders_BackorderOrderID_Sales_Orders",
+ schemaName: "Sales",
+ entity: "Orders",
+ column: "BackorderOrderID",
+ referencedSchema: "Sales",
+ referencedEntity: "Orders",
+ referencedColumn: "OrderID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName:
- "FK_Sales_Invoices_DeliveryMethodID_Application_DeliveryMethods",
+ foreignKeyName: "FK_Sales_Invoices_OrderID_Sales_Orders",
+ schemaName: "Sales",
entity: "Invoices",
- column: "DeliveryMethodID",
- referencedEntity: "DeliveryMethods",
- referencedColumn: "DeliveryMethodID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ column: "OrderID",
+ referencedSchema: "Sales",
+ referencedEntity: "Orders",
+ referencedColumn: "OrderID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Sales_Customers_DeliveryMethodID_Application_DeliveryMethods",
- entity: "Customers",
- column: "DeliveryMethodID",
- referencedEntity: "DeliveryMethods",
- referencedColumn: "DeliveryMethodID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName: "FK_Application_StateProvinces_Application_People",
- entity: "StateProvinces",
- column: "LastEditedBy",
+ "FK_Sales_Invoices_SalespersonPersonID_Application_People",
+ schemaName: "Sales",
+ entity: "Invoices",
+ column: "SalespersonPersonID",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Application_Countries_Application_People",
- entity: "Countries",
- column: "LastEditedBy",
+ foreignKeyName: "FK_Sales_Invoices_PackedByPersonID_Application_People",
+ schemaName: "Sales",
+ entity: "Invoices",
+ column: "PackedByPersonID",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Application_DeliveryMethods_Application_People",
- entity: "DeliveryMethods",
+ foreignKeyName: "FK_Sales_Invoices_Application_People",
+ schemaName: "Sales",
+ entity: "Invoices",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Application_People_Application_People",
- entity: "People",
+ foreignKeyName: "FK_Warehouse_Colors_Application_People",
+ schemaName: "Warehouse",
+ entity: "Colors",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Application_TransactionTypes_Application_People",
- entity: "TransactionTypes",
+ foreignKeyName: "FK_Warehouse_PackageTypes_Application_People",
+ schemaName: "Warehouse",
+ entity: "PackageTypes",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Application_PaymentMethods_Application_People",
- entity: "PaymentMethods",
+ foreignKeyName: "FK_Sales_OrderLines_Application_People",
+ schemaName: "Sales",
+ entity: "OrderLines",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Application_Cities_Application_People",
- entity: "Cities",
+ foreignKeyName: "FK_Warehouse_StockGroups_Application_People",
+ schemaName: "Warehouse",
+ entity: "StockGroups",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Application_SystemParameters_Application_People",
- entity: "SystemParameters",
+ foreignKeyName: "FK_Warehouse_StockItemStockGroups_Application_People",
+ schemaName: "Warehouse",
+ entity: "StockItemStockGroups",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Purchasing_PurchaseOrderLines_Application_People",
- entity: "PurchaseOrderLines",
+ foreignKeyName: "FK_Application_StateProvinces_Application_People",
+ schemaName: "Application",
+ entity: "StateProvinces",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Purchasing_SupplierCategories_Application_People",
- entity: "SupplierCategories",
+ foreignKeyName: "FK_Application_Cities_Application_People",
+ schemaName: "Application",
+ entity: "Cities",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Purchasing_SupplierTransactions_Application_People",
- entity: "SupplierTransactions",
+ foreignKeyName: "FK_Sales_CustomerTransactions_Application_People",
+ schemaName: "Sales",
+ entity: "CustomerTransactions",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName:
- "FK_Purchasing_Suppliers_PrimaryContactPersonID_Application_People",
- entity: "Suppliers",
- column: "PrimaryContactPersonID",
+ foreignKeyName: "FK_Application_SystemParameters_Application_People",
+ schemaName: "Application",
+ entity: "SystemParameters",
+ column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Purchasing_Suppliers_Application_People",
- entity: "Suppliers",
+ foreignKeyName: "FK_Sales_InvoiceLines_Application_People",
+ schemaName: "Sales",
+ entity: "InvoiceLines",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Purchasing_Suppliers_AlternateContactPersonID_Application_People",
+ "FK_Purchasing_Suppliers_PrimaryContactPersonID_Application_People",
+ schemaName: "Purchasing",
entity: "Suppliers",
- column: "AlternateContactPersonID",
+ column: "PrimaryContactPersonID",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Purchasing_PurchaseOrders_ContactPersonID_Application_People",
- entity: "PurchaseOrders",
- column: "ContactPersonID",
- referencedEntity: "People",
- referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName: "FK_Purchasing_PurchaseOrders_Application_People",
- entity: "PurchaseOrders",
- column: "LastEditedBy",
+ "FK_Purchasing_Suppliers_AlternateContactPersonID_Application_People",
+ schemaName: "Purchasing",
+ entity: "Suppliers",
+ column: "AlternateContactPersonID",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_CustomerTransactions_Application_People",
- entity: "CustomerTransactions",
+ foreignKeyName: "FK_Purchasing_Suppliers_Application_People",
+ schemaName: "Purchasing",
+ entity: "Suppliers",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_InvoiceLines_Application_People",
- entity: "InvoiceLines",
+ foreignKeyName: "FK_Warehouse_StockItemTransactions_Application_People",
+ schemaName: "Warehouse",
+ entity: "StockItemTransactions",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_Invoices_Application_People",
- entity: "Invoices",
- column: "LastEditedBy",
+ foreignKeyName:
+ "FK_Sales_Customers_PrimaryContactPersonID_Application_People",
+ schemaName: "Sales",
+ entity: "Customers",
+ column: "PrimaryContactPersonID",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_Invoices_PackedByPersonID_Application_People",
- entity: "Invoices",
- column: "PackedByPersonID",
+ foreignKeyName:
+ "FK_Sales_Customers_AlternateContactPersonID_Application_People",
+ schemaName: "Sales",
+ entity: "Customers",
+ column: "AlternateContactPersonID",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_Invoices_ContactPersonID_Application_People",
- entity: "Invoices",
- column: "ContactPersonID",
+ foreignKeyName: "FK_Sales_Customers_Application_People",
+ schemaName: "Sales",
+ entity: "Customers",
+ column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Sales_Invoices_SalespersonPersonID_Application_People",
- entity: "Invoices",
- column: "SalespersonPersonID",
- referencedEntity: "People",
- referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName: "FK_Sales_Invoices_AccountsPersonID_Application_People",
- entity: "Invoices",
- column: "AccountsPersonID",
+ "FK_Purchasing_PurchaseOrders_ContactPersonID_Application_People",
+ schemaName: "Purchasing",
+ entity: "PurchaseOrders",
+ column: "ContactPersonID",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_OrderLines_Application_People",
- entity: "OrderLines",
+ foreignKeyName: "FK_Purchasing_PurchaseOrders_Application_People",
+ schemaName: "Purchasing",
+ entity: "PurchaseOrders",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_Orders_ContactPersonID_Application_People",
+ foreignKeyName: "FK_Sales_Orders_SalespersonPersonID_Application_People",
+ schemaName: "Sales",
entity: "Orders",
- column: "ContactPersonID",
+ column: "SalespersonPersonID",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_Orders_SalespersonPersonID_Application_People",
+ foreignKeyName: "FK_Sales_Orders_PickedByPersonID_Application_People",
+ schemaName: "Sales",
entity: "Orders",
- column: "SalespersonPersonID",
+ column: "PickedByPersonID",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_Orders_PickedByPersonID_Application_People",
+ foreignKeyName: "FK_Sales_Orders_ContactPersonID_Application_People",
+ schemaName: "Sales",
entity: "Orders",
- column: "PickedByPersonID",
+ column: "ContactPersonID",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName: "FK_Sales_Orders_Application_People",
+ schemaName: "Sales",
entity: "Orders",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_SpecialDeals_Application_People",
- entity: "SpecialDeals",
+ foreignKeyName: "FK_Application_People_Application_People",
+ schemaName: "Application",
+ entity: "People",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_CustomerCategories_Application_People",
- entity: "CustomerCategories",
+ foreignKeyName: "FK_Warehouse_StockItems_Application_People",
+ schemaName: "Warehouse",
+ entity: "StockItems",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_BuyingGroups_Application_People",
- entity: "BuyingGroups",
+ foreignKeyName: "FK_Warehouse_StockItemHoldings_Application_People",
+ schemaName: "Warehouse",
+ entity: "StockItemHoldings",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Sales_Customers_Application_People",
- entity: "Customers",
+ foreignKeyName: "FK_Application_Countries_Application_People",
+ schemaName: "Application",
+ entity: "Countries",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName:
- "FK_Sales_Customers_AlternateContactPersonID_Application_People",
- entity: "Customers",
- column: "AlternateContactPersonID",
+ foreignKeyName: "FK_Application_DeliveryMethods_Application_People",
+ schemaName: "Application",
+ entity: "DeliveryMethods",
+ column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName:
- "FK_Sales_Customers_PrimaryContactPersonID_Application_People",
- entity: "Customers",
- column: "PrimaryContactPersonID",
+ foreignKeyName: "FK_Purchasing_PurchaseOrderLines_Application_People",
+ schemaName: "Purchasing",
+ entity: "PurchaseOrderLines",
+ column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Warehouse_StockItemHoldings_Application_People",
- entity: "StockItemHoldings",
+ foreignKeyName: "FK_Application_PaymentMethods_Application_People",
+ schemaName: "Application",
+ entity: "PaymentMethods",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Warehouse_Colors_Application_People",
- entity: "Colors",
+ foreignKeyName: "FK_Purchasing_SupplierTransactions_Application_People",
+ schemaName: "Purchasing",
+ entity: "SupplierTransactions",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Warehouse_StockItemStockGroups_Application_People",
- entity: "StockItemStockGroups",
+ foreignKeyName: "FK_Application_TransactionTypes_Application_People",
+ schemaName: "Application",
+ entity: "TransactionTypes",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Warehouse_StockGroups_Application_People",
- entity: "StockGroups",
+ foreignKeyName: "FK_Purchasing_SupplierCategories_Application_People",
+ schemaName: "Purchasing",
+ entity: "SupplierCategories",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Warehouse_StockItemTransactions_Application_People",
- entity: "StockItemTransactions",
+ foreignKeyName: "FK_Sales_SpecialDeals_Application_People",
+ schemaName: "Sales",
+ entity: "SpecialDeals",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Warehouse_StockItems_Application_People",
- entity: "StockItems",
+ foreignKeyName: "FK_Sales_BuyingGroups_Application_People",
+ schemaName: "Sales",
+ entity: "BuyingGroups",
column: "LastEditedBy",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
- foreignKeyName: "FK_Warehouse_PackageTypes_Application_People",
- entity: "PackageTypes",
+ foreignKeyName: "FK_Sales_CustomerCategories_Application_People",
+ schemaName: "Sales",
+ entity: "CustomerCategories",
column: "LastEditedBy",
+ referencedSchema: "Application",
+ referencedEntity: "People",
+ referencedColumn: "PersonID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Sales_Invoices_ContactPersonID_Application_People",
+ schemaName: "Sales",
+ entity: "Invoices",
+ column: "ContactPersonID",
+ referencedSchema: "Application",
+ referencedEntity: "People",
+ referencedColumn: "PersonID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Sales_Invoices_AccountsPersonID_Application_People",
+ schemaName: "Sales",
+ entity: "Invoices",
+ column: "AccountsPersonID",
+ referencedSchema: "Application",
referencedEntity: "People",
referencedColumn: "PersonID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Sales_OrderLines_StockItemID_Warehouse_StockItems",
+ schemaName: "Sales",
+ entity: "OrderLines",
+ column: "StockItemID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "StockItems",
+ referencedColumn: "StockItemID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Purchasing_SupplierTransactions_TransactionTypeID_Application_TransactionTypes",
+ "FK_Warehouse_StockItemStockGroups_StockItemID_Warehouse_StockItems",
+ schemaName: "Warehouse",
+ entity: "StockItemStockGroups",
+ column: "StockItemID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "StockItems",
+ referencedColumn: "StockItemID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Sales_InvoiceLines_StockItemID_Warehouse_StockItems",
+ schemaName: "Sales",
+ entity: "InvoiceLines",
+ column: "StockItemID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "StockItems",
+ referencedColumn: "StockItemID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_Warehouse_StockItemTransactions_StockItemID_Warehouse_StockItems",
+ schemaName: "Warehouse",
+ entity: "StockItemTransactions",
+ column: "StockItemID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "StockItems",
+ referencedColumn: "StockItemID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "PKFK_Warehouse_StockItemHoldings_StockItemID_Warehouse_StockItems",
+ schemaName: "Warehouse",
+ entity: "StockItemHoldings",
+ column: "StockItemID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "StockItems",
+ referencedColumn: "StockItemID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_Purchasing_PurchaseOrderLines_StockItemID_Warehouse_StockItems",
+ schemaName: "Purchasing",
+ entity: "PurchaseOrderLines",
+ column: "StockItemID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "StockItems",
+ referencedColumn: "StockItemID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Sales_SpecialDeals_StockItemID_Warehouse_StockItems",
+ schemaName: "Sales",
+ entity: "SpecialDeals",
+ column: "StockItemID",
+ referencedSchema: "Warehouse",
+ referencedEntity: "StockItems",
+ referencedColumn: "StockItemID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_Application_StateProvinces_CountryID_Application_Countries",
+ schemaName: "Application",
+ entity: "StateProvinces",
+ column: "CountryID",
+ referencedSchema: "Application",
+ referencedEntity: "Countries",
+ referencedColumn: "CountryID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_Purchasing_Suppliers_DeliveryMethodID_Application_DeliveryMethods",
+ schemaName: "Purchasing",
+ entity: "Suppliers",
+ column: "DeliveryMethodID",
+ referencedSchema: "Application",
+ referencedEntity: "DeliveryMethods",
+ referencedColumn: "DeliveryMethodID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_Sales_Customers_DeliveryMethodID_Application_DeliveryMethods",
+ schemaName: "Sales",
+ entity: "Customers",
+ column: "DeliveryMethodID",
+ referencedSchema: "Application",
+ referencedEntity: "DeliveryMethods",
+ referencedColumn: "DeliveryMethodID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_Purchasing_PurchaseOrders_DeliveryMethodID_Application_DeliveryMethods",
+ schemaName: "Purchasing",
+ entity: "PurchaseOrders",
+ column: "DeliveryMethodID",
+ referencedSchema: "Application",
+ referencedEntity: "DeliveryMethods",
+ referencedColumn: "DeliveryMethodID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_Sales_Invoices_DeliveryMethodID_Application_DeliveryMethods",
+ schemaName: "Sales",
+ entity: "Invoices",
+ column: "DeliveryMethodID",
+ referencedSchema: "Application",
+ referencedEntity: "DeliveryMethods",
+ referencedColumn: "DeliveryMethodID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_Sales_CustomerTransactions_PaymentMethodID_Application_PaymentMethods",
+ schemaName: "Sales",
+ entity: "CustomerTransactions",
+ column: "PaymentMethodID",
+ referencedSchema: "Application",
+ referencedEntity: "PaymentMethods",
+ referencedColumn: "PaymentMethodID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName:
+ "FK_Purchasing_SupplierTransactions_PaymentMethodID_Application_PaymentMethods",
+ schemaName: "Purchasing",
entity: "SupplierTransactions",
- column: "TransactionTypeID",
- referencedEntity: "TransactionTypes",
- referencedColumn: "TransactionTypeID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ column: "PaymentMethodID",
+ referencedSchema: "Application",
+ referencedEntity: "PaymentMethods",
+ referencedColumn: "PaymentMethodID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
"FK_Sales_CustomerTransactions_TransactionTypeID_Application_TransactionTypes",
+ schemaName: "Sales",
entity: "CustomerTransactions",
column: "TransactionTypeID",
+ referencedSchema: "Application",
referencedEntity: "TransactionTypes",
referencedColumn: "TransactionTypeID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
"FK_Warehouse_StockItemTransactions_TransactionTypeID_Application_TransactionTypes",
+ schemaName: "Warehouse",
entity: "StockItemTransactions",
column: "TransactionTypeID",
+ referencedSchema: "Application",
referencedEntity: "TransactionTypes",
referencedColumn: "TransactionTypeID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Purchasing_SupplierTransactions_PaymentMethodID_Application_PaymentMethods",
+ "FK_Purchasing_SupplierTransactions_TransactionTypeID_Application_TransactionTypes",
+ schemaName: "Purchasing",
entity: "SupplierTransactions",
- column: "PaymentMethodID",
- referencedEntity: "PaymentMethods",
- referencedColumn: "PaymentMethodID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ column: "TransactionTypeID",
+ referencedSchema: "Application",
+ referencedEntity: "TransactionTypes",
+ referencedColumn: "TransactionTypeID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Sales_CustomerTransactions_PaymentMethodID_Application_PaymentMethods",
+ "FK_Purchasing_Suppliers_SupplierCategoryID_Purchasing_SupplierCategories",
+ schemaName: "Purchasing",
+ entity: "Suppliers",
+ column: "SupplierCategoryID",
+ referencedSchema: "Purchasing",
+ referencedEntity: "SupplierCategories",
+ referencedColumn: "SupplierCategoryID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Sales_Customers_BuyingGroupID_Sales_BuyingGroups",
+ schemaName: "Sales",
+ entity: "Customers",
+ column: "BuyingGroupID",
+ referencedSchema: "Sales",
+ referencedEntity: "BuyingGroups",
+ referencedColumn: "BuyingGroupID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Sales_SpecialDeals_BuyingGroupID_Sales_BuyingGroups",
+ schemaName: "Sales",
+ entity: "SpecialDeals",
+ column: "BuyingGroupID",
+ referencedSchema: "Sales",
+ referencedEntity: "BuyingGroups",
+ referencedColumn: "BuyingGroupID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Sales_CustomerTransactions_InvoiceID_Sales_Invoices",
+ schemaName: "Sales",
entity: "CustomerTransactions",
- column: "PaymentMethodID",
- referencedEntity: "PaymentMethods",
- referencedColumn: "PaymentMethodID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ column: "InvoiceID",
+ referencedSchema: "Sales",
+ referencedEntity: "Invoices",
+ referencedColumn: "InvoiceID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
+ {
+ foreignKeyName: "FK_Sales_InvoiceLines_InvoiceID_Sales_Invoices",
+ schemaName: "Sales",
+ entity: "InvoiceLines",
+ column: "InvoiceID",
+ referencedSchema: "Sales",
+ referencedEntity: "Invoices",
+ referencedColumn: "InvoiceID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Purchasing_PurchaseOrderLines_PurchaseOrderID_Purchasing_PurchaseOrders",
- entity: "PurchaseOrderLines",
- column: "PurchaseOrderID",
- referencedEntity: "PurchaseOrders",
- referencedColumn: "PurchaseOrderID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ "FK_Warehouse_StockItemTransactions_InvoiceID_Sales_Invoices",
+ schemaName: "Warehouse",
+ entity: "StockItemTransactions",
+ column: "InvoiceID",
+ referencedSchema: "Sales",
+ referencedEntity: "Invoices",
+ referencedColumn: "InvoiceID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Purchasing_SupplierTransactions_PurchaseOrderID_Purchasing_PurchaseOrders",
- entity: "SupplierTransactions",
- column: "PurchaseOrderID",
- referencedEntity: "PurchaseOrders",
- referencedColumn: "PurchaseOrderID",
- onDeleteAction: 1,
- onUpdateAction: 1,
+ "FK_Sales_Customers_CustomerCategoryID_Sales_CustomerCategories",
+ schemaName: "Sales",
+ entity: "Customers",
+ column: "CustomerCategoryID",
+ referencedSchema: "Sales",
+ referencedEntity: "CustomerCategories",
+ referencedColumn: "CustomerCategoryID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
},
{
foreignKeyName:
- "FK_Warehouse_StockItemTransactions_PurchaseOrderID_Purchasing_PurchaseOrders",
- entity: "StockItemTransactions",
- column: "PurchaseOrderID",
- referencedEntity: "PurchaseOrders",
- referencedColumn: "PurchaseOrderID",
- onDeleteAction: 1,
- onUpdateAction: 1,
- },
- {
- foreignKeyName: "",
- onDeleteAction: "0",
- onUpdateAction: "0",
- column: "Column1",
- entity: "New Table 2",
- referencedEntity: "New Table",
- referencedColumn: "Column2",
- },
- {
- foreignKeyName: "",
- onDeleteAction: "0",
- onUpdateAction: "0",
- column: "Column1",
- entity: "New Table 4",
- referencedEntity: "New Table 3",
- referencedColumn: "Column1",
- },
- {
- foreignKeyName: "",
- onDeleteAction: "0",
- onUpdateAction: "0",
- column: "Column1",
- entity: "New Table 6",
- referencedEntity: "New Table 2",
- referencedColumn: "Column1",
- },
- {
- foreignKeyName: "",
- onDeleteAction: "0",
- onUpdateAction: "0",
- column: "Column1",
- entity: "New Table 7",
- referencedEntity: "New Table 2",
- referencedColumn: "Column1",
- },
- {
- foreignKeyName: "",
- onDeleteAction: "0",
- onUpdateAction: "0",
- column: "Column1",
- entity: "New Table 5",
- referencedEntity: "New Table 2",
- referencedColumn: "Column1",
- },
+ "FK_Sales_SpecialDeals_CustomerCategoryID_Sales_CustomerCategories",
+ schemaName: "Sales",
+ entity: "SpecialDeals",
+ column: "CustomerCategoryID",
+ referencedSchema: "Sales",
+ referencedEntity: "CustomerCategories",
+ referencedColumn: "CustomerCategoryID",
+ onDeleteAction: 0,
+ onUpdateAction: 0,
+ },
],
};