{"id":19768695,"url":"https://github.com/siara-cc/employee_db","last_synced_at":"2026-03-19T11:35:27.252Z","repository":{"id":97919108,"uuid":"153673970","full_name":"siara-cc/employee_db","owner":"siara-cc","description":"Sqlite3 version of mysql test_db","archived":false,"fork":false,"pushed_at":"2018-12-27T10:37:32.000Z","size":121247,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-06T02:47:10.736Z","etag":null,"topics":["sqlite-database","sqlite3-database"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siara-cc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-18T19:04:52.000Z","updated_at":"2023-02-19T16:52:22.000Z","dependencies_parsed_at":"2023-03-13T16:08:21.968Z","dependency_job_id":null,"html_url":"https://github.com/siara-cc/employee_db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/siara-cc/employee_db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siara-cc%2Femployee_db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siara-cc%2Femployee_db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siara-cc%2Femployee_db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siara-cc%2Femployee_db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siara-cc","download_url":"https://codeload.github.com/siara-cc/employee_db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siara-cc%2Femployee_db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29045972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["sqlite-database","sqlite3-database"],"created_at":"2024-11-12T04:39:52.782Z","updated_at":"2026-02-03T12:34:32.858Z","avatar_url":"https://github.com/siara-cc.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sqlite3 port of mysql test_db\n\nThis project hosts the Sqlite3 db file ported from mysql test_db found at https://github.com/datacharmer/test_db.  To use this project, download employees.db.bz2, unzip and open using sqlite3 command line tool.\n\nMinor changes have been made to the schema per suggestions from people of `sqlite-users` group.\n\nGiven below Schema section is the README from the other repository, with the usage part removed.  This project is also hosted under the same license (CC-BY-SA-3.0).\n\n# Schema\n\n![Schema Image](employees-schema.png?raw=true)\n\n```sql\nCREATE TABLE employees (\n    emp_id      INTEGER  NOT NULL,\n    birth_date  DATE     NOT NULL,\n    first_name  TEXT     NOT NULL,\n    last_name   TEXT     NOT NULL,\n    gender      CHAR     NOT NULL check(gender=\"M\" or gender=\"F\"),    \n    hire_date   DATE     NOT NULL,\n    PRIMARY KEY (emp_id)\n);\nCREATE TABLE departments (\n    dept_id     INTEGER  NOT NULL,\n    dept_name   TEXT     NOT NULL,\n    PRIMARY KEY (dept_id),\n    CONSTRAINT dept_name_unique UNIQUE (dept_name)\n);\nCREATE TABLE dept_manager (\n   dept_id      INTEGER  NOT NULL,\n   emp_id       INTEGER  NOT NULL,\n   from_date    DATE     NOT NULL,\n   to_date      DATE     NOT NULL,\n   FOREIGN KEY (emp_id)  REFERENCES employees (emp_id)    ON DELETE CASCADE,\n   FOREIGN KEY (dept_id) REFERENCES departments (dept_id) ON DELETE CASCADE,\n   PRIMARY KEY (emp_id, dept_id)\n);\nCREATE TABLE dept_emp (\n    emp_id      INTEGER  NOT NULL,\n    dept_id     INTEGER  NOT NULL,\n    from_date   DATE     NOT NULL,\n    to_date     DATE     NOT NULL,\n    FOREIGN KEY (emp_id)  REFERENCES employees   (emp_id)  ON DELETE CASCADE,\n    FOREIGN KEY (dept_id) REFERENCES departments (dept_id) ON DELETE CASCADE,\n    PRIMARY KEY (emp_id, dept_id)\n);\nCREATE TABLE titles (\n    emp_id      INTEGER  NOT NULL,\n    title       TEXT     NOT NULL,\n    from_date   DATE     NOT NULL,\n    to_date     DATE,\n    FOREIGN KEY (emp_id) REFERENCES employees (emp_id) ON DELETE CASCADE,\n    PRIMARY KEY (emp_id,title, from_date)\n);\nCREATE TABLE salaries (\n    emp_id      INTEGER         NOT NULL,\n    salary      NUMBER          NOT NULL,\n    from_date   DATE            NOT NULL,\n    to_date     DATE            NOT NULL,\n    FOREIGN KEY (emp_id) REFERENCES employees (emp_id) ON DELETE CASCADE,\n    PRIMARY KEY (emp_id, from_date)\n);\n```\n\n# test_db\n\nA sample database with an integrated test suite, used to test your applications and database servers\n\nThis repository was migrated from [Launchpad](https://launchpad.net/test-db).\n\n## Where it comes from\n\nThe original data was created by Fusheng Wang and Carlo Zaniolo at \nSiemens Corporate Research. The data is in XML format.\nhttp://timecenter.cs.aau.dk/software.htm\n\nGiuseppe Maxia made the relational schema and Patrick Crews exported\nthe data in relational format.\n\nThe database contains about 300,000 employee records with 2.8 million \nsalary entries. The export data is 167 MB, which is not huge, but\nheavy enough to be non-trivial for testing.\n\nThe data was generated, and as such there are inconsistencies and subtle\nproblems. Rather than removing them, we decided to leave the contents\nuntouched, and use these issues as data cleaning exercises.\n\n## DISCLAIMER\n\nTo the best of my knowledge, this data is fabricated and\nit does not correspond to real people. \nAny similarity to existing people is purely coincidental.\n\n## LICENSE\n\nThis work is licensed under the \nCreative Commons Attribution-Share Alike 3.0 Unported License. \nTo view a copy of this license, visit \nhttp://creativecommons.org/licenses/by-sa/3.0/ or send a letter to \nCreative Commons, 171 Second Street, Suite 300, San Francisco, \nCalifornia, 94105, USA.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiara-cc%2Femployee_db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiara-cc%2Femployee_db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiara-cc%2Femployee_db/lists"}