{"id":33178109,"url":"https://github.com/jpwhite3/northwind-SQLite3","last_synced_at":"2025-11-20T21:01:33.242Z","repository":{"id":42654405,"uuid":"55029012","full_name":"jpwhite3/northwind-SQLite3","owner":"jpwhite3","description":"SQLite3 version of Microsoft's Northwind Database","archived":false,"fork":false,"pushed_at":"2025-01-15T18:25:44.000Z","size":23022,"stargazers_count":505,"open_issues_count":3,"forks_count":210,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-05-10T08:31:49.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpwhite3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-30T03:20:14.000Z","updated_at":"2025-05-01T01:45:35.000Z","dependencies_parsed_at":"2022-09-14T17:03:48.779Z","dependency_job_id":"68e1fcf0-1435-40cf-8a43-f36ca908788b","html_url":"https://github.com/jpwhite3/northwind-SQLite3","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jpwhite3/northwind-SQLite3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwhite3%2Fnorthwind-SQLite3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwhite3%2Fnorthwind-SQLite3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwhite3%2Fnorthwind-SQLite3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwhite3%2Fnorthwind-SQLite3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpwhite3","download_url":"https://codeload.github.com/jpwhite3/northwind-SQLite3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwhite3%2Fnorthwind-SQLite3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285511776,"owners_count":27184237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-20T02:00:05.334Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-11-16T03:00:31.890Z","updated_at":"2025-11-20T21:01:33.235Z","avatar_url":"https://github.com/jpwhite3.png","language":"Python","funding_links":[],"categories":["SQLite Schemas"],"sub_categories":["Desktop"],"readme":"# Northwind-SQLite3\n\nThis is a version of the Microsoft Access 2000 Northwind sample database, re-engineered for SQLite3.\n\nThe Northwind sample database was provided with Microsoft Access as a tutorial schema for managing small business customers, orders, inventory, purchasing, suppliers, shipping, and employees. Northwind is an excellent tutorial schema for a small-business ERP, with customers, orders, inventory, purchasing, suppliers, shipping, employees, and single-entry accounting.\n\nAll the TABLES and VIEWS from the MSSQL-2000 version have been converted to Sqlite3 and included here. Included is a single version prepopulated with data. Should you decide to, you can use the included python script to pump the database full of more data.\n\n[Download here](https://raw.githubusercontent.com/jpwhite3/northwind-SQLite3/main/dist/northwind.db)\n\n# Structure\n\n```mermaid\nerDiagram\n    CustomerCustomerDemo }o--|| CustomerDemographics : have\n    CustomerCustomerDemo }o--|| Customers : through\n    Employees ||--|| Employees : \"reports to\"\n    Employees ||--o{ EmployeeTerritories : through\n    Orders }o--|| Shippers : \"ships via\"\n    \"Order Details\" }o--|| Orders : have\n    \"Order Details\" }o--|| Products : contain\n    Products }o--|| Categories : in\n    Products }o--|| Suppliers : \"supplied by\"\n    Territories ||--|| Regions : in\n    EmployeeTerritories }o--|| Territories : have\n    Orders }o--|| Customers : place\n    Orders }o--|| Employees : \"sold by\"\n\n\n    Categories {\n        int CategoryID PK\n        string CategoryName\n        string Description\n        blob Picture\n    }\n    CustomerCustomerDemo {\n        string CustomerID PK, FK\n        string CustomerTypeID PK, FK\n    }\n    CustomerDemographics {\n        string CustomerTypeID PK\n        string CustomerDesc\n    }\n    Customers {\n        string CustomerID PK\n        string CompanyName\n        string ContactName\n        string ContactTitle\n        string Address\n        string City\n        string Region\n        string PostalCode\n        string Country\n        string Phone\n        string Fax\n    }\n    Employees {\n        int EmployeeID PK\n        string LastName\n        string FirstName\n        string Title\n        string TitleOfCourtesy\n        date BirthDate\n        date HireDate\n        string Address\n        string City\n        string Region\n        string PostalCode\n        string Country\n        string HomePhone\n        string Extension\n        blob Photo\n        string Notes\n        int ReportsTo FK\n        string PhotoPath\n    }\n    EmployeeTerritories {\n        int EmployeeID PK, FK\n        int TerritoryID PK, FK\n    }\n    \"Order Details\" {\n        int OrderID PK, FK\n        int ProductID PK, FK\n        float UnitPrice\n        int Quantity\n        real Discount\n    }\n    Orders {\n        int OrderID PK\n        string CustomerID FK\n        int EmployeeID FK\n        datetime OrderDate\n        datetime RequiredDate\n        datetime ShippedDate\n        int ShipVia FK\n        numeric Freight\n        string ShipName\n        string ShipAddress\n        string ShipCity\n        string ShipRegion\n        string ShipPostalCode\n        string ShipCountry\n    }\n    Products {\n        int ProductID PK\n        string ProductName\n        int SupplierID FK\n        int CategoryID FK\n        int QuantityPerUnit\n        float UnitPrice\n        int UnitsInStock\n        int UnitsOnOrder\n        int ReorderLevel\n        string Discontinued\n    }\n    Regions {\n        int RegionID PK\n        string RegionDescription\n    }\n    Shippers {\n        int ShipperID PK\n        string CompanyName\n        string Phone\n    }\n    Suppliers {\n        int SupplierID PK\n        string CompanyName\n        string ContactName\n        string ContactTitle\n        string Address\n        string City\n        string Region\n        string PostalCode\n        string Country\n        string Phone\n        string Fax\n        string HomePage\n    }\n    Territories {\n        string TerritoryID PK\n        string TerritoryDescription\n        int RegionID FK\n    }\n\n```\n\n## Views\n\nThe following views have been converted from the original Northwind Access database. Please refer to the `src/create.sql` file to view the code behind each of these views.\n\n| View Name |\n|-----------|\n| [Alphabetical list of products] |\n| [Current Product List] |\n| [Customer and Suppliers by City] |\n| [Invoices] |\n| [Orders Qry] |\n| [Order Subtotals] |\n| [Order Subtotals] |\n| [Product Sales for 1997] |\n| [Products Above Average Price] |\n| [Products by Category] |\n| [Quarterly Orders] |\n| [Sales Totals by Amount] |\n| [Summary of Sales by Quarter] |\n| [Summary of Sales by Year] |\n| [Category Sales for 1997] |\n| [Order Details Extended] |\n| [Sales by Category] |\n\n\n# Build Instructions\n\n## Prerequisites\n\n- You are running in a unix-like environment (Linux, MacOS)\n- Python 3.6 or higher (`python3 --version`)\n- SQLite3 installed `sqlite3 -help`\n\n## Build\n\n```bash\nmake build  # Creates database at ./dist/northwind.db\n```\n\n## Populate with more data\n\n```bash\nmake populate\n```\n\n## Print report of row counts\n\n```bash\nmake report\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpwhite3%2Fnorthwind-SQLite3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpwhite3%2Fnorthwind-SQLite3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpwhite3%2Fnorthwind-SQLite3/lists"}