From ff3e28bb5a0743442ca8faccbe6c9b44d02a55c1 Mon Sep 17 00:00:00 2001 From: Aasim Khan Date: Wed, 22 Jan 2025 22:52:57 -0800 Subject: [PATCH] Fixing layouts (#187) * Fixing layouts * fixing console * Fixing version * removing vite * Fixing more colors and icons --- index.html | 6 +- package.json | 8 +- src/ts/schemaDesigner/schemaDesigner.css | 356 +- src/ts/schemaDesigner/schemaDesigner.ts | 11 +- src/ts/schemaDesigner/schemaDesignerEntity.ts | 11 +- .../schemaDesignerInterfaces.ts | 5 +- src/ts/schemaDesigner/schemaDesignerLayout.ts | 147 +- .../schemaDesigner/schemaDesignerToolbar.ts | 3 +- ts-examples/adventureWorks.html | 63 + ts-examples/bigSchema.html | 101 - ts-examples/mediumSchema.html | 115 - ts-examples/schemaDesigner.js | 4548 ---------------- .../schema_adventure_works.js} | 0 ts-examples/schemas/schema_designer_config.js | 172 + .../schemas/schema_world_wide_importers.js | 4714 +++++++++++++++++ ts-examples/smallSchema.html | 30 +- ts-examples/worldWideImporters.html | 56 + ts-examples/worldWideImporters.js | 4519 ---------------- yarn.lock | 318 +- 19 files changed, 5310 insertions(+), 9873 deletions(-) create mode 100644 ts-examples/adventureWorks.html delete mode 100644 ts-examples/bigSchema.html delete mode 100644 ts-examples/mediumSchema.html delete mode 100644 ts-examples/schemaDesigner.js rename ts-examples/{adventureWorks.js => schemas/schema_adventure_works.js} (100%) create mode 100644 ts-examples/schemas/schema_designer_config.js create mode 100644 ts-examples/schemas/schema_world_wide_importers.js create mode 100644 ts-examples/worldWideImporters.html delete mode 100644 ts-examples/worldWideImporters.js diff --git a/index.html b/index.html index 4a36a7f..e1c4481 100644 --- a/index.html +++ b/index.html @@ -7,9 +7,9 @@

Examples

\ No newline at end of file diff --git a/package.json b/package.json index c4e898f..6b2799f 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.73", + "version": "0.0.74", "homepage": "https://github.com/microsoft/azdataGraph", "author": "Microsoft", "license": "Apache-2.0", @@ -19,8 +19,7 @@ "build": "yarn compile-mxgraph && npx tsc && node build.js", "watch": "yarn compile-mxgraph && node build.js --watch", "examples": "http-server -p 4000", - "lint": "eslint", - "dev": "vite" + "lint": "eslint" }, "devDependencies": { "@jgoz/esbuild-plugin-typecheck": "^4.0.2", @@ -40,8 +39,7 @@ "react-dom": "^19.0.0", "react-router-dom": "^7.1.1", "typescript": "^5.7.2", - "typescript-eslint": "^8.18.0", - "vite": "^6.0.7" + "typescript-eslint": "^8.18.0" }, "dependencies": { "create-color": "^2.0.6" diff --git a/src/ts/schemaDesigner/schemaDesigner.css b/src/ts/schemaDesigner/schemaDesigner.css index 0a6f23e..8440abf 100644 --- a/src/ts/schemaDesigner/schemaDesigner.css +++ b/src/ts/schemaDesigner/schemaDesigner.css @@ -5,178 +5,188 @@ } .sd-toolbar-belt { - position: fixed; - bottom: 22px; - z-index: var(--sd-z-toolbar); - display: flex; - justify-content: center; - align-items: center; - width: 100%; - } - - .sd-toolbar { - height: 48px; - width: fit-content; - gap: 0.5rem; - display: flex; - background-color: var(--sd-toolbar-background-color); - color: var(--sd-toolbar-foreground-color); - padding: 5px; - border-radius: 0.8rem; - vertical-align: middle; - justify-content: center; - align-items: center; - box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.35), 0px 1px 3px rgba(0, 0, 0, 0.5), - inset 0px 0.5px 0px rgba(255, 255, 255, 0.08), - inset 0px 0px 0.5px rgba(255, 255, 255, 0.3); - } - - .sd-toolbar-button { - cursor: pointer; - width: 32px; - height: 32px; - background-size: 25px 25px; - background-repeat: no-repeat; - background-position: center; - padding: 4px; - border-radius: 0.5rem; - } - - .sd-toolbar-button:hover { - background-color: var(--sd-toolbar-hover-background-color); - } - - .sd-toolbar-divider { - height: 100%; - width: 1px; - background-color: var(--sd-toolbar-divider-background-color); - } - - #graphContainer { - width: 100%; - height: 100%; - z-index: var(--sd-z-base); - background-image: radial-gradient( - circle, - var(--sd-graph-grid-color) 10%, - transparent 10% - ); - background-size: 20px 20px; - background-repeat: repeat; - overflow: auto; - background-color: var(--sd-graph-background-color); - } - - .sd-outline { - position: fixed; - right: 10px; - bottom: 10px; - border-radius: 0.2rem; - z-index: var(--sd-z-toolbar); - border: 1px solid var(--sd-border-color); - box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.35), 0px 1px 3px rgba(0, 0, 0, 0.5), - inset 0px 0.5px 0px rgba(255, 255, 255, 0.08), - inset 0px 0px 0.5px rgba(255, 255, 255, 0.3); - background-color: var(--sd-graph-background-color); - width: 200px; - height: 100px; - } - - .sd-table { - width: 260px; - height: 100%; - border-radius: 2px; - color: var(--sd-cell-html-foreground); - box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.35), 0px 1px 3px rgba(0, 0, 0, 0.5), + position: fixed; + bottom: 22px; + z-index: var(--sd-z-toolbar); + display: flex; + justify-content: center; + align-items: center; + width: 100%; +} + +.sd-toolbar { + height: 48px; + width: fit-content; + gap: 0.5rem; + display: flex; + background-color: var(--sd-toolbar-background-color); + color: var(--sd-toolbar-foreground-color); + padding: 5px; + border-radius: 0.8rem; + vertical-align: middle; + justify-content: center; + align-items: center; + box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.35), 0px 1px 3px rgba(0, 0, 0, 0.5), + inset 0px 0.5px 0px rgba(255, 255, 255, 0.08), + inset 0px 0px 0.5px rgba(255, 255, 255, 0.3); +} + +.sd-toolbar-button { + cursor: pointer; + width: 32px; + height: 32px; + background-size: 25px 25px; + background-repeat: no-repeat; + background-position: center; + padding: 4px; + border-radius: 0.5rem; + display: flex; + justify-content: center; + align-items: center; +} + +.sd-toolbar-button:hover { + background-color: var(--sd-toolbar-hover-background-color); +} + +.sd-toolbar-divider { + height: 100%; + width: 1px; + background-color: var(--sd-toolbar-divider-background-color); +} + +#graphContainer { + width: 100%; + height: 100%; + z-index: var(--sd-z-base); + background-image: radial-gradient( + circle, + var(--sd-graph-grid-color) 10%, + transparent 10% + ); + background-size: 20px 20px; + background-repeat: repeat; + overflow: auto; + background-color: var(--sd-graph-background-color); +} + +.sd-outline { + position: fixed; + right: 10px; + bottom: 10px; + border-radius: 0.2rem; + z-index: var(--sd-z-toolbar); + border: 1px solid var(--sd-border-color); + box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.35), 0px 1px 3px rgba(0, 0, 0, 0.5), + inset 0px 0.5px 0px rgba(255, 255, 255, 0.08), + inset 0px 0px 0.5px rgba(255, 255, 255, 0.3); + background-color: var(--sd-graph-background-color); + width: 200px; + height: 100px; +} + +.sd-table { + width: 260px; + height: 100%; + border-radius: 2px; + color: var(--sd-cell-html-foreground); + box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.35), 0px 1px 3px rgba(0, 0, 0, 0.5), inset 0px 0.5px 0px rgba(255, 255, 255, 0.08), inset 0px 0px 0.5px rgba(255, 255, 255, 0.3); - display: flex; - flex-direction: column; - background-color: var(--sd-graph-background-color); - } - - .sd-table-color-indicator { - width: 100%; - height: 6px; - border-radius: 2px 2px 0 0; - } - - .sd-table-header { - display: flex; - gap: 10px; - height: 40px; - border-bottom: 1px solid var(--sd-border-color); - } - - - .sd-table-header-icon { - width: 24px; - height: 100%; - background-size: 16px 16px; - background-repeat: no-repeat; - background-position: center; - margin-left: 10px; - } - - .sd-table-header-text { - font-size: 14px; - font-weight: 500; - align-self: center; - text-align: left; - flex: 1; - user-select: none; - text-overflow: ellipsis; - overflow: hidden; - } - - .sd-table-columns { - display: flex; - flex-direction: column; - max-height: 280px; - overflow-y: auto; - margin-top: 5px; - padding: 0; - box-sizing: border-box; - } - - .sd-table-column { - display: flex; - gap: 10px; - height: 28px; - min-height: 28px; - box-sizing: border-box; - } - - .sd-table-column:hover{ - background-color: var(--sd-cell-html-hover-column-background); - } - - .sd-table-column-icon { - width: 26px; - height: 100%; - background-size: 16px 16px; - background-repeat: no-repeat; - background-position: center; - margin-left: 10px; - } - - .sd-table-column-text { - font-size: 13px; - line-height: 18px; - font-weight: 400; - align-self: center; - text-align: left; - user-select: none; - flex: 1; - } - - .sd-table-column-constraints { - font-size: 13px; - line-height: 18px; - font-weight: 400; - align-self: center; - text-align: left; - margin-right: 10px; - user-select: none; - } - \ No newline at end of file + display: flex; + flex-direction: column; + background-color: var(--sd-graph-background-color); +} + +.sd-table-color-indicator { + width: 100%; + height: 6px; + border-radius: 2px 2px 0 0; +} + +.sd-table-header { + display: flex; + gap: 10px; + height: 40px; + border-bottom: 1px solid var(--sd-cell-divider-color); +} + +.sd-table-header-icon { + width: 24px; + height: 100%; + background-size: 16px 16px; + background-repeat: no-repeat; + background-position: center; + margin-left: 10px; + display: flex; + justify-content: center; + align-items: center; + color: var(--sd-cell-html-foreground); +} + +.sd-table-header-text { + font-size: 14px; + font-weight: 500; + align-self: center; + text-align: left; + flex: 1; + user-select: none; + text-overflow: ellipsis; + overflow: hidden; +} + +.sd-table-columns { + display: flex; + flex-direction: column; + max-height: 280px; + overflow-y: auto; + margin-top: 5px; + padding: 0; + box-sizing: border-box; +} + +.sd-table-column { + display: flex; + gap: 10px; + height: 28px; + min-height: 28px; + box-sizing: border-box; +} + +.sd-table-column:hover { + background-color: var(--sd-cell-html-hover-column-background); +} + +.sd-table-column-icon { + width: 26px; + height: 100%; + background-size: 16px 16px; + background-repeat: no-repeat; + background-position: center; + margin-left: 10px; + display: flex; + justify-content: center; + align-items: center; +} + +.sd-table-column-text { + font-size: 13px; + line-height: 18px; + font-weight: 400; + align-self: center; + text-align: left; + user-select: none; + flex: 1; + overflow: hidden; + text-overflow: ellipsis; +} + +.sd-table-column-constraints { + font-size: 13px; + line-height: 18px; + font-weight: 400; + align-self: center; + text-align: left; + margin-right: 10px; + user-select: none; +} diff --git a/src/ts/schemaDesigner/schemaDesigner.ts b/src/ts/schemaDesigner/schemaDesigner.ts index 99cbe64..2f53588 100644 --- a/src/ts/schemaDesigner/schemaDesigner.ts +++ b/src/ts/schemaDesigner/schemaDesigner.ts @@ -55,7 +55,10 @@ export class SchemaDesigner { this._container.style.setProperty("--sd-cell-html-foreground", this._config.colors.cellForeground); this._container.style.setProperty("--sd-cell-html-hover-column-background", this._config.colors.cellColumnHover); - + this._container.style.setProperty("--sd-cell-divider-color", this._config.colors.cellDivider); + this._container.style.setProperty("--sd-graph-background-color", this._config.colors.cellBackground); + + this._graph.getStylesheet().getDefaultVertexStyle()["fillColor"] = this._config.colors.cellBackground; this._graph.getStylesheet().getDefaultEdgeStyle()["strokeColor"] = this._config.colors.edge; this._graph.getStylesheet().getDefaultVertexStyle()['cellHighlightColor'] = this._config.colors.cellHighlight; @@ -495,17 +498,17 @@ export class SchemaDesigner { schema: "dbo", columns: [{ name: "Column1", - datatype: "int", + dataType: "int", isPrimaryKey: true, isIdentity: true }, { name: "Column2", - datatype: "int", + dataType: "int", isPrimaryKey: false, isIdentity: false }, { name: "Column2", - datatype: "int", + dataType: "int", isPrimaryKey: false, isIdentity: false }] diff --git a/src/ts/schemaDesigner/schemaDesignerEntity.ts b/src/ts/schemaDesigner/schemaDesignerEntity.ts index 17019b0..3b90fb3 100644 --- a/src/ts/schemaDesigner/schemaDesignerEntity.ts +++ b/src/ts/schemaDesigner/schemaDesignerEntity.ts @@ -25,8 +25,9 @@ export class SchemaDesignerEntity implements IEntity { const header = document.createElement("div"); header.classList.add("sd-table-header"); const headerIcon = document.createElement("div"); + headerIcon.innerHTML = this._config.icons.entityIcon; headerIcon.classList.add("sd-table-header-icon"); - headerIcon.style.backgroundImage = `url(${this._config.icons.entityIcon})`; + headerIcon.innerHTML = this._config.icons.entityIcon; header.appendChild(headerIcon); const headerText = document.createElement("div"); headerText.classList.add("sd-table-header-text"); @@ -41,11 +42,13 @@ export class SchemaDesignerEntity implements IEntity { columnDiv.classList.add("sd-table-column"); const columnIcon = document.createElement("div"); columnIcon.classList.add("sd-table-column-icon"); - if(this._config.icons.dataTypeIcons[column.datatype]){ - columnIcon.style.backgroundImage = `url(${this._config.icons.dataTypeIcons[column.datatype]})`; + if(this._config.icons.dataTypeIcons[column.dataType] !== undefined) { + columnIcon.innerHTML = this._config.icons.dataTypeIcons[column.dataType]; } else { - columnIcon.style.backgroundImage = `url(${this._config.icons.customDataTypeIcon})`; + console.log(column.dataType); + columnIcon.innerHTML = this._config.icons.customDataTypeIcon; } + columnIcon.title = column.dataType; columnDiv.appendChild(columnIcon); const columnText = document.createElement("div"); columnText.classList.add("sd-table-column-text"); diff --git a/src/ts/schemaDesigner/schemaDesignerInterfaces.ts b/src/ts/schemaDesigner/schemaDesignerInterfaces.ts index 9260b7c..acc404d 100644 --- a/src/ts/schemaDesigner/schemaDesignerInterfaces.ts +++ b/src/ts/schemaDesigner/schemaDesignerInterfaces.ts @@ -27,7 +27,7 @@ export interface IColumn { /** * Data type of the column */ - datatype: string; + dataType: string; /** * Is the column primary key */ @@ -100,7 +100,8 @@ export interface SchemaDesignerConfig { cellBackground: string; cellBorder: string; cellColumnHover: string; - + cellDivider: string; + toolbarBackground: string; toolbarForeground: string; toolbarHoverBackground: string; diff --git a/src/ts/schemaDesigner/schemaDesignerLayout.ts b/src/ts/schemaDesigner/schemaDesignerLayout.ts index 4b10e4b..d45afc1 100644 --- a/src/ts/schemaDesigner/schemaDesignerLayout.ts +++ b/src/ts/schemaDesigner/schemaDesignerLayout.ts @@ -7,65 +7,102 @@ export class SchemaDesignerLayout extends mx.mxHierarchicalLayout { } public override execute(parent: mxCell): void { + + this.graph.getModel().beginUpdate(); this.interHierarchySpacing = 100; this.orientation = mx.mxConstants.DIRECTION_WEST; super.execute(parent); - // let cells = this.graph.getModel().getChildCells(this.graph.getDefaultParent()); - // cells = cells.filter(cell => !cell.edge); - // const cellSet = new Set(cells.map(cell => cell.id)); - - // this.graph.getModel().beginUpdate(); - // // Find all subgraphs - // const subGraphs: mxCell[][] = []; - // for (const cell of cells) { - // if (cellSet.has(cell.id)) { - // const subGraph: mxCell[] = []; - // const queue: mxCell[] = [cell]; - // cellSet.delete(cell.id); - // while (queue.length > 0) { - // const current = queue.shift() as mxCell; - // cellSet.delete(current.id); - // subGraph.push(current); - // const edges = this.graph.getModel().getEdges(current); - // for (const edge of edges) { - // let nextNode: mxCell | undefined = undefined; - // if (edge.source.id === current.id) { - // nextNode = edge.target; - // } else if (edge.target.id === current.id) { - // nextNode = edge.source; - // } - // if (nextNode !== undefined) { - // if (cellSet.has(nextNode!.id)) { - // queue.push(nextNode!); - // cellSet.delete(nextNode!.id); - // } - // } - // } - // } - // subGraphs.push(subGraph); - // } - // } - - // const boundingBoxes = subGraphs.map(subGraph => { - // let minX = Number.MAX_VALUE; - // let minY = Number.MAX_VALUE; - // let maxX = Number.MIN_VALUE; - // let maxY = Number.MIN_VALUE; - // for (const cell of subGraph) { - // const geo = cell.getGeometry(); - // if (geo) { - // minX = Math.min(minX, geo.x); - // minY = Math.min(minY, geo.y); - // maxX = Math.max(maxX, geo.x + geo.width); - // maxY = Math.max(maxY, geo.y + geo.height); - // } - // } - // return { minX, minY, maxX, maxY }; - // }); - - // console.log(boundingBoxes); - // this.graph.getModel().endUpdate(); + // Move all cells to the right by 100px + let cells = this.graph.getModel().getChildCells(this.graph.getDefaultParent()); + this.graph.moveCells(cells, 100, 0, false); + + cells = cells.filter(cell => !cell.edge); + const cellSet = new Set(cells.map(cell => cell.id)); + + // Find all subgraphs + const subGraphs: mxCell[][] = []; + for (const cell of cells) { + if (cellSet.has(cell.id)) { + const subGraph: mxCell[] = []; + const queue: mxCell[] = [cell]; + cellSet.delete(cell.id); + while (queue.length > 0) { + const current = queue.shift() as mxCell; + cellSet.delete(current.id); + subGraph.push(current); + const edges = this.graph.getModel().getEdges(current); + for (const edge of edges) { + let nextNode: mxCell | undefined = undefined; + if (edge.source.id === current.id) { + nextNode = edge.target; + } else if (edge.target.id === current.id) { + nextNode = edge.source; + } + if (nextNode !== undefined) { + if (cellSet.has(nextNode!.id)) { + queue.push(nextNode!); + cellSet.delete(nextNode!.id); + } + } + } + } + subGraphs.push(subGraph); + } + } + + // Arranging all standalone cells in a grid layout. The grid row width is determined by the width of the biggest subgraph. + + const boundingBoxes = subGraphs.map(subGraph => { + let minX = Number.MAX_VALUE; + let minY = Number.MAX_VALUE; + let maxX = Number.MIN_VALUE; + let maxY = Number.MIN_VALUE; + for (const cell of subGraph) { + const geo = cell.getGeometry(); + if (geo) { + minX = Math.min(minX, geo.x); + minY = Math.min(minY, geo.y); + maxX = Math.max(maxX, geo.x + geo.width); + maxY = Math.max(maxY, geo.y + geo.height); + } + } + return { minX, minY, maxX, maxY }; + }); + + const maxX = Math.max(...boundingBoxes.map(box => box.maxX)); + + const standaloneCells: mxCell[] = []; + + for (const subGraph of subGraphs) { + if (subGraph.length === 1) { + standaloneCells.push(...subGraph); + } + } + + const startX = Math.min(...standaloneCells.map(cell => cell.geometry.x)); + const startY = Math.min(...standaloneCells.map(cell => cell.geometry.y)); + + const intercellSpacing = 100; + + let currentX = startX; + let currentY = startY; + let currentRowMaxHeight = 0; + for (let i = 0; i < standaloneCells.length; i++) { + if(currentX + intercellSpacing > maxX) { + currentX = startX; + currentY = currentY + currentRowMaxHeight + intercellSpacing; + currentRowMaxHeight = 0; + } + const cell = standaloneCells[i]; + cell.geometry.x = currentX; + cell.geometry.y = currentY; + + currentX = currentX + cell.geometry.width + intercellSpacing; + currentRowMaxHeight = Math.max(currentRowMaxHeight, cell.geometry.height); + } + + this.graph.getModel().endUpdate(); } } \ No newline at end of file diff --git a/src/ts/schemaDesigner/schemaDesignerToolbar.ts b/src/ts/schemaDesigner/schemaDesignerToolbar.ts index b49648b..ffa38d8 100644 --- a/src/ts/schemaDesigner/schemaDesignerToolbar.ts +++ b/src/ts/schemaDesigner/schemaDesignerToolbar.ts @@ -8,6 +8,7 @@ export class SchemaDesignerToolbar { this._toolbarDiv = document.createElement("div"); this._container.appendChild(this._toolbarDiv); this._toolbarDiv.classList.add("sd-toolbar"); + this._toolbarDiv.style.color = this._config.colors.toolbarForeground; } public addButton( @@ -18,7 +19,7 @@ export class SchemaDesignerToolbar { const button = document.createElement("div"); this._toolbarDiv.appendChild(button); button.classList.add("sd-toolbar-button"); - button.style.backgroundImage = `url(${icon})`; + button.innerHTML = icon; button.onclick = callback; button.title = title; if (onDragEndCallback) { diff --git a/ts-examples/adventureWorks.html b/ts-examples/adventureWorks.html new file mode 100644 index 0000000..eefb442 --- /dev/null +++ b/ts-examples/adventureWorks.html @@ -0,0 +1,63 @@ + + + + + + Medium Schema Designer + + + + + +
+ + diff --git a/ts-examples/bigSchema.html b/ts-examples/bigSchema.html deleted file mode 100644 index 9912bfa..0000000 --- a/ts-examples/bigSchema.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - Big Schema Designer - - - - - -
- - diff --git a/ts-examples/mediumSchema.html b/ts-examples/mediumSchema.html deleted file mode 100644 index dddc818..0000000 --- a/ts-examples/mediumSchema.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - Medium Schema Designer - - - - - -
- - diff --git a/ts-examples/schemaDesigner.js b/ts-examples/schemaDesigner.js deleted file mode 100644 index 6cf99d1..0000000 --- a/ts-examples/schemaDesigner.js +++ /dev/null @@ -1,4548 +0,0 @@ -export const test = { - "entities": [ - { - "name": "Colors", - "schema": "Warehouse", - "columns": [ - { - "name": "ColorID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ColorName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Colors_Archive", - "schema": "Warehouse", - "columns": [ - { - "name": "ColorID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ColorName", - "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": "OrderLines", - "schema": "Sales", - "columns": [ - { - "name": "OrderLineID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "OrderID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "Description", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PackageTypeID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "Quantity", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "UnitPrice", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TaxRate", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PickedQuantity", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PickingCompletedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "PackageTypes", - "schema": "Warehouse", - "columns": [ - { - "name": "PackageTypeID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PackageTypeName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "PackageTypes_Archive", - "schema": "Warehouse", - "columns": [ - { - "name": "PackageTypeID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PackageTypeName", - "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": "StockGroups", - "schema": "Warehouse", - "columns": [ - { - "name": "StockGroupID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockGroupName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "StockItemStockGroups", - "schema": "Warehouse", - "columns": [ - { - "name": "StockItemStockGroupID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockGroupID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockGroupID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockGroupID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "StockGroups_Archive", - "schema": "Warehouse", - "columns": [ - { - "name": "StockGroupID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StockGroupName", - "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": "StateProvinces", - "schema": "Application", - "columns": [ - { - "name": "StateProvinceID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StateProvinceCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StateProvinceName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CountryID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SalesTerritory", - "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": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "CustomerTransactions", - "schema": "Sales", - "columns": [ - { - "name": "CustomerTransactionID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CustomerID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "TransactionTypeID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "InvoiceID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PaymentMethodID", - "dataType": "int", - "isPrimaryKey": true, - "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", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "StateProvinces_Archive", - "schema": "Application", - "columns": [ - { - "name": "StateProvinceID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StateProvinceCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StateProvinceName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CountryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SalesTerritory", - "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", - "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": "StateProvinceID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "Location", - "dataType": "geography", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LatestRecordedPopulation", - "dataType": "bigint", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Cities_Archive", - "schema": "Application", - "columns": [ - { - "name": "CityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CityName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StateProvinceID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Location", - "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", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "SystemParameters", - "schema": "Application", - "columns": [ - { - "name": "SystemParameterID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryCityID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "DeliveryPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryLocation", - "dataType": "geography", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalCityID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PostalPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ApplicationSettings", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "InvoiceLines", - "schema": "Sales", - "columns": [ - { - "name": "InvoiceLineID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "InvoiceID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "Description", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PackageTypeID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "Quantity", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "UnitPrice", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TaxRate", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TaxAmount", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LineProfit", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ExtendedPrice", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Suppliers", - "schema": "Purchasing", - "columns": [ - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SupplierName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SupplierCategoryID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PrimaryContactPersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "AlternateContactPersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "DeliveryCityID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PostalCityID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SupplierReference", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountBranch", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankInternationalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PaymentDays", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PhoneNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FaxNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "WebsiteURL", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryLocation", - "dataType": "geography", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "StockItemTransactions", - "schema": "Warehouse", - "columns": [ - { - "name": "StockItemTransactionID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "TransactionTypeID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CustomerID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "InvoiceID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PurchaseOrderID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "TransactionOccurredWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Quantity", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Suppliers_Archive", - "schema": "Purchasing", - "columns": [ - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierCategoryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PrimaryContactPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "AlternateContactPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierReference", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountBranch", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankInternationalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PaymentDays", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PhoneNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FaxNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "WebsiteURL", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryLocation", - "dataType": "geography", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalPostalCode", - "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": true, - "isIdentity": false - }, - { - "name": "BillToCustomerID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CustomerCategoryID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "BuyingGroupID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PrimaryContactPersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "AlternateContactPersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "DeliveryCityID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PostalCityID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CreditLimit", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "AccountOpenedDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StandardDiscountPercentage", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsStatementSent", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsOnCreditHold", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PaymentDays", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PhoneNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FaxNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryRun", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "RunPosition", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "WebsiteURL", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryLocation", - "dataType": "geography", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Customers_Archive", - "schema": "Sales", - "columns": [ - { - "name": "CustomerID", - "dataType": "int", - "isPrimaryKey": false, - "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", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CreditLimit", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "AccountOpenedDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StandardDiscountPercentage", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsStatementSent", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsOnCreditHold", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PaymentDays", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PhoneNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FaxNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryRun", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "RunPosition", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "WebsiteURL", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryLocation", - "dataType": "geography", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalPostalCode", - "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": "PurchaseOrders", - "schema": "Purchasing", - "columns": [ - { - "name": "PurchaseOrderID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "OrderDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ContactPersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ExpectedDeliveryDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierReference", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsOrderFinalized", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Comments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Orders", - "schema": "Sales", - "columns": [ - { - "name": "OrderID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CustomerID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SalespersonPersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PickedByPersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ContactPersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "BackorderOrderID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "OrderDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ExpectedDeliveryDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomerPurchaseOrderNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsUndersupplyBackordered", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Comments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryInstructions", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PickingCompletedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "ColdRoomTemperatures", - "schema": "Warehouse", - "columns": [ - { - "name": "ColdRoomTemperatureID", - "dataType": "bigint", - "isPrimaryKey": true, - "isIdentity": true - }, - { - "name": "ColdRoomSensorNumber", - "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, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "VehicleTemperatures", - "schema": "Warehouse", - "columns": [ - { - "name": "VehicleTemperatureID", - "dataType": "bigint", - "isPrimaryKey": true, - "isIdentity": true - }, - { - "name": "VehicleRegistration", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ChillerSensorNumber", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "RecordedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Temperature", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FullSensorData", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsCompressed", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CompressedSensorData", - "dataType": "varbinary", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "People", - "schema": "Application", - "columns": [ - { - "name": "PersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "FullName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PreferredName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SearchName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsPermittedToLogon", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LogonName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "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 - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "StockItems", - "schema": "Warehouse", - "columns": [ - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ColorID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "UnitPackageID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "OuterPackageID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "Brand", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Size", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LeadTimeDays", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "QuantityPerOuter", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsChillerStock", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Barcode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TaxRate", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "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": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Photo", - "dataType": "varbinary", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomFields", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Tags", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SearchDetails", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "People_Archive", - "schema": "Application", - "columns": [ - { - "name": "PersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FullName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PreferredName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SearchName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsPermittedToLogon", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LogonName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "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 - }, - { - "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": "ColdRoomTemperatures_Archive", - "schema": "Warehouse", - "columns": [ - { - "name": "ColdRoomTemperatureID", - "dataType": "bigint", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ColdRoomSensorNumber", - "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, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "StockItems_Archive", - "schema": "Warehouse", - "columns": [ - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StockItemName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ColorID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "UnitPackageID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "OuterPackageID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Brand", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Size", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LeadTimeDays", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "QuantityPerOuter", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsChillerStock", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Barcode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TaxRate", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "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": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Photo", - "dataType": "varbinary", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomFields", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Tags", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SearchDetails", - "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": "Countries", - "schema": "Application", - "columns": [ - { - "name": "CountryID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CountryName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "FormalName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "IsoAlpha3Code", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsoNumericCode", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CountryType", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LatestRecordedPopulation", - "dataType": "bigint", - "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", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "StockItemHoldings", - "schema": "Warehouse", - "columns": [ - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "QuantityOnHand", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BinLocation", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastStocktakeQuantity", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastCostPrice", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ReorderLevel", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TargetStockLevel", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "PurchaseOrderLines", - "schema": "Purchasing", - "columns": [ - { - "name": "PurchaseOrderLineID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PurchaseOrderID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "OrderedOuters", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Description", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ReceivedOuters", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PackageTypeID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ExpectedUnitPricePerOuter", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastReceiptDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsOrderLineFinalized", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Countries_Archive", - "schema": "Application", - "columns": [ - { - "name": "CountryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CountryName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FormalName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsoAlpha3Code", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsoNumericCode", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CountryType", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LatestRecordedPopulation", - "dataType": "bigint", - "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", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "DeliveryMethods", - "schema": "Application", - "columns": [ - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "DeliveryMethodName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "DeliveryMethods_Archive", - "schema": "Application", - "columns": [ - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryMethodName", - "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": "PaymentMethods", - "schema": "Application", - "columns": [ - { - "name": "PaymentMethodID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PaymentMethodName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "SupplierTransactions", - "schema": "Purchasing", - "columns": [ - { - "name": "SupplierTransactionID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "TransactionTypeID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PurchaseOrderID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PaymentMethodID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SupplierInvoiceNumber", - "dataType": "nvarchar", - "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", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "PaymentMethods_Archive", - "schema": "Application", - "columns": [ - { - "name": "PaymentMethodID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PaymentMethodName", - "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": "TransactionTypes", - "schema": "Application", - "columns": [ - { - "name": "TransactionTypeID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "TransactionTypeName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "SpecialDeals", - "schema": "Sales", - "columns": [ - { - "name": "SpecialDealID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CustomerID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "BuyingGroupID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CustomerCategoryID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockGroupID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "DealDescription", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StartDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "EndDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DiscountAmount", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DiscountPercentage", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "UnitPrice", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "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 - }, - { - "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": "SupplierCategories", - "schema": "Purchasing", - "columns": [ - { - "name": "SupplierCategoryID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SupplierCategoryName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "SupplierCategories_Archive", - "schema": "Purchasing", - "columns": [ - { - "name": "SupplierCategoryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierCategoryName", - "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": "BuyingGroups", - "schema": "Sales", - "columns": [ - { - "name": "BuyingGroupID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "BuyingGroupName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Invoices", - "schema": "Sales", - "columns": [ - { - "name": "InvoiceID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CustomerID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "BillToCustomerID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "OrderID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ContactPersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "AccountsPersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SalespersonPersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PackedByPersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "InvoiceDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomerPurchaseOrderNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsCreditNote", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CreditNoteReason", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Comments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryInstructions", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TotalDryItems", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TotalChillerItems", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryRun", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "RunPosition", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ReturnedDeliveryData", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ConfirmedDeliveryTime", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ConfirmedReceivedBy", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "BuyingGroups_Archive", - "schema": "Sales", - "columns": [ - { - "name": "BuyingGroupID", - "dataType": "int", - "isPrimaryKey": false, - "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": "CustomerCategories", - "schema": "Sales", - "columns": [ - { - "name": "CustomerCategoryID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CustomerCategoryName", - "dataType": "nvarchar", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "CustomerCategories_Archive", - "schema": "Sales", - "columns": [ - { - "name": "CustomerCategoryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomerCategoryName", - "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 - } - ] - } - ], - "relationships": [ - { - "foreignKeyName": "FK_Warehouse_StockItems_ColorID_Warehouse_Colors", - "entity": "StockItems", - "column": "ColorID", - "referencedEntity": "Colors", - "referencedColumn": "ColorID", - "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_Sales_InvoiceLines_PackageTypeID_Warehouse_PackageTypes", - "entity": "InvoiceLines", - "column": "PackageTypeID", - "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_Warehouse_StockItems_OuterPackageID_Warehouse_PackageTypes", - "entity": "StockItems", - "column": "OuterPackageID", - "referencedEntity": "PackageTypes", - "referencedColumn": "PackageTypeID", - "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_Warehouse_StockItemStockGroups_StockGroupID_Warehouse_StockGroups", - "entity": "StockItemStockGroups", - "column": "StockGroupID", - "referencedEntity": "StockGroups", - "referencedColumn": "StockGroupID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_SpecialDeals_StockGroupID_Warehouse_StockGroups", - "entity": "SpecialDeals", - "column": "StockGroupID", - "referencedEntity": "StockGroups", - "referencedColumn": "StockGroupID", - "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_SystemParameters_DeliveryCityID_Application_Cities", - "entity": "SystemParameters", - "column": "DeliveryCityID", - "referencedEntity": "Cities", - "referencedColumn": "CityID", - "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_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_Sales_Customers_DeliveryCityID_Application_Cities", - "entity": "Customers", - "column": "DeliveryCityID", - "referencedEntity": "Cities", - "referencedColumn": "CityID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_PostalCityID_Application_Cities", - "entity": "Customers", - "column": "PostalCityID", - "referencedEntity": "Cities", - "referencedColumn": "CityID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemTransactions_SupplierID_Purchasing_Suppliers", - "entity": "StockItemTransactions", - "column": "SupplierID", - "referencedEntity": "Suppliers", - "referencedColumn": "SupplierID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_PurchaseOrders_SupplierID_Purchasing_Suppliers", - "entity": "PurchaseOrders", - "column": "SupplierID", - "referencedEntity": "Suppliers", - "referencedColumn": "SupplierID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItems_SupplierID_Purchasing_Suppliers", - "entity": "StockItems", - "column": "SupplierID", - "referencedEntity": "Suppliers", - "referencedColumn": "SupplierID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_SupplierTransactions_SupplierID_Purchasing_Suppliers", - "entity": "SupplierTransactions", - "column": "SupplierID", - "referencedEntity": "Suppliers", - "referencedColumn": "SupplierID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_CustomerTransactions_CustomerID_Sales_Customers", - "entity": "CustomerTransactions", - "column": "CustomerID", - "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_Sales_Customers_BillToCustomerID_Sales_Customers", - "entity": "Customers", - "column": "BillToCustomerID", - "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_Invoices_CustomerID_Sales_Customers", - "entity": "Invoices", - "column": "CustomerID", - "referencedEntity": "Customers", - "referencedColumn": "CustomerID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_BillToCustomerID_Sales_Customers", - "entity": "Invoices", - "column": "BillToCustomerID", - "referencedEntity": "Customers", - "referencedColumn": "CustomerID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemTransactions_PurchaseOrderID_Purchasing_PurchaseOrders", - "entity": "StockItemTransactions", - "column": "PurchaseOrderID", - "referencedEntity": "PurchaseOrders", - "referencedColumn": "PurchaseOrderID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_PurchaseOrderLines_PurchaseOrderID_Purchasing_PurchaseOrders", - "entity": "PurchaseOrderLines", - "column": "PurchaseOrderID", - "referencedEntity": "PurchaseOrders", - "referencedColumn": "PurchaseOrderID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_SupplierTransactions_PurchaseOrderID_Purchasing_PurchaseOrders", - "entity": "SupplierTransactions", - "column": "PurchaseOrderID", - "referencedEntity": "PurchaseOrders", - "referencedColumn": "PurchaseOrderID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_OrderLines_OrderID_Sales_Orders", - "entity": "OrderLines", - "column": "OrderID", - "referencedEntity": "Orders", - "referencedColumn": "OrderID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Orders_BackorderOrderID_Sales_Orders", - "entity": "Orders", - "column": "BackorderOrderID", - "referencedEntity": "Orders", - "referencedColumn": "OrderID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_OrderID_Sales_Orders", - "entity": "Invoices", - "column": "OrderID", - "referencedEntity": "Orders", - "referencedColumn": "OrderID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_SalespersonPersonID_Application_People", - "entity": "Invoices", - "column": "SalespersonPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_PackedByPersonID_Application_People", - "entity": "Invoices", - "column": "PackedByPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_Application_People", - "entity": "Invoices", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_Colors_Application_People", - "entity": "Colors", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_PackageTypes_Application_People", - "entity": "PackageTypes", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_OrderLines_Application_People", - "entity": "OrderLines", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockGroups_Application_People", - "entity": "StockGroups", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemStockGroups_Application_People", - "entity": "StockItemStockGroups", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_StateProvinces_Application_People", - "entity": "StateProvinces", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_Cities_Application_People", - "entity": "Cities", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_CustomerTransactions_Application_People", - "entity": "CustomerTransactions", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_SystemParameters_Application_People", - "entity": "SystemParameters", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_InvoiceLines_Application_People", - "entity": "InvoiceLines", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_Suppliers_PrimaryContactPersonID_Application_People", - "entity": "Suppliers", - "column": "PrimaryContactPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_Suppliers_AlternateContactPersonID_Application_People", - "entity": "Suppliers", - "column": "AlternateContactPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_Suppliers_Application_People", - "entity": "Suppliers", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemTransactions_Application_People", - "entity": "StockItemTransactions", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_PrimaryContactPersonID_Application_People", - "entity": "Customers", - "column": "PrimaryContactPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_AlternateContactPersonID_Application_People", - "entity": "Customers", - "column": "AlternateContactPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_Application_People", - "entity": "Customers", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "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", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Orders_SalespersonPersonID_Application_People", - "entity": "Orders", - "column": "SalespersonPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Orders_PickedByPersonID_Application_People", - "entity": "Orders", - "column": "PickedByPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Orders_ContactPersonID_Application_People", - "entity": "Orders", - "column": "ContactPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Orders_Application_People", - "entity": "Orders", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_People_Application_People", - "entity": "People", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItems_Application_People", - "entity": "StockItems", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemHoldings_Application_People", - "entity": "StockItemHoldings", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_Countries_Application_People", - "entity": "Countries", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_DeliveryMethods_Application_People", - "entity": "DeliveryMethods", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_PurchaseOrderLines_Application_People", - "entity": "PurchaseOrderLines", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_PaymentMethods_Application_People", - "entity": "PaymentMethods", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_SupplierTransactions_Application_People", - "entity": "SupplierTransactions", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_TransactionTypes_Application_People", - "entity": "TransactionTypes", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_SupplierCategories_Application_People", - "entity": "SupplierCategories", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_SpecialDeals_Application_People", - "entity": "SpecialDeals", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_BuyingGroups_Application_People", - "entity": "BuyingGroups", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_CustomerCategories_Application_People", - "entity": "CustomerCategories", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_ContactPersonID_Application_People", - "entity": "Invoices", - "column": "ContactPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_AccountsPersonID_Application_People", - "entity": "Invoices", - "column": "AccountsPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_OrderLines_StockItemID_Warehouse_StockItems", - "entity": "OrderLines", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemStockGroups_StockItemID_Warehouse_StockItems", - "entity": "StockItemStockGroups", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_InvoiceLines_StockItemID_Warehouse_StockItems", - "entity": "InvoiceLines", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemTransactions_StockItemID_Warehouse_StockItems", - "entity": "StockItemTransactions", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "PKFK_Warehouse_StockItemHoldings_StockItemID_Warehouse_StockItems", - "entity": "StockItemHoldings", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_PurchaseOrderLines_StockItemID_Warehouse_StockItems", - "entity": "PurchaseOrderLines", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_SpecialDeals_StockItemID_Warehouse_StockItems", - "entity": "SpecialDeals", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "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_Purchasing_Suppliers_DeliveryMethodID_Application_DeliveryMethods", - "entity": "Suppliers", - "column": "DeliveryMethodID", - "referencedEntity": "DeliveryMethods", - "referencedColumn": "DeliveryMethodID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_DeliveryMethodID_Application_DeliveryMethods", - "entity": "Customers", - "column": "DeliveryMethodID", - "referencedEntity": "DeliveryMethods", - "referencedColumn": "DeliveryMethodID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_PurchaseOrders_DeliveryMethodID_Application_DeliveryMethods", - "entity": "PurchaseOrders", - "column": "DeliveryMethodID", - "referencedEntity": "DeliveryMethods", - "referencedColumn": "DeliveryMethodID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_DeliveryMethodID_Application_DeliveryMethods", - "entity": "Invoices", - "column": "DeliveryMethodID", - "referencedEntity": "DeliveryMethods", - "referencedColumn": "DeliveryMethodID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_CustomerTransactions_PaymentMethodID_Application_PaymentMethods", - "entity": "CustomerTransactions", - "column": "PaymentMethodID", - "referencedEntity": "PaymentMethods", - "referencedColumn": "PaymentMethodID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_SupplierTransactions_PaymentMethodID_Application_PaymentMethods", - "entity": "SupplierTransactions", - "column": "PaymentMethodID", - "referencedEntity": "PaymentMethods", - "referencedColumn": "PaymentMethodID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_CustomerTransactions_TransactionTypeID_Application_TransactionTypes", - "entity": "CustomerTransactions", - "column": "TransactionTypeID", - "referencedEntity": "TransactionTypes", - "referencedColumn": "TransactionTypeID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemTransactions_TransactionTypeID_Application_TransactionTypes", - "entity": "StockItemTransactions", - "column": "TransactionTypeID", - "referencedEntity": "TransactionTypes", - "referencedColumn": "TransactionTypeID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_SupplierTransactions_TransactionTypeID_Application_TransactionTypes", - "entity": "SupplierTransactions", - "column": "TransactionTypeID", - "referencedEntity": "TransactionTypes", - "referencedColumn": "TransactionTypeID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_Suppliers_SupplierCategoryID_Purchasing_SupplierCategories", - "entity": "Suppliers", - "column": "SupplierCategoryID", - "referencedEntity": "SupplierCategories", - "referencedColumn": "SupplierCategoryID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_BuyingGroupID_Sales_BuyingGroups", - "entity": "Customers", - "column": "BuyingGroupID", - "referencedEntity": "BuyingGroups", - "referencedColumn": "BuyingGroupID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_SpecialDeals_BuyingGroupID_Sales_BuyingGroups", - "entity": "SpecialDeals", - "column": "BuyingGroupID", - "referencedEntity": "BuyingGroups", - "referencedColumn": "BuyingGroupID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_CustomerTransactions_InvoiceID_Sales_Invoices", - "entity": "CustomerTransactions", - "column": "InvoiceID", - "referencedEntity": "Invoices", - "referencedColumn": "InvoiceID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_InvoiceLines_InvoiceID_Sales_Invoices", - "entity": "InvoiceLines", - "column": "InvoiceID", - "referencedEntity": "Invoices", - "referencedColumn": "InvoiceID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemTransactions_InvoiceID_Sales_Invoices", - "entity": "StockItemTransactions", - "column": "InvoiceID", - "referencedEntity": "Invoices", - "referencedColumn": "InvoiceID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_CustomerCategoryID_Sales_CustomerCategories", - "entity": "Customers", - "column": "CustomerCategoryID", - "referencedEntity": "CustomerCategories", - "referencedColumn": "CustomerCategoryID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_SpecialDeals_CustomerCategoryID_Sales_CustomerCategories", - "entity": "SpecialDeals", - "column": "CustomerCategoryID", - "referencedEntity": "CustomerCategories", - "referencedColumn": "CustomerCategoryID", - "onDeleteAction": 1, - "onUpdateAction": 1 - } - ] -} \ No newline at end of file diff --git a/ts-examples/adventureWorks.js b/ts-examples/schemas/schema_adventure_works.js similarity index 100% rename from ts-examples/adventureWorks.js rename to ts-examples/schemas/schema_adventure_works.js diff --git a/ts-examples/schemas/schema_designer_config.js b/ts-examples/schemas/schema_designer_config.js new file mode 100644 index 0000000..8608697 --- /dev/null +++ b/ts-examples/schemas/schema_designer_config.js @@ -0,0 +1,172 @@ +const intIcon = ` + + + + 123 + + +`; + +const decimalIcon = ` + + + + 1.01 + + +`; + +const moneyIcon = ` + + + +`; + +const dateTimeIcon = ` + + + +`; + +const textIcon = ` + + + + abc + + +`; + +const varbinaryIcon = ` + + + +`; + + + +export const schemaDesignerConfig = { + graphFontFamily: "Segoe UI", + isEditable: true, + icons: { + addTableIcon: ` + + + + `, + undoIcon: ` + + + + `, + redoIcon: ` + + + + `, + zoomInIcon: ` + + + + `, + zoomOutIcon: ` + + + + `, + zoomFitIcon: ` + + + + `, + deleteIcon: ` + + + + `, + entityIcon: ` + + + + `, + autoarrangeIcon: ` + + + + `, + exportIcon: ` + + + + `, + customDataTypeIcon: ` + + + + `, + dataTypeIcons: { + int: intIcon, + tinyint: intIcon, + smallint: intIcon, + bigint: intIcon, + numeric: decimalIcon, + decimal: decimalIcon, + money: moneyIcon, + smallmoney: moneyIcon, + bit: ` + + + + 101 + + + + `, + float: decimalIcon, + real: decimalIcon, + char: textIcon, + varchar: textIcon, + text: textIcon, + nchar: textIcon, + nvarchar: textIcon, + ntext: textIcon, + binary: varbinaryIcon, + varbinary: varbinaryIcon, + image: varbinaryIcon, + geography: ` + + + + `, + datetime: dateTimeIcon, + datetime2: dateTimeIcon, + date: dateTimeIcon, + time: dateTimeIcon, + datetimeoffset: dateTimeIcon, + smalldatetime: dateTimeIcon, + }, + connectorIcon: "./resources/connector.svg", + }, + colors: { + toolbarBackground: "#2c2c2c", + toolbarForeground: "#ffffff", + toolbarHoverBackground: "#383838", + toolbarDividerBackground: "#444444", + + edge: "#444444", + + outlineCellBackground: "#f0f0f0", + outlineBorder: "#d9d9d9", + // bright flourcent colors + outlineSizerRectangle: "#00ff00", + + cellColumnHover: "#BCCCDC", + cellBackground: "#ffffff", + cellForeground: "#000000", + cellHighlight: "#00ff00", + cellDivider: "#d9d9d9", + + graphGrid: "#BCCCDC", + graphBackground: "#ffffff", + }, +}; diff --git a/ts-examples/schemas/schema_world_wide_importers.js b/ts-examples/schemas/schema_world_wide_importers.js new file mode 100644 index 0000000..7c90b62 --- /dev/null +++ b/ts-examples/schemas/schema_world_wide_importers.js @@ -0,0 +1,4714 @@ +export const worldWideImporters = { + entities: [ + { + name: "CustomerTransactions", + schema: "Sales", + columns: [ + { + name: "CustomerTransactionID", + 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", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PaymentMethodID", + 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", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "CustomerCategories_Archive", + schema: "Sales", + columns: [ + { + name: "CustomerCategoryID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CustomerCategoryName", + 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: "InvoiceLines", + schema: "Sales", + columns: [ + { + name: "InvoiceLineID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "InvoiceID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StockItemID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Description", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PackageTypeID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Quantity", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "UnitPrice", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "TaxRate", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "TaxAmount", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LineProfit", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ExtendedPrice", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedBy", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "Invoices", + schema: "Sales", + columns: [ + { + name: "InvoiceID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "CustomerID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BillToCustomerID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "OrderID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryMethodID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ContactPersonID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "AccountsPersonID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SalespersonPersonID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PackedByPersonID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "InvoiceDate", + dataType: "date", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CustomerPurchaseOrderNumber", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsCreditNote", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CreditNoteReason", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Comments", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryInstructions", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "InternalComments", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "TotalDryItems", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "TotalChillerItems", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryRun", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "RunPosition", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ReturnedDeliveryData", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ConfirmedDeliveryTime", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ConfirmedReceivedBy", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedBy", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "OrderLines", + schema: "Sales", + columns: [ + { + name: "OrderLineID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "OrderID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StockItemID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Description", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PackageTypeID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Quantity", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "UnitPrice", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "TaxRate", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PickedQuantity", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PickingCompletedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedBy", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "Orders", + schema: "Sales", + columns: [ + { + name: "OrderID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "CustomerID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SalespersonPersonID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PickedByPersonID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ContactPersonID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BackorderOrderID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "OrderDate", + dataType: "date", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ExpectedDeliveryDate", + dataType: "date", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CustomerPurchaseOrderNumber", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsUndersupplyBackordered", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Comments", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryInstructions", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "InternalComments", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PickingCompletedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedBy", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "Customers_Archive", + schema: "Sales", + columns: [ + { + name: "CustomerID", + dataType: "int", + isPrimaryKey: false, + 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", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryMethodID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryCityID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalCityID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CreditLimit", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "AccountOpenedDate", + dataType: "date", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StandardDiscountPercentage", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsStatementSent", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsOnCreditHold", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PaymentDays", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PhoneNumber", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "FaxNumber", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryRun", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "RunPosition", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "WebsiteURL", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryAddressLine1", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryAddressLine2", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryPostalCode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryLocation", + dataType: "geography", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalAddressLine1", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalAddressLine2", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalPostalCode", + 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: "SpecialDeals", + schema: "Sales", + columns: [ + { + name: "SpecialDealID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "StockItemID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CustomerID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BuyingGroupID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CustomerCategoryID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StockGroupID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DealDescription", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StartDate", + dataType: "date", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "EndDate", + dataType: "date", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DiscountAmount", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DiscountPercentage", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "UnitPrice", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedBy", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "CustomerCategories", + schema: "Sales", + columns: [ + { + name: "CustomerCategoryID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "CustomerCategoryName", + 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: "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", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryMethodID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryCityID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalCityID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CreditLimit", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "AccountOpenedDate", + dataType: "date", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StandardDiscountPercentage", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsStatementSent", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsOnCreditHold", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PaymentDays", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PhoneNumber", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "FaxNumber", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryRun", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "RunPosition", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "WebsiteURL", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryAddressLine1", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryAddressLine2", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryPostalCode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryLocation", + dataType: "geography", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalAddressLine1", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalAddressLine2", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalPostalCode", + 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: "ColdRoomTemperatures_Archive", + schema: "Warehouse", + columns: [ + { + name: "ColdRoomTemperatureID", + dataType: "bigint", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ColdRoomSensorNumber", + 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, + isIdentity: false, + }, + { + name: "ValidTo", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "StockItemHoldings", + schema: "Warehouse", + columns: [ + { + name: "StockItemID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "QuantityOnHand", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BinLocation", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastStocktakeQuantity", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastCostPrice", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + 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, + }, + ], + }, + { + name: "PackageTypes_Archive", + schema: "Warehouse", + columns: [ + { + name: "PackageTypeID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PackageTypeName", + 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: "VehicleTemperatures", + schema: "Warehouse", + columns: [ + { + name: "VehicleTemperatureID", + dataType: "bigint", + isPrimaryKey: true, + isIdentity: true, + }, + { + name: "VehicleRegistration", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ChillerSensorNumber", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "RecordedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Temperature", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "FullSensorData", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsCompressed", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CompressedSensorData", + dataType: "varbinary", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "StockItemStockGroups", + schema: "Warehouse", + columns: [ + { + name: "StockItemStockGroupID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "StockItemID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StockGroupID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedBy", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "ColdRoomTemperatures", + schema: "Warehouse", + columns: [ + { + name: "ColdRoomTemperatureID", + dataType: "bigint", + isPrimaryKey: true, + isIdentity: true, + }, + { + name: "ColdRoomSensorNumber", + 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, + isIdentity: false, + }, + { + name: "ValidTo", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "Colors_Archive", + schema: "Warehouse", + columns: [ + { + name: "ColorID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ColorName", + 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: "StockGroups_Archive", + schema: "Warehouse", + columns: [ + { + name: "StockGroupID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StockGroupName", + 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: "StockItemTransactions", + schema: "Warehouse", + columns: [ + { + name: "StockItemTransactionID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "StockItemID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "TransactionTypeID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CustomerID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "InvoiceID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SupplierID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PurchaseOrderID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "TransactionOccurredWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Quantity", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedBy", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "StockItems_Archive", + schema: "Warehouse", + columns: [ + { + name: "StockItemID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StockItemName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SupplierID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ColorID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "UnitPackageID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "OuterPackageID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Brand", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Size", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LeadTimeDays", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "QuantityPerOuter", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsChillerStock", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Barcode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "TaxRate", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + 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: "InternalComments", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Photo", + dataType: "varbinary", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CustomFields", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Tags", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SearchDetails", + 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: "PackageTypes", + schema: "Warehouse", + columns: [ + { + name: "PackageTypeID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "PackageTypeName", + 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: "StateProvinces", + schema: "Application", + columns: [ + { + name: "StateProvinceID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "StateProvinceCode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StateProvinceName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CountryID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SalesTerritory", + 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", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "Countries", + schema: "Application", + columns: [ + { + name: "CountryID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "CountryName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "FormalName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsoAlpha3Code", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsoNumericCode", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CountryType", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LatestRecordedPopulation", + dataType: "bigint", + 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", + isPrimaryKey: false, + isIdentity: false, + }, + { + 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: "StateProvinceID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Location", + 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", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "SupplierCategories", + schema: "Purchasing", + columns: [ + { + name: "SupplierCategoryID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "SupplierCategoryName", + 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: "Suppliers", + schema: "Purchasing", + columns: [ + { + name: "SupplierID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "SupplierName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SupplierCategoryID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PrimaryContactPersonID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "AlternateContactPersonID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryMethodID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryCityID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalCityID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SupplierReference", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BankAccountName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BankAccountBranch", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BankAccountCode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BankAccountNumber", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BankInternationalCode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PaymentDays", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "InternalComments", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PhoneNumber", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "FaxNumber", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "WebsiteURL", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryAddressLine1", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryAddressLine2", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryPostalCode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryLocation", + dataType: "geography", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalAddressLine1", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalAddressLine2", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalPostalCode", + 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: "Colors", + schema: "Warehouse", + columns: [ + { + name: "ColorID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "ColorName", + 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: "StockGroups", + schema: "Warehouse", + columns: [ + { + name: "StockGroupID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "StockGroupName", + 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: "StockItems", + schema: "Warehouse", + columns: [ + { + name: "StockItemID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "StockItemName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SupplierID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ColorID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "UnitPackageID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "OuterPackageID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Brand", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Size", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LeadTimeDays", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "QuantityPerOuter", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsChillerStock", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Barcode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "TaxRate", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + 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: "InternalComments", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Photo", + dataType: "varbinary", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CustomFields", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Tags", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SearchDetails", + 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: "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", + columns: [ + { + name: "PersonID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "FullName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PreferredName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SearchName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsPermittedToLogon", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LogonName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + 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, + }, + { + 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: "DeliveryMethods_Archive", + schema: "Application", + columns: [ + { + name: "DeliveryMethodID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryMethodName", + 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: "DeliveryMethods", + schema: "Application", + columns: [ + { + name: "DeliveryMethodID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "DeliveryMethodName", + 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: "Countries_Archive", + schema: "Application", + columns: [ + { + name: "CountryID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CountryName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "FormalName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsoAlpha3Code", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsoNumericCode", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CountryType", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LatestRecordedPopulation", + dataType: "bigint", + 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", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ValidFrom", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ValidTo", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "StateProvinces_Archive", + schema: "Application", + columns: [ + { + name: "StateProvinceID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StateProvinceCode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StateProvinceName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CountryID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SalesTerritory", + 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", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "PaymentMethods_Archive", + schema: "Application", + columns: [ + { + name: "PaymentMethodID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PaymentMethodName", + 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", + schema: "Application", + columns: [ + { + name: "PersonID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "FullName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PreferredName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SearchName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsPermittedToLogon", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LogonName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + 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, + }, + { + 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: "TransactionTypes", + schema: "Application", + columns: [ + { + name: "TransactionTypeID", + dataType: "int", + isPrimaryKey: true, + 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: "PaymentMethods", + schema: "Application", + columns: [ + { + name: "PaymentMethodID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "PaymentMethodName", + 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: "SystemParameters", + schema: "Application", + columns: [ + { + name: "SystemParameterID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "DeliveryAddressLine1", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryAddressLine2", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryCityID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryPostalCode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryLocation", + dataType: "geography", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalAddressLine1", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalAddressLine2", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalCityID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalPostalCode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ApplicationSettings", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedBy", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "Cities_Archive", + schema: "Application", + columns: [ + { + name: "CityID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "CityName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StateProvinceID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Location", + 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", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "PurchaseOrderLines", + schema: "Purchasing", + columns: [ + { + name: "PurchaseOrderLineID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "PurchaseOrderID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "StockItemID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "OrderedOuters", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Description", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ReceivedOuters", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PackageTypeID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "ExpectedUnitPricePerOuter", + dataType: "decimal", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastReceiptDate", + dataType: "date", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsOrderLineFinalized", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedBy", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "SupplierTransactions", + schema: "Purchasing", + columns: [ + { + name: "SupplierTransactionID", + dataType: "int", + isPrimaryKey: true, + isIdentity: false, + }, + { + name: "SupplierID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "TransactionTypeID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PurchaseOrderID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PaymentMethodID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SupplierInvoiceNumber", + dataType: "nvarchar", + 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", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "SupplierCategories_Archive", + schema: "Purchasing", + columns: [ + { + name: "SupplierCategoryID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SupplierCategoryName", + 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: "Suppliers_Archive", + schema: "Purchasing", + columns: [ + { + name: "SupplierID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SupplierName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SupplierCategoryID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PrimaryContactPersonID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "AlternateContactPersonID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryMethodID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryCityID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalCityID", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SupplierReference", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BankAccountName", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BankAccountBranch", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BankAccountCode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BankAccountNumber", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "BankInternationalCode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PaymentDays", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "InternalComments", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PhoneNumber", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "FaxNumber", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "WebsiteURL", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryAddressLine1", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryAddressLine2", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryPostalCode", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "DeliveryLocation", + dataType: "geography", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalAddressLine1", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalAddressLine2", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "PostalPostalCode", + 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: "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", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "SupplierReference", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "IsOrderFinalized", + dataType: "bit", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Comments", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "InternalComments", + dataType: "nvarchar", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedBy", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "LastEditedWhen", + dataType: "datetime2", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "BuyingGroups_Archive", + schema: "Sales", + columns: [ + { + name: "BuyingGroupID", + dataType: "int", + isPrimaryKey: false, + 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: "New Table", + schema: "dbo", + columns: [ + { + name: "Column1", + dataType: "int", + isPrimaryKey: true, + isIdentity: true, + }, + { + name: "Column2", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Column2", + 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", + isPrimaryKey: false, + isIdentity: false, + }, + { + name: "Column2", + dataType: "int", + isPrimaryKey: false, + isIdentity: false, + }, + ], + }, + { + name: "New Table 3", + schema: "dbo", + columns: [ + { + name: "Column1", + dataType: "int", + isPrimaryKey: true, + isIdentity: true, + }, + ], + }, + { + name: "New Table 4", + schema: "dbo", + columns: [ + { + name: "Column1", + dataType: "int", + isPrimaryKey: true, + isIdentity: true, + }, + ], + }, + { + name: "New Table 5", + schema: "dbo", + columns: [ + { + name: "Column1", + dataType: "int", + isPrimaryKey: true, + isIdentity: true, + }, + ], + }, + { + name: "New Table 6", + schema: "dbo", + columns: [ + { + name: "Column1", + dataType: "int", + isPrimaryKey: true, + isIdentity: true, + }, + ], + }, + { + name: "New Table 7", + schema: "dbo", + columns: [ + { + name: "Column1", + dataType: "int", + isPrimaryKey: true, + isIdentity: true, + }, + ], + }, + ], + relationships: [ + { + foreignKeyName: "FK_Sales_CustomerTransactions_InvoiceID_Sales_Invoices", + entity: "CustomerTransactions", + column: "InvoiceID", + referencedEntity: "Invoices", + referencedColumn: "InvoiceID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_InvoiceLines_InvoiceID_Sales_Invoices", + entity: "InvoiceLines", + column: "InvoiceID", + referencedEntity: "Invoices", + referencedColumn: "InvoiceID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Warehouse_StockItemTransactions_InvoiceID_Sales_Invoices", + entity: "StockItemTransactions", + column: "InvoiceID", + referencedEntity: "Invoices", + referencedColumn: "InvoiceID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_Invoices_OrderID_Sales_Orders", + entity: "Invoices", + column: "OrderID", + referencedEntity: "Orders", + referencedColumn: "OrderID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_OrderLines_OrderID_Sales_Orders", + entity: "OrderLines", + column: "OrderID", + referencedEntity: "Orders", + referencedColumn: "OrderID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_Orders_BackorderOrderID_Sales_Orders", + entity: "Orders", + column: "BackorderOrderID", + referencedEntity: "Orders", + referencedColumn: "OrderID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Sales_SpecialDeals_CustomerCategoryID_Sales_CustomerCategories", + entity: "SpecialDeals", + column: "CustomerCategoryID", + referencedEntity: "CustomerCategories", + referencedColumn: "CustomerCategoryID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Sales_Customers_CustomerCategoryID_Sales_CustomerCategories", + entity: "Customers", + column: "CustomerCategoryID", + referencedEntity: "CustomerCategories", + referencedColumn: "CustomerCategoryID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_SpecialDeals_BuyingGroupID_Sales_BuyingGroups", + entity: "SpecialDeals", + column: "BuyingGroupID", + referencedEntity: "BuyingGroups", + referencedColumn: "BuyingGroupID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_Customers_BuyingGroupID_Sales_BuyingGroups", + entity: "Customers", + column: "BuyingGroupID", + referencedEntity: "BuyingGroups", + referencedColumn: "BuyingGroupID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Sales_CustomerTransactions_CustomerID_Sales_Customers", + entity: "CustomerTransactions", + column: "CustomerID", + referencedEntity: "Customers", + referencedColumn: "CustomerID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + 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_Sales_Customers_DeliveryCityID_Application_Cities", + entity: "Customers", + column: "DeliveryCityID", + referencedEntity: "Cities", + referencedColumn: "CityID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_Customers_PostalCityID_Application_Cities", + entity: "Customers", + column: "PostalCityID", + referencedEntity: "Cities", + referencedColumn: "CityID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + 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", + column: "SupplierID", + referencedEntity: "Suppliers", + referencedColumn: "SupplierID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Purchasing_PurchaseOrders_SupplierID_Purchasing_Suppliers", + entity: "PurchaseOrders", + column: "SupplierID", + referencedEntity: "Suppliers", + referencedColumn: "SupplierID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Warehouse_StockItemTransactions_SupplierID_Purchasing_Suppliers", + entity: "StockItemTransactions", + column: "SupplierID", + referencedEntity: "Suppliers", + referencedColumn: "SupplierID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Warehouse_StockItems_SupplierID_Purchasing_Suppliers", + entity: "StockItems", + column: "SupplierID", + referencedEntity: "Suppliers", + referencedColumn: "SupplierID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Warehouse_StockItems_ColorID_Warehouse_Colors", + entity: "StockItems", + column: "ColorID", + referencedEntity: "Colors", + referencedColumn: "ColorID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Sales_SpecialDeals_StockGroupID_Warehouse_StockGroups", + entity: "SpecialDeals", + column: "StockGroupID", + referencedEntity: "StockGroups", + referencedColumn: "StockGroupID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Warehouse_StockItemStockGroups_StockGroupID_Warehouse_StockGroups", + entity: "StockItemStockGroups", + column: "StockGroupID", + referencedEntity: "StockGroups", + referencedColumn: "StockGroupID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Purchasing_PurchaseOrderLines_StockItemID_Warehouse_StockItems", + entity: "PurchaseOrderLines", + column: "StockItemID", + referencedEntity: "StockItems", + referencedColumn: "StockItemID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_InvoiceLines_StockItemID_Warehouse_StockItems", + entity: "InvoiceLines", + column: "StockItemID", + referencedEntity: "StockItems", + referencedColumn: "StockItemID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_OrderLines_StockItemID_Warehouse_StockItems", + entity: "OrderLines", + column: "StockItemID", + referencedEntity: "StockItems", + referencedColumn: "StockItemID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_SpecialDeals_StockItemID_Warehouse_StockItems", + entity: "SpecialDeals", + column: "StockItemID", + referencedEntity: "StockItems", + referencedColumn: "StockItemID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "PKFK_Warehouse_StockItemHoldings_StockItemID_Warehouse_StockItems", + entity: "StockItemHoldings", + column: "StockItemID", + referencedEntity: "StockItems", + referencedColumn: "StockItemID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Warehouse_StockItemStockGroups_StockItemID_Warehouse_StockItems", + entity: "StockItemStockGroups", + column: "StockItemID", + referencedEntity: "StockItems", + referencedColumn: "StockItemID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Warehouse_StockItemTransactions_StockItemID_Warehouse_StockItems", + entity: "StockItemTransactions", + column: "StockItemID", + referencedEntity: "StockItems", + referencedColumn: "StockItemID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Purchasing_Suppliers_DeliveryMethodID_Application_DeliveryMethods", + entity: "Suppliers", + column: "DeliveryMethodID", + referencedEntity: "DeliveryMethods", + referencedColumn: "DeliveryMethodID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Purchasing_PurchaseOrders_DeliveryMethodID_Application_DeliveryMethods", + entity: "PurchaseOrders", + column: "DeliveryMethodID", + referencedEntity: "DeliveryMethods", + referencedColumn: "DeliveryMethodID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Sales_Invoices_DeliveryMethodID_Application_DeliveryMethods", + entity: "Invoices", + column: "DeliveryMethodID", + referencedEntity: "DeliveryMethods", + referencedColumn: "DeliveryMethodID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + 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", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Application_Countries_Application_People", + entity: "Countries", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Application_DeliveryMethods_Application_People", + entity: "DeliveryMethods", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Application_People_Application_People", + entity: "People", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Application_TransactionTypes_Application_People", + entity: "TransactionTypes", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Application_PaymentMethods_Application_People", + entity: "PaymentMethods", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Application_Cities_Application_People", + entity: "Cities", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Application_SystemParameters_Application_People", + entity: "SystemParameters", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Purchasing_PurchaseOrderLines_Application_People", + entity: "PurchaseOrderLines", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Purchasing_SupplierCategories_Application_People", + entity: "SupplierCategories", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Purchasing_SupplierTransactions_Application_People", + entity: "SupplierTransactions", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Purchasing_Suppliers_PrimaryContactPersonID_Application_People", + entity: "Suppliers", + column: "PrimaryContactPersonID", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Purchasing_Suppliers_Application_People", + entity: "Suppliers", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Purchasing_Suppliers_AlternateContactPersonID_Application_People", + entity: "Suppliers", + column: "AlternateContactPersonID", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + 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", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_CustomerTransactions_Application_People", + entity: "CustomerTransactions", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_InvoiceLines_Application_People", + entity: "InvoiceLines", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_Invoices_Application_People", + entity: "Invoices", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_Invoices_PackedByPersonID_Application_People", + entity: "Invoices", + column: "PackedByPersonID", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_Invoices_ContactPersonID_Application_People", + entity: "Invoices", + column: "ContactPersonID", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + 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", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_OrderLines_Application_People", + entity: "OrderLines", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_Orders_ContactPersonID_Application_People", + entity: "Orders", + column: "ContactPersonID", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_Orders_SalespersonPersonID_Application_People", + entity: "Orders", + column: "SalespersonPersonID", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_Orders_PickedByPersonID_Application_People", + entity: "Orders", + column: "PickedByPersonID", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_Orders_Application_People", + entity: "Orders", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_SpecialDeals_Application_People", + entity: "SpecialDeals", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_CustomerCategories_Application_People", + entity: "CustomerCategories", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_BuyingGroups_Application_People", + entity: "BuyingGroups", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Sales_Customers_Application_People", + entity: "Customers", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Sales_Customers_AlternateContactPersonID_Application_People", + entity: "Customers", + column: "AlternateContactPersonID", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Sales_Customers_PrimaryContactPersonID_Application_People", + entity: "Customers", + column: "PrimaryContactPersonID", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Warehouse_StockItemHoldings_Application_People", + entity: "StockItemHoldings", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Warehouse_Colors_Application_People", + entity: "Colors", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Warehouse_StockItemStockGroups_Application_People", + entity: "StockItemStockGroups", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Warehouse_StockGroups_Application_People", + entity: "StockGroups", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Warehouse_StockItemTransactions_Application_People", + entity: "StockItemTransactions", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Warehouse_StockItems_Application_People", + entity: "StockItems", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: "FK_Warehouse_PackageTypes_Application_People", + entity: "PackageTypes", + column: "LastEditedBy", + referencedEntity: "People", + referencedColumn: "PersonID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Purchasing_SupplierTransactions_TransactionTypeID_Application_TransactionTypes", + entity: "SupplierTransactions", + column: "TransactionTypeID", + referencedEntity: "TransactionTypes", + referencedColumn: "TransactionTypeID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Sales_CustomerTransactions_TransactionTypeID_Application_TransactionTypes", + entity: "CustomerTransactions", + column: "TransactionTypeID", + referencedEntity: "TransactionTypes", + referencedColumn: "TransactionTypeID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Warehouse_StockItemTransactions_TransactionTypeID_Application_TransactionTypes", + entity: "StockItemTransactions", + column: "TransactionTypeID", + referencedEntity: "TransactionTypes", + referencedColumn: "TransactionTypeID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Purchasing_SupplierTransactions_PaymentMethodID_Application_PaymentMethods", + entity: "SupplierTransactions", + column: "PaymentMethodID", + referencedEntity: "PaymentMethods", + referencedColumn: "PaymentMethodID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Sales_CustomerTransactions_PaymentMethodID_Application_PaymentMethods", + entity: "CustomerTransactions", + column: "PaymentMethodID", + referencedEntity: "PaymentMethods", + referencedColumn: "PaymentMethodID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Purchasing_PurchaseOrderLines_PurchaseOrderID_Purchasing_PurchaseOrders", + entity: "PurchaseOrderLines", + column: "PurchaseOrderID", + referencedEntity: "PurchaseOrders", + referencedColumn: "PurchaseOrderID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + foreignKeyName: + "FK_Purchasing_SupplierTransactions_PurchaseOrderID_Purchasing_PurchaseOrders", + entity: "SupplierTransactions", + column: "PurchaseOrderID", + referencedEntity: "PurchaseOrders", + referencedColumn: "PurchaseOrderID", + onDeleteAction: 1, + onUpdateAction: 1, + }, + { + 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", + }, + ], +}; diff --git a/ts-examples/smallSchema.html b/ts-examples/smallSchema.html index ed0fb93..919385a 100644 --- a/ts-examples/smallSchema.html +++ b/ts-examples/smallSchema.html @@ -7,36 +7,12 @@ + + + +
+ + diff --git a/ts-examples/worldWideImporters.js b/ts-examples/worldWideImporters.js deleted file mode 100644 index 23a9273..0000000 --- a/ts-examples/worldWideImporters.js +++ /dev/null @@ -1,4519 +0,0 @@ -export const test = -{ - "entities": [ - { - "name": "CustomerTransactions", - "schema": "Sales", - "columns": [ - { - "name": "CustomerTransactionID", - "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", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PaymentMethodID", - "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", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "CustomerCategories_Archive", - "schema": "Sales", - "columns": [ - { - "name": "CustomerCategoryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomerCategoryName", - "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": "InvoiceLines", - "schema": "Sales", - "columns": [ - { - "name": "InvoiceLineID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "InvoiceID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Description", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PackageTypeID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Quantity", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "UnitPrice", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TaxRate", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TaxAmount", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LineProfit", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ExtendedPrice", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Invoices", - "schema": "Sales", - "columns": [ - { - "name": "InvoiceID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CustomerID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BillToCustomerID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "OrderID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ContactPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "AccountsPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SalespersonPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PackedByPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "InvoiceDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomerPurchaseOrderNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsCreditNote", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CreditNoteReason", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Comments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryInstructions", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TotalDryItems", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TotalChillerItems", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryRun", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "RunPosition", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ReturnedDeliveryData", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ConfirmedDeliveryTime", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ConfirmedReceivedBy", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "OrderLines", - "schema": "Sales", - "columns": [ - { - "name": "OrderLineID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "OrderID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Description", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PackageTypeID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Quantity", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "UnitPrice", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TaxRate", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PickedQuantity", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PickingCompletedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Orders", - "schema": "Sales", - "columns": [ - { - "name": "OrderID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CustomerID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SalespersonPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PickedByPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ContactPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BackorderOrderID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "OrderDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ExpectedDeliveryDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomerPurchaseOrderNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsUndersupplyBackordered", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Comments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryInstructions", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PickingCompletedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Customers_Archive", - "schema": "Sales", - "columns": [ - { - "name": "CustomerID", - "dataType": "int", - "isPrimaryKey": false, - "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", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CreditLimit", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "AccountOpenedDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StandardDiscountPercentage", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsStatementSent", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsOnCreditHold", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PaymentDays", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PhoneNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FaxNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryRun", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "RunPosition", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "WebsiteURL", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryLocation", - "dataType": "geography", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalPostalCode", - "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": "SpecialDeals", - "schema": "Sales", - "columns": [ - { - "name": "SpecialDealID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomerID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BuyingGroupID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomerCategoryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StockGroupID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DealDescription", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StartDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "EndDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DiscountAmount", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DiscountPercentage", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "UnitPrice", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "CustomerCategories", - "schema": "Sales", - "columns": [ - { - "name": "CustomerCategoryID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CustomerCategoryName", - "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": "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", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CreditLimit", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "AccountOpenedDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StandardDiscountPercentage", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsStatementSent", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsOnCreditHold", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PaymentDays", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PhoneNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FaxNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryRun", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "RunPosition", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "WebsiteURL", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryLocation", - "dataType": "geography", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalPostalCode", - "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": "ColdRoomTemperatures_Archive", - "schema": "Warehouse", - "columns": [ - { - "name": "ColdRoomTemperatureID", - "dataType": "bigint", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ColdRoomSensorNumber", - "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, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "StockItemHoldings", - "schema": "Warehouse", - "columns": [ - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "QuantityOnHand", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BinLocation", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastStocktakeQuantity", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastCostPrice", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "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 - } - ] - }, - { - "name": "PackageTypes_Archive", - "schema": "Warehouse", - "columns": [ - { - "name": "PackageTypeID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PackageTypeName", - "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": "VehicleTemperatures", - "schema": "Warehouse", - "columns": [ - { - "name": "VehicleTemperatureID", - "dataType": "bigint", - "isPrimaryKey": true, - "isIdentity": true - }, - { - "name": "VehicleRegistration", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ChillerSensorNumber", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "RecordedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Temperature", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FullSensorData", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsCompressed", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CompressedSensorData", - "dataType": "varbinary", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "StockItemStockGroups", - "schema": "Warehouse", - "columns": [ - { - "name": "StockItemStockGroupID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StockGroupID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "ColdRoomTemperatures", - "schema": "Warehouse", - "columns": [ - { - "name": "ColdRoomTemperatureID", - "dataType": "bigint", - "isPrimaryKey": true, - "isIdentity": true - }, - { - "name": "ColdRoomSensorNumber", - "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, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Colors_Archive", - "schema": "Warehouse", - "columns": [ - { - "name": "ColorID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ColorName", - "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": "StockGroups_Archive", - "schema": "Warehouse", - "columns": [ - { - "name": "StockGroupID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StockGroupName", - "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": "StockItemTransactions", - "schema": "Warehouse", - "columns": [ - { - "name": "StockItemTransactionID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TransactionTypeID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomerID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "InvoiceID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PurchaseOrderID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TransactionOccurredWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Quantity", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "StockItems_Archive", - "schema": "Warehouse", - "columns": [ - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StockItemName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ColorID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "UnitPackageID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "OuterPackageID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Brand", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Size", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LeadTimeDays", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "QuantityPerOuter", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsChillerStock", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Barcode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TaxRate", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "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": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Photo", - "dataType": "varbinary", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomFields", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Tags", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SearchDetails", - "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": "PackageTypes", - "schema": "Warehouse", - "columns": [ - { - "name": "PackageTypeID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PackageTypeName", - "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": "StateProvinces", - "schema": "Application", - "columns": [ - { - "name": "StateProvinceID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StateProvinceCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StateProvinceName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CountryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SalesTerritory", - "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", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Countries", - "schema": "Application", - "columns": [ - { - "name": "CountryID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "CountryName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FormalName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsoAlpha3Code", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsoNumericCode", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CountryType", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LatestRecordedPopulation", - "dataType": "bigint", - "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", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "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": "StateProvinceID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Location", - "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", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "SupplierCategories", - "schema": "Purchasing", - "columns": [ - { - "name": "SupplierCategoryID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SupplierCategoryName", - "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": "Suppliers", - "schema": "Purchasing", - "columns": [ - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SupplierName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierCategoryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PrimaryContactPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "AlternateContactPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierReference", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountBranch", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankInternationalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PaymentDays", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PhoneNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FaxNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "WebsiteURL", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryLocation", - "dataType": "geography", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalPostalCode", - "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": "Colors", - "schema": "Warehouse", - "columns": [ - { - "name": "ColorID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "ColorName", - "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": "StockGroups", - "schema": "Warehouse", - "columns": [ - { - "name": "StockGroupID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockGroupName", - "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": "StockItems", - "schema": "Warehouse", - "columns": [ - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "StockItemName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ColorID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "UnitPackageID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "OuterPackageID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Brand", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Size", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LeadTimeDays", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "QuantityPerOuter", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsChillerStock", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Barcode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TaxRate", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "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": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Photo", - "dataType": "varbinary", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CustomFields", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Tags", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SearchDetails", - "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": "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", - "columns": [ - { - "name": "PersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FullName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PreferredName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SearchName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsPermittedToLogon", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LogonName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "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 - }, - { - "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": "DeliveryMethods_Archive", - "schema": "Application", - "columns": [ - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryMethodName", - "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": "DeliveryMethods", - "schema": "Application", - "columns": [ - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "DeliveryMethodName", - "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": "Countries_Archive", - "schema": "Application", - "columns": [ - { - "name": "CountryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CountryName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FormalName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsoAlpha3Code", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsoNumericCode", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CountryType", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LatestRecordedPopulation", - "dataType": "bigint", - "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", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidFrom", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ValidTo", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "StateProvinces_Archive", - "schema": "Application", - "columns": [ - { - "name": "StateProvinceID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StateProvinceCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StateProvinceName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CountryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SalesTerritory", - "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", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "PaymentMethods_Archive", - "schema": "Application", - "columns": [ - { - "name": "PaymentMethodID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PaymentMethodName", - "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", - "schema": "Application", - "columns": [ - { - "name": "PersonID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "FullName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PreferredName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SearchName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsPermittedToLogon", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LogonName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "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 - }, - { - "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": "TransactionTypes", - "schema": "Application", - "columns": [ - { - "name": "TransactionTypeID", - "dataType": "int", - "isPrimaryKey": true, - "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": "PaymentMethods", - "schema": "Application", - "columns": [ - { - "name": "PaymentMethodID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PaymentMethodName", - "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": "SystemParameters", - "schema": "Application", - "columns": [ - { - "name": "SystemParameterID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryLocation", - "dataType": "geography", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ApplicationSettings", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "Cities_Archive", - "schema": "Application", - "columns": [ - { - "name": "CityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "CityName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StateProvinceID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Location", - "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", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "PurchaseOrderLines", - "schema": "Purchasing", - "columns": [ - { - "name": "PurchaseOrderLineID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "PurchaseOrderID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "StockItemID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "OrderedOuters", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Description", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ReceivedOuters", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PackageTypeID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "ExpectedUnitPricePerOuter", - "dataType": "decimal", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastReceiptDate", - "dataType": "date", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsOrderLineFinalized", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "SupplierTransactions", - "schema": "Purchasing", - "columns": [ - { - "name": "SupplierTransactionID", - "dataType": "int", - "isPrimaryKey": true, - "isIdentity": false - }, - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "TransactionTypeID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PurchaseOrderID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PaymentMethodID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierInvoiceNumber", - "dataType": "nvarchar", - "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", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "SupplierCategories_Archive", - "schema": "Purchasing", - "columns": [ - { - "name": "SupplierCategoryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierCategoryName", - "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": "Suppliers_Archive", - "schema": "Purchasing", - "columns": [ - { - "name": "SupplierID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierCategoryID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PrimaryContactPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "AlternateContactPersonID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryMethodID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalCityID", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierReference", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountName", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountBranch", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankAccountNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "BankInternationalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PaymentDays", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PhoneNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "FaxNumber", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "WebsiteURL", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryPostalCode", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "DeliveryLocation", - "dataType": "geography", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine1", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalAddressLine2", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "PostalPostalCode", - "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": "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", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "SupplierReference", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "IsOrderFinalized", - "dataType": "bit", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "Comments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "InternalComments", - "dataType": "nvarchar", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedBy", - "dataType": "int", - "isPrimaryKey": false, - "isIdentity": false - }, - { - "name": "LastEditedWhen", - "dataType": "datetime2", - "isPrimaryKey": false, - "isIdentity": false - } - ] - }, - { - "name": "BuyingGroups_Archive", - "schema": "Sales", - "columns": [ - { - "name": "BuyingGroupID", - "dataType": "int", - "isPrimaryKey": false, - "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 - } - ] - } - ], - "relationships": [ - { - "foreignKeyName": "FK_Sales_CustomerTransactions_InvoiceID_Sales_Invoices", - "entity": "CustomerTransactions", - "column": "InvoiceID", - "referencedEntity": "Invoices", - "referencedColumn": "InvoiceID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_InvoiceLines_InvoiceID_Sales_Invoices", - "entity": "InvoiceLines", - "column": "InvoiceID", - "referencedEntity": "Invoices", - "referencedColumn": "InvoiceID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemTransactions_InvoiceID_Sales_Invoices", - "entity": "StockItemTransactions", - "column": "InvoiceID", - "referencedEntity": "Invoices", - "referencedColumn": "InvoiceID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_OrderID_Sales_Orders", - "entity": "Invoices", - "column": "OrderID", - "referencedEntity": "Orders", - "referencedColumn": "OrderID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_OrderLines_OrderID_Sales_Orders", - "entity": "OrderLines", - "column": "OrderID", - "referencedEntity": "Orders", - "referencedColumn": "OrderID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Orders_BackorderOrderID_Sales_Orders", - "entity": "Orders", - "column": "BackorderOrderID", - "referencedEntity": "Orders", - "referencedColumn": "OrderID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_SpecialDeals_CustomerCategoryID_Sales_CustomerCategories", - "entity": "SpecialDeals", - "column": "CustomerCategoryID", - "referencedEntity": "CustomerCategories", - "referencedColumn": "CustomerCategoryID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_CustomerCategoryID_Sales_CustomerCategories", - "entity": "Customers", - "column": "CustomerCategoryID", - "referencedEntity": "CustomerCategories", - "referencedColumn": "CustomerCategoryID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_SpecialDeals_BuyingGroupID_Sales_BuyingGroups", - "entity": "SpecialDeals", - "column": "BuyingGroupID", - "referencedEntity": "BuyingGroups", - "referencedColumn": "BuyingGroupID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_BuyingGroupID_Sales_BuyingGroups", - "entity": "Customers", - "column": "BuyingGroupID", - "referencedEntity": "BuyingGroups", - "referencedColumn": "BuyingGroupID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_CustomerTransactions_CustomerID_Sales_Customers", - "entity": "CustomerTransactions", - "column": "CustomerID", - "referencedEntity": "Customers", - "referencedColumn": "CustomerID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "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_Sales_Customers_DeliveryCityID_Application_Cities", - "entity": "Customers", - "column": "DeliveryCityID", - "referencedEntity": "Cities", - "referencedColumn": "CityID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_PostalCityID_Application_Cities", - "entity": "Customers", - "column": "PostalCityID", - "referencedEntity": "Cities", - "referencedColumn": "CityID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "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", - "column": "SupplierID", - "referencedEntity": "Suppliers", - "referencedColumn": "SupplierID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_PurchaseOrders_SupplierID_Purchasing_Suppliers", - "entity": "PurchaseOrders", - "column": "SupplierID", - "referencedEntity": "Suppliers", - "referencedColumn": "SupplierID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemTransactions_SupplierID_Purchasing_Suppliers", - "entity": "StockItemTransactions", - "column": "SupplierID", - "referencedEntity": "Suppliers", - "referencedColumn": "SupplierID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItems_SupplierID_Purchasing_Suppliers", - "entity": "StockItems", - "column": "SupplierID", - "referencedEntity": "Suppliers", - "referencedColumn": "SupplierID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItems_ColorID_Warehouse_Colors", - "entity": "StockItems", - "column": "ColorID", - "referencedEntity": "Colors", - "referencedColumn": "ColorID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_SpecialDeals_StockGroupID_Warehouse_StockGroups", - "entity": "SpecialDeals", - "column": "StockGroupID", - "referencedEntity": "StockGroups", - "referencedColumn": "StockGroupID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemStockGroups_StockGroupID_Warehouse_StockGroups", - "entity": "StockItemStockGroups", - "column": "StockGroupID", - "referencedEntity": "StockGroups", - "referencedColumn": "StockGroupID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_PurchaseOrderLines_StockItemID_Warehouse_StockItems", - "entity": "PurchaseOrderLines", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_InvoiceLines_StockItemID_Warehouse_StockItems", - "entity": "InvoiceLines", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_OrderLines_StockItemID_Warehouse_StockItems", - "entity": "OrderLines", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_SpecialDeals_StockItemID_Warehouse_StockItems", - "entity": "SpecialDeals", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "PKFK_Warehouse_StockItemHoldings_StockItemID_Warehouse_StockItems", - "entity": "StockItemHoldings", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemStockGroups_StockItemID_Warehouse_StockItems", - "entity": "StockItemStockGroups", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemTransactions_StockItemID_Warehouse_StockItems", - "entity": "StockItemTransactions", - "column": "StockItemID", - "referencedEntity": "StockItems", - "referencedColumn": "StockItemID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_Suppliers_DeliveryMethodID_Application_DeliveryMethods", - "entity": "Suppliers", - "column": "DeliveryMethodID", - "referencedEntity": "DeliveryMethods", - "referencedColumn": "DeliveryMethodID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_PurchaseOrders_DeliveryMethodID_Application_DeliveryMethods", - "entity": "PurchaseOrders", - "column": "DeliveryMethodID", - "referencedEntity": "DeliveryMethods", - "referencedColumn": "DeliveryMethodID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_DeliveryMethodID_Application_DeliveryMethods", - "entity": "Invoices", - "column": "DeliveryMethodID", - "referencedEntity": "DeliveryMethods", - "referencedColumn": "DeliveryMethodID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "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", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_Countries_Application_People", - "entity": "Countries", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_DeliveryMethods_Application_People", - "entity": "DeliveryMethods", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_People_Application_People", - "entity": "People", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_TransactionTypes_Application_People", - "entity": "TransactionTypes", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_PaymentMethods_Application_People", - "entity": "PaymentMethods", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_Cities_Application_People", - "entity": "Cities", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Application_SystemParameters_Application_People", - "entity": "SystemParameters", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_PurchaseOrderLines_Application_People", - "entity": "PurchaseOrderLines", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_SupplierCategories_Application_People", - "entity": "SupplierCategories", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_SupplierTransactions_Application_People", - "entity": "SupplierTransactions", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_Suppliers_PrimaryContactPersonID_Application_People", - "entity": "Suppliers", - "column": "PrimaryContactPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_Suppliers_Application_People", - "entity": "Suppliers", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_Suppliers_AlternateContactPersonID_Application_People", - "entity": "Suppliers", - "column": "AlternateContactPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "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", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_CustomerTransactions_Application_People", - "entity": "CustomerTransactions", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_InvoiceLines_Application_People", - "entity": "InvoiceLines", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_Application_People", - "entity": "Invoices", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_PackedByPersonID_Application_People", - "entity": "Invoices", - "column": "PackedByPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Invoices_ContactPersonID_Application_People", - "entity": "Invoices", - "column": "ContactPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "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", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_OrderLines_Application_People", - "entity": "OrderLines", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Orders_ContactPersonID_Application_People", - "entity": "Orders", - "column": "ContactPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Orders_SalespersonPersonID_Application_People", - "entity": "Orders", - "column": "SalespersonPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Orders_PickedByPersonID_Application_People", - "entity": "Orders", - "column": "PickedByPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Orders_Application_People", - "entity": "Orders", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_SpecialDeals_Application_People", - "entity": "SpecialDeals", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_CustomerCategories_Application_People", - "entity": "CustomerCategories", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_BuyingGroups_Application_People", - "entity": "BuyingGroups", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_Application_People", - "entity": "Customers", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_AlternateContactPersonID_Application_People", - "entity": "Customers", - "column": "AlternateContactPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_Customers_PrimaryContactPersonID_Application_People", - "entity": "Customers", - "column": "PrimaryContactPersonID", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemHoldings_Application_People", - "entity": "StockItemHoldings", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_Colors_Application_People", - "entity": "Colors", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemStockGroups_Application_People", - "entity": "StockItemStockGroups", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockGroups_Application_People", - "entity": "StockGroups", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemTransactions_Application_People", - "entity": "StockItemTransactions", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItems_Application_People", - "entity": "StockItems", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_PackageTypes_Application_People", - "entity": "PackageTypes", - "column": "LastEditedBy", - "referencedEntity": "People", - "referencedColumn": "PersonID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_SupplierTransactions_TransactionTypeID_Application_TransactionTypes", - "entity": "SupplierTransactions", - "column": "TransactionTypeID", - "referencedEntity": "TransactionTypes", - "referencedColumn": "TransactionTypeID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_CustomerTransactions_TransactionTypeID_Application_TransactionTypes", - "entity": "CustomerTransactions", - "column": "TransactionTypeID", - "referencedEntity": "TransactionTypes", - "referencedColumn": "TransactionTypeID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemTransactions_TransactionTypeID_Application_TransactionTypes", - "entity": "StockItemTransactions", - "column": "TransactionTypeID", - "referencedEntity": "TransactionTypes", - "referencedColumn": "TransactionTypeID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_SupplierTransactions_PaymentMethodID_Application_PaymentMethods", - "entity": "SupplierTransactions", - "column": "PaymentMethodID", - "referencedEntity": "PaymentMethods", - "referencedColumn": "PaymentMethodID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Sales_CustomerTransactions_PaymentMethodID_Application_PaymentMethods", - "entity": "CustomerTransactions", - "column": "PaymentMethodID", - "referencedEntity": "PaymentMethods", - "referencedColumn": "PaymentMethodID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_PurchaseOrderLines_PurchaseOrderID_Purchasing_PurchaseOrders", - "entity": "PurchaseOrderLines", - "column": "PurchaseOrderID", - "referencedEntity": "PurchaseOrders", - "referencedColumn": "PurchaseOrderID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Purchasing_SupplierTransactions_PurchaseOrderID_Purchasing_PurchaseOrders", - "entity": "SupplierTransactions", - "column": "PurchaseOrderID", - "referencedEntity": "PurchaseOrders", - "referencedColumn": "PurchaseOrderID", - "onDeleteAction": 1, - "onUpdateAction": 1 - }, - { - "foreignKeyName": "FK_Warehouse_StockItemTransactions_PurchaseOrderID_Purchasing_PurchaseOrders", - "entity": "StockItemTransactions", - "column": "PurchaseOrderID", - "referencedEntity": "PurchaseOrders", - "referencedColumn": "PurchaseOrderID", - "onDeleteAction": 1, - "onUpdateAction": 1 - } - ] -} diff --git a/yarn.lock b/yarn.lock index 10d7828..ecb9c39 100644 --- a/yarn.lock +++ b/yarn.lock @@ -168,246 +168,121 @@ resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.24.0.tgz#b57697945b50e99007b4c2521507dc613d4a648c" integrity sha512-WtKdFM7ls47zkKHFVzMz8opM7LkcsIp9amDUBIAWirg70RM71WRSjdILPsY5Uv1D42ZpUfaPILDlfactHgsRkw== -"@esbuild/aix-ppc64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.24.2.tgz#38848d3e25afe842a7943643cbcd387cc6e13461" - integrity sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA== - "@esbuild/android-arm64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.24.0.tgz#1add7e0af67acefd556e407f8497e81fddad79c0" integrity sha512-Vsm497xFM7tTIPYK9bNTYJyF/lsP590Qc1WxJdlB6ljCbdZKU9SY8i7+Iin4kyhV/KV5J2rOKsBQbB77Ab7L/w== -"@esbuild/android-arm64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.24.2.tgz#f592957ae8b5643129fa889c79e69cd8669bb894" - integrity sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg== - "@esbuild/android-arm@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.24.0.tgz#ab7263045fa8e090833a8e3c393b60d59a789810" integrity sha512-arAtTPo76fJ/ICkXWetLCc9EwEHKaeya4vMrReVlEIUCAUncH7M4bhMQ+M9Vf+FFOZJdTNMXNBrWwW+OXWpSew== -"@esbuild/android-arm@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.24.2.tgz#72d8a2063aa630308af486a7e5cbcd1e134335b3" - integrity sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q== - "@esbuild/android-x64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.24.0.tgz#e8f8b196cfdfdd5aeaebbdb0110983460440e705" integrity sha512-t8GrvnFkiIY7pa7mMgJd7p8p8qqYIz1NYiAoKc75Zyv73L3DZW++oYMSHPRarcotTKuSs6m3hTOa5CKHaS02TQ== -"@esbuild/android-x64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.24.2.tgz#9a7713504d5f04792f33be9c197a882b2d88febb" - integrity sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw== - "@esbuild/darwin-arm64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.24.0.tgz#2d0d9414f2acbffd2d86e98253914fca603a53dd" integrity sha512-CKyDpRbK1hXwv79soeTJNHb5EiG6ct3efd/FTPdzOWdbZZfGhpbcqIpiD0+vwmpu0wTIL97ZRPZu8vUt46nBSw== -"@esbuild/darwin-arm64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.24.2.tgz#02ae04ad8ebffd6e2ea096181b3366816b2b5936" - integrity sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA== - "@esbuild/darwin-x64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.24.0.tgz#33087aab31a1eb64c89daf3d2cf8ce1775656107" integrity sha512-rgtz6flkVkh58od4PwTRqxbKH9cOjaXCMZgWD905JOzjFKW+7EiUObfd/Kav+A6Gyud6WZk9w+xu6QLytdi2OA== -"@esbuild/darwin-x64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.24.2.tgz#9ec312bc29c60e1b6cecadc82bd504d8adaa19e9" - integrity sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA== - "@esbuild/freebsd-arm64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.0.tgz#bb76e5ea9e97fa3c753472f19421075d3a33e8a7" integrity sha512-6Mtdq5nHggwfDNLAHkPlyLBpE5L6hwsuXZX8XNmHno9JuL2+bg2BX5tRkwjyfn6sKbxZTq68suOjgWqCicvPXA== -"@esbuild/freebsd-arm64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.2.tgz#5e82f44cb4906d6aebf24497d6a068cfc152fa00" - integrity sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg== - "@esbuild/freebsd-x64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.24.0.tgz#e0e2ce9249fdf6ee29e5dc3d420c7007fa579b93" integrity sha512-D3H+xh3/zphoX8ck4S2RxKR6gHlHDXXzOf6f/9dbFt/NRBDIE33+cVa49Kil4WUjxMGW0ZIYBYtaGCa2+OsQwQ== -"@esbuild/freebsd-x64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.24.2.tgz#3fb1ce92f276168b75074b4e51aa0d8141ecce7f" - integrity sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q== - "@esbuild/linux-arm64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.24.0.tgz#d1b2aa58085f73ecf45533c07c82d81235388e75" integrity sha512-TDijPXTOeE3eaMkRYpcy3LarIg13dS9wWHRdwYRnzlwlA370rNdZqbcp0WTyyV/k2zSxfko52+C7jU5F9Tfj1g== -"@esbuild/linux-arm64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.24.2.tgz#856b632d79eb80aec0864381efd29de8fd0b1f43" - integrity sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg== - "@esbuild/linux-arm@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.24.0.tgz#8e4915df8ea3e12b690a057e77a47b1d5935ef6d" integrity sha512-gJKIi2IjRo5G6Glxb8d3DzYXlxdEj2NlkixPsqePSZMhLudqPhtZ4BUrpIuTjJYXxvF9njql+vRjB2oaC9XpBw== -"@esbuild/linux-arm@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.24.2.tgz#c846b4694dc5a75d1444f52257ccc5659021b736" - integrity sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA== - "@esbuild/linux-ia32@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.24.0.tgz#8200b1110666c39ab316572324b7af63d82013fb" integrity sha512-K40ip1LAcA0byL05TbCQ4yJ4swvnbzHscRmUilrmP9Am7//0UjPreh4lpYzvThT2Quw66MhjG//20mrufm40mA== -"@esbuild/linux-ia32@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.24.2.tgz#f8a16615a78826ccbb6566fab9a9606cfd4a37d5" - integrity sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw== - "@esbuild/linux-loong64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.24.0.tgz#6ff0c99cf647504df321d0640f0d32e557da745c" integrity sha512-0mswrYP/9ai+CU0BzBfPMZ8RVm3RGAN/lmOMgW4aFUSOQBjA31UP8Mr6DDhWSuMwj7jaWOT0p0WoZ6jeHhrD7g== -"@esbuild/linux-loong64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.24.2.tgz#1c451538c765bf14913512c76ed8a351e18b09fc" - integrity sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ== - "@esbuild/linux-mips64el@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.24.0.tgz#3f720ccd4d59bfeb4c2ce276a46b77ad380fa1f3" integrity sha512-hIKvXm0/3w/5+RDtCJeXqMZGkI2s4oMUGj3/jM0QzhgIASWrGO5/RlzAzm5nNh/awHE0A19h/CvHQe6FaBNrRA== -"@esbuild/linux-mips64el@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.24.2.tgz#0846edeefbc3d8d50645c51869cc64401d9239cb" - integrity sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw== - "@esbuild/linux-ppc64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.24.0.tgz#9d6b188b15c25afd2e213474bf5f31e42e3aa09e" integrity sha512-HcZh5BNq0aC52UoocJxaKORfFODWXZxtBaaZNuN3PUX3MoDsChsZqopzi5UupRhPHSEHotoiptqikjN/B77mYQ== -"@esbuild/linux-ppc64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.24.2.tgz#8e3fc54505671d193337a36dfd4c1a23b8a41412" - integrity sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw== - "@esbuild/linux-riscv64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.24.0.tgz#f989fdc9752dfda286c9cd87c46248e4dfecbc25" integrity sha512-bEh7dMn/h3QxeR2KTy1DUszQjUrIHPZKyO6aN1X4BCnhfYhuQqedHaa5MxSQA/06j3GpiIlFGSsy1c7Gf9padw== -"@esbuild/linux-riscv64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.24.2.tgz#6a1e92096d5e68f7bb10a0d64bb5b6d1daf9a694" - integrity sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q== - "@esbuild/linux-s390x@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.24.0.tgz#29ebf87e4132ea659c1489fce63cd8509d1c7319" integrity sha512-ZcQ6+qRkw1UcZGPyrCiHHkmBaj9SiCD8Oqd556HldP+QlpUIe2Wgn3ehQGVoPOvZvtHm8HPx+bH20c9pvbkX3g== -"@esbuild/linux-s390x@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.24.2.tgz#ab18e56e66f7a3c49cb97d337cd0a6fea28a8577" - integrity sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw== - "@esbuild/linux-x64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.24.0.tgz#4af48c5c0479569b1f359ffbce22d15f261c0cef" integrity sha512-vbutsFqQ+foy3wSSbmjBXXIJ6PL3scghJoM8zCL142cGaZKAdCZHyf+Bpu/MmX9zT9Q0zFBVKb36Ma5Fzfa8xA== -"@esbuild/linux-x64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.24.2.tgz#8140c9b40da634d380b0b29c837a0b4267aff38f" - integrity sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q== - -"@esbuild/netbsd-arm64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-arm64/-/netbsd-arm64-0.24.2.tgz#65f19161432bafb3981f5f20a7ff45abb2e708e6" - integrity sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw== - "@esbuild/netbsd-x64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.24.0.tgz#1ae73d23cc044a0ebd4f198334416fb26c31366c" integrity sha512-hjQ0R/ulkO8fCYFsG0FZoH+pWgTTDreqpqY7UnQntnaKv95uP5iW3+dChxnx7C3trQQU40S+OgWhUVwCjVFLvg== -"@esbuild/netbsd-x64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.24.2.tgz#7a3a97d77abfd11765a72f1c6f9b18f5396bcc40" - integrity sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw== - "@esbuild/openbsd-arm64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.0.tgz#5d904a4f5158c89859fd902c427f96d6a9e632e2" integrity sha512-MD9uzzkPQbYehwcN583yx3Tu5M8EIoTD+tUgKF982WYL9Pf5rKy9ltgD0eUgs8pvKnmizxjXZyLt0z6DC3rRXg== -"@esbuild/openbsd-arm64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.2.tgz#58b00238dd8f123bfff68d3acc53a6ee369af89f" - integrity sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A== - "@esbuild/openbsd-x64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.24.0.tgz#4c8aa88c49187c601bae2971e71c6dc5e0ad1cdf" integrity sha512-4ir0aY1NGUhIC1hdoCzr1+5b43mw99uNwVzhIq1OY3QcEwPDO3B7WNXBzaKY5Nsf1+N11i1eOfFcq+D/gOS15Q== -"@esbuild/openbsd-x64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.24.2.tgz#0ac843fda0feb85a93e288842936c21a00a8a205" - integrity sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA== - "@esbuild/sunos-x64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.24.0.tgz#8ddc35a0ea38575fa44eda30a5ee01ae2fa54dd4" integrity sha512-jVzdzsbM5xrotH+W5f1s+JtUy1UWgjU0Cf4wMvffTB8m6wP5/kx0KiaLHlbJO+dMgtxKV8RQ/JvtlFcdZ1zCPA== -"@esbuild/sunos-x64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.24.2.tgz#8b7aa895e07828d36c422a4404cc2ecf27fb15c6" - integrity sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig== - "@esbuild/win32-arm64@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.24.0.tgz#6e79c8543f282c4539db684a207ae0e174a9007b" integrity sha512-iKc8GAslzRpBytO2/aN3d2yb2z8XTVfNV0PjGlCxKo5SgWmNXx82I/Q3aG1tFfS+A2igVCY97TJ8tnYwpUWLCA== -"@esbuild/win32-arm64@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.24.2.tgz#c023afb647cabf0c3ed13f0eddfc4f1d61c66a85" - integrity sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ== - "@esbuild/win32-ia32@0.24.0": version "0.24.0" resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.24.0.tgz#057af345da256b7192d18b676a02e95d0fa39103" integrity sha512-vQW36KZolfIudCcTnaTpmLQ24Ha1RjygBo39/aLkM2kmjkWmZGEJ5Gn9l5/7tzXA42QGIoWbICfg6KLLkIw6yw== -"@esbuild/win32-ia32@0.24.2": - version "0.24.2" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.24.2.tgz#96c356132d2dda990098c8b8b951209c3cd743c2" - integrity sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA== - "@esbuild/win32-x64@0.24.0": version "0.24.0" resolved "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.0.tgz" integrity sha512-7IAFPrjSQIJrGsK6flwg7NFmwBoSTyF3rl7If0hNUFQU4ilTsEPL6GuMuU9BfIWVVGuRnuIidkSMC+c0Otu8IA== -"@esbuild/win32-x64@0.24.2": - version "0.24.2" - resolved "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.2.tgz" - integrity sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg== - "@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": version "4.4.1" resolved "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz" @@ -554,101 +429,6 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@rollup/rollup-android-arm-eabi@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.30.0.tgz#f2552f6984cfae52784b2fbf0e47633f38955d66" - integrity sha512-qFcFto9figFLz2g25DxJ1WWL9+c91fTxnGuwhToCl8BaqDsDYMl/kOnBXAyAqkkzAWimYMSWNPWEjt+ADAHuoQ== - -"@rollup/rollup-android-arm64@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.30.0.tgz#7e5764268d3049b7341c60f1c650f1d71760a5b2" - integrity sha512-vqrQdusvVl7dthqNjWCL043qelBK+gv9v3ZiqdxgaJvmZyIAAXMjeGVSqZynKq69T7062T5VrVTuikKSAAVP6A== - -"@rollup/rollup-darwin-arm64@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.30.0.tgz#c9245577f673802f0f6de0d46ee776691d77552e" - integrity sha512-617pd92LhdA9+wpixnzsyhVft3szYiN16aNUMzVkf2N+yAk8UXY226Bfp36LvxYTUt7MO/ycqGFjQgJ0wlMaWQ== - -"@rollup/rollup-darwin-x64@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.30.0.tgz#e492705339542f8b54fa66f630c9d820bc708693" - integrity sha512-Y3b4oDoaEhCypg8ajPqigKDcpi5ZZovemQl9Edpem0uNv6UUjXv7iySBpGIUTSs2ovWOzYpfw9EbFJXF/fJHWw== - -"@rollup/rollup-freebsd-arm64@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.30.0.tgz#3e13b5d4d44ea87598d5d4db97181db1174fb3c8" - integrity sha512-3REQJ4f90sFIBfa0BUokiCdrV/E4uIjhkWe1bMgCkhFXbf4D8YN6C4zwJL881GM818qVYE9BO3dGwjKhpo2ABA== - -"@rollup/rollup-freebsd-x64@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.30.0.tgz#138daa08d1b345d605f57b4dedd18a50420488e7" - integrity sha512-ZtY3Y8icbe3Cc+uQicsXG5L+CRGUfLZjW6j2gn5ikpltt3Whqjfo5mkyZ86UiuHF9Q3ZsaQeW7YswlHnN+lAcg== - -"@rollup/rollup-linux-arm-gnueabihf@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.30.0.tgz#bdaece34f93c3dfd521e9ab8f5c740121862468e" - integrity sha512-bsPGGzfiHXMhQGuFGpmo2PyTwcrh2otL6ycSZAFTESviUoBOuxF7iBbAL5IJXc/69peXl5rAtbewBFeASZ9O0g== - -"@rollup/rollup-linux-arm-musleabihf@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.30.0.tgz#1804c6ec49be21521eac612513e0666cdde2188c" - integrity sha512-kvyIECEhs2DrrdfQf++maCWJIQ974EI4txlz1nNSBaCdtf7i5Xf1AQCEJWOC5rEBisdaMFFnOWNLYt7KpFqy5A== - -"@rollup/rollup-linux-arm64-gnu@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.30.0.tgz#2c4bd90f77fcf769502743ec38f184c00a087e08" - integrity sha512-CFE7zDNrokaotXu+shwIrmWrFxllg79vciH4E/zeK7NitVuWEaXRzS0mFfFvyhZfn8WfVOG/1E9u8/DFEgK7WQ== - -"@rollup/rollup-linux-arm64-musl@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.30.0.tgz#63eadee20f220d28e85cbd10aba671ada8e89c84" - integrity sha512-MctNTBlvMcIBP0t8lV/NXiUwFg9oK5F79CxLU+a3xgrdJjfBLVIEHSAjQ9+ipofN2GKaMLnFFXLltg1HEEPaGQ== - -"@rollup/rollup-linux-loongarch64-gnu@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.30.0.tgz#1c2c2bb30f61cbbc0fcf4e6c359777fcdb7108cc" - integrity sha512-fBpoYwLEPivL3q368+gwn4qnYnr7GVwM6NnMo8rJ4wb0p/Y5lg88vQRRP077gf+tc25akuqd+1Sxbn9meODhwA== - -"@rollup/rollup-linux-powerpc64le-gnu@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.30.0.tgz#cea71e0359f086a01c57cf312bef9ec9cc3ba010" - integrity sha512-1hiHPV6dUaqIMXrIjN+vgJqtfkLpqHS1Xsg0oUfUVD98xGp1wX89PIXgDF2DWra1nxAd8dfE0Dk59MyeKaBVAw== - -"@rollup/rollup-linux-riscv64-gnu@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.30.0.tgz#25ab4a6dbcbd27f4a68382f7963363f886a237aa" - integrity sha512-U0xcC80SMpEbvvLw92emHrNjlS3OXjAM0aVzlWfar6PR0ODWCTQtKeeB+tlAPGfZQXicv1SpWwRz9Hyzq3Jx3g== - -"@rollup/rollup-linux-s390x-gnu@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.30.0.tgz#7054b237152d9e36c51194532a6b70ca1a62a487" - integrity sha512-VU/P/IODrNPasgZDLIFJmMiLGez+BN11DQWfTVlViJVabyF3JaeaJkP6teI8760f18BMGCQOW9gOmuzFaI1pUw== - -"@rollup/rollup-linux-x64-gnu@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.30.0.tgz#3656a8341a6048f2111f423301aaad8e84a5fe90" - integrity sha512-laQVRvdbKmjXuFA3ZiZj7+U24FcmoPlXEi2OyLfbpY2MW1oxLt9Au8q9eHd0x6Pw/Kw4oe9gwVXWwIf2PVqblg== - -"@rollup/rollup-linux-x64-musl@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.30.0.tgz#cf8ae018ea6ff65eb36722a28beb93a20a6047f0" - integrity sha512-3wzKzduS7jzxqcOvy/ocU/gMR3/QrHEFLge5CD7Si9fyHuoXcidyYZ6jyx8OPYmCcGm3uKTUl+9jUSAY74Ln5A== - -"@rollup/rollup-win32-arm64-msvc@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.30.0.tgz#6b968f5b068469db16eac743811ee6c040671042" - integrity sha512-jROwnI1+wPyuv696rAFHp5+6RFhXGGwgmgSfzE8e4xfit6oLRg7GyMArVUoM3ChS045OwWr9aTnU+2c1UdBMyw== - -"@rollup/rollup-win32-ia32-msvc@4.30.0": - version "4.30.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.30.0.tgz#0321de1a0540dd402e8e523d90cbd9d16f1b9e96" - integrity sha512-duzweyup5WELhcXx5H1jokpr13i3BV9b48FMiikYAwk/MT1LrMYYk2TzenBd0jj4ivQIt58JWSxc19y4SvLP4g== - -"@rollup/rollup-win32-x64-msvc@4.30.0": - version "4.30.0" - resolved "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.30.0.tgz" - integrity sha512-DYvxS0M07PvgvavMIybCOBYheyrqlui6ZQBHJs6GqduVzHSZ06TPPvlfvnYstjODHQ8UUXFwt5YE+h0jFI8kwg== - "@types/babel__core@^7.20.5": version "7.20.5" resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz" @@ -687,7 +467,7 @@ resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.6.0.tgz#eac397f28bf1d6ae0ae081363eca2f425bedf0d5" integrity sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA== -"@types/estree@1.0.6", "@types/estree@^1.0.6": +"@types/estree@^1.0.6": version "1.0.6" resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz" integrity sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw== @@ -1160,37 +940,6 @@ esbuild@^0.24.0: "@esbuild/win32-ia32" "0.24.0" "@esbuild/win32-x64" "0.24.0" -esbuild@^0.24.2: - version "0.24.2" - resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.24.2.tgz" - integrity sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA== - optionalDependencies: - "@esbuild/aix-ppc64" "0.24.2" - "@esbuild/android-arm" "0.24.2" - "@esbuild/android-arm64" "0.24.2" - "@esbuild/android-x64" "0.24.2" - "@esbuild/darwin-arm64" "0.24.2" - "@esbuild/darwin-x64" "0.24.2" - "@esbuild/freebsd-arm64" "0.24.2" - "@esbuild/freebsd-x64" "0.24.2" - "@esbuild/linux-arm" "0.24.2" - "@esbuild/linux-arm64" "0.24.2" - "@esbuild/linux-ia32" "0.24.2" - "@esbuild/linux-loong64" "0.24.2" - "@esbuild/linux-mips64el" "0.24.2" - "@esbuild/linux-ppc64" "0.24.2" - "@esbuild/linux-riscv64" "0.24.2" - "@esbuild/linux-s390x" "0.24.2" - "@esbuild/linux-x64" "0.24.2" - "@esbuild/netbsd-arm64" "0.24.2" - "@esbuild/netbsd-x64" "0.24.2" - "@esbuild/openbsd-arm64" "0.24.2" - "@esbuild/openbsd-x64" "0.24.2" - "@esbuild/sunos-x64" "0.24.2" - "@esbuild/win32-arm64" "0.24.2" - "@esbuild/win32-ia32" "0.24.2" - "@esbuild/win32-x64" "0.24.2" - escalade@^3.2.0: version "3.2.0" resolved "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz" @@ -1475,11 +1224,6 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@~2.3.2, fsevents@~2.3.3: - version "2.3.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" - integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== - function-bind@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" @@ -2054,11 +1798,6 @@ multimatch@^2.0.0: arrify "^1.0.0" minimatch "^3.0.0" -nanoid@^3.3.7: - version "3.3.8" - resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz" - integrity sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w== - natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" @@ -2230,7 +1969,7 @@ path-root@^0.1.1: dependencies: path-root-regex "^0.1.0" -picocolors@^1.0.0, picocolors@^1.1.0, picocolors@^1.1.1: +picocolors@^1.0.0, picocolors@^1.1.0: version "1.1.1" resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz" integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== @@ -2268,15 +2007,6 @@ portfinder@^1.0.28: debug "^3.2.7" mkdirp "^0.5.6" -postcss@^8.4.49: - version "8.4.49" - resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz" - integrity sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA== - dependencies: - nanoid "^3.3.7" - picocolors "^1.1.1" - source-map-js "^1.2.1" - prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" @@ -2389,34 +2119,6 @@ reusify@^1.0.4: resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -rollup@^4.23.0: - version "4.30.0" - resolved "https://registry.npmjs.org/rollup/-/rollup-4.30.0.tgz" - integrity sha512-sDnr1pcjTgUT69qBksNF1N1anwfbyYG6TBQ22b03bII8EdiUQ7J0TlozVaTMjT/eEJAO49e1ndV7t+UZfL1+vA== - dependencies: - "@types/estree" "1.0.6" - optionalDependencies: - "@rollup/rollup-android-arm-eabi" "4.30.0" - "@rollup/rollup-android-arm64" "4.30.0" - "@rollup/rollup-darwin-arm64" "4.30.0" - "@rollup/rollup-darwin-x64" "4.30.0" - "@rollup/rollup-freebsd-arm64" "4.30.0" - "@rollup/rollup-freebsd-x64" "4.30.0" - "@rollup/rollup-linux-arm-gnueabihf" "4.30.0" - "@rollup/rollup-linux-arm-musleabihf" "4.30.0" - "@rollup/rollup-linux-arm64-gnu" "4.30.0" - "@rollup/rollup-linux-arm64-musl" "4.30.0" - "@rollup/rollup-linux-loongarch64-gnu" "4.30.0" - "@rollup/rollup-linux-powerpc64le-gnu" "4.30.0" - "@rollup/rollup-linux-riscv64-gnu" "4.30.0" - "@rollup/rollup-linux-s390x-gnu" "4.30.0" - "@rollup/rollup-linux-x64-gnu" "4.30.0" - "@rollup/rollup-linux-x64-musl" "4.30.0" - "@rollup/rollup-win32-arm64-msvc" "4.30.0" - "@rollup/rollup-win32-ia32-msvc" "4.30.0" - "@rollup/rollup-win32-x64-msvc" "4.30.0" - fsevents "~2.3.2" - run-parallel@^1.1.9: version "1.2.0" resolved "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz" @@ -2523,11 +2225,6 @@ side-channel@^1.0.6: side-channel-map "^1.0.1" side-channel-weakmap "^1.0.2" -source-map-js@^1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz" - integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA== - source-map@^0.5.3: version "0.5.7" resolved "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz" @@ -2667,17 +2364,6 @@ v8flags@~3.2.0: dependencies: homedir-polyfill "^1.0.1" -vite@^6.0.7: - version "6.0.7" - resolved "https://registry.npmjs.org/vite/-/vite-6.0.7.tgz" - integrity sha512-RDt8r/7qx9940f8FcOIAH9PTViRrghKaK2K1jY3RaAURrEUbm9Du1mJ72G+jlhtG3WwodnfzY8ORQZbBavZEAQ== - dependencies: - esbuild "^0.24.2" - postcss "^8.4.49" - rollup "^4.23.0" - optionalDependencies: - fsevents "~2.3.3" - whatwg-encoding@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz"