-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.libraries_io.repositories`
(
  id INT64 OPTIONS(description="he unique primary key of the repository in the Libraries.io database."),
  host_type STRING OPTIONS(description="Which website the repository is hosted on either GitHub GitLab or Bitbucket."),
  name_with_owner STRING OPTIONS(description="The repository name and owner seperated by a slash also maps to the url slug on the given repository host e.g. librariesio/libraries.io."),
  description STRING OPTIONS(description="Description of repository."),
  fork BOOL OPTIONS(description="Is the repository a fork of another."),
  created_timestamp TIMESTAMP OPTIONS(description="Timestamp of when the repository was created on the host."),
  updated_timestamp TIMESTAMP OPTIONS(description="Timestamp of when the repository was last saved by Libraries.io."),
  last_pushed_timestamp TIMESTAMP OPTIONS(description="Timestamp of when the repository was last pushed to only available for GitHub repositories."),
  homepage_url STRING OPTIONS(description="URL of a declared homepage or other website for the repository."),
  size INT64 OPTIONS(description="Size of the repository in kilobytes only available for GitHub and Bitbucket."),
  stars_count INT64 OPTIONS(description="Number of stars on the repository only available for GitHub and GitLab."),
  language STRING OPTIONS(description="Primary programming language the project is written in only available for GitHub and Bitbucket."),
  issues_enabled BOOL OPTIONS(description="Is the bug tracker enabled for this repository?."),
  wiki_enabled BOOL OPTIONS(description="Is the wiki enabled for this repository?."),
  pages_enabled BOOL OPTIONS(description="Is GitHub pages enabled for this repository? only possible for GitHub."),
  forks_count INT64 OPTIONS(description="Number of forks of this repository."),
  mirror_url STRING OPTIONS(description="URL of the repositroy of which this is a mirror of only present if this repository is a mirror of another."),
  open_issues_count INT64 OPTIONS(description="Number of open issues on the repository bug tracker only available for GitHub and GitLab."),
  default_branch STRING OPTIONS(description="Primary branch of the repository."),
  watchers_count INT64 OPTIONS(description="Number of subscribers to all notifications for the repository only available for GitHub and Bitbucket."),
  uuid STRING OPTIONS(description="ID of the repository on the remote host not unique between GitLab and GitHub repositories."),
  fork_source_name_with_owner STRING OPTIONS(description="If the repository is a fork the repository name and owner seperated by a slash of the repository if was forked from."),
  license STRING OPTIONS(description="SPDX identifier of the license of the repository only available for GitHub repositories."),
  contributors_count INT64 OPTIONS(description="Number of unique contributors that have committed to the default branch."),
  readme_filename STRING OPTIONS(description="If a readme file has been detected the full name of the readme file e.g README.md."),
  changelog_filename STRING OPTIONS(description="If a changelog file has been detected the full name of the changelog file e.g changelog.txt."),
  contributing_guidelines_filename STRING OPTIONS(description="If a contributing guidelines file has been detected the full name of the contributing guidelines file e.g contributing.md."),
  license_filename STRING OPTIONS(description="If a license file has been detected the full name of the license file e.g LICENSE."),
  code_of_conduct_filename STRING OPTIONS(description="If a code of conduct file has been detected the full name of the code of conduct file e.g code_of_conduct.md."),
  security_threat_model_filename STRING OPTIONS(description="If a Security Threat Model file has been detected the full name of the Security Threat Model file e.g threatmodel.md."),
  security_audit_filename STRING OPTIONS(description="If a Security Audit file has been detected the full name of the Security Audit file e.g security.md."),
  status STRING OPTIONS(description="Either Active Deprecated Unmaintained Help Wanted Removed no value also means active. Updated when detected by Libraries.io or su. manually by Libraries.io user via \"repo suggection\" feature."),
  last_synced_timestamp TIMESTAMP OPTIONS(description="Timestamp of when Libraries.io last synced the repository from the host API."),
  sourcerank INT64 OPTIONS(description="Libraries.io defined score based on quality popularity and community metrics."),
  display_name STRING OPTIONS(description="Display name for the repository only available for GitLab repositories."),
  scm_type STRING OPTIONS(description="Type of source control repository uses always \"git\" for GitHub and GitLab."),
  pull_requests_enabled STRING OPTIONS(description="Are pull requests enabled for this repository? Only available for GitLab repositories."),
  logo_url STRING OPTIONS(description="Custom logo url for repository only available for GitLab repositories."),
  keywords STRING OPTIONS(description="Comma separated array of keywords called \"topics\" on GitHub only available for GitHub and GitLab."),
  an STRING OPTIONS(description="")
);

INSERT INTO `bigquery-public-data.libraries_io.repositories` (id, host_type, name_with_owner, description, fork, created_timestamp, updated_timestamp, last_pushed_timestamp, homepage_url, size, stars_count, language, issues_enabled, wiki_enabled, pages_enabled, forks_count, mirror_url, open_issues_count, default_branch, watchers_count, uuid, fork_source_name_with_owner, license, contributors_count, readme_filename, changelog_filename, contributing_guidelines_filename, license_filename, code_of_conduct_filename, security_threat_model_filename, security_audit_filename, status, last_synced_timestamp, sourcerank, display_name, scm_type, pull_requests_enabled, logo_url, keywords, an) VALUES (29309201, 'GitHub', 'PeaceGoose/Choose', NULL, False, '2017-09-28 23:46:38+00:00', '2017-10-13 00:37:35+00:00', '2017-09-29 00:20:24+00:00', NULL, 5423, 0, 'HTML', True, True, True, 0, NULL, 0, 'master', 0, '105209643', NULL, NULL, 1, 'README.md', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-10-13 00:37:35+00:00', 2, 'GitHub', NULL, 'git', NULL, NULL, NULL), (29309340, 'GitHub', 'dineshbalani/dinesh-b.github.io', NULL, False, '2017-10-13 00:41:41+00:00', '2017-10-13 00:41:41+00:00', '2017-10-13 00:41:42+00:00', NULL, 0, 0, NULL, True, True, False, 0, NULL, 0, 'master', 0, '106759743', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-10-13 00:41:54+00:00', 1, 'GitHub', NULL, 'git', NULL, NULL, NULL), (29309389, 'GitHub', 'johnhaldeman/OscarTriviaDiscordBot', 'A Discord Bot for Playing the Game "Password" with a Both Focusing on Oscar Trivia', False, '2017-10-13 00:43:24+00:00', '2017-10-13 00:43:33+00:00', '2017-10-13 00:43:25+00:00', NULL, 0, 0, NULL, True, True, False, 0, NULL, 0, 'master', 1, '106759837', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-10-13 00:43:33+00:00', 1, 'GitHub', NULL, 'git', NULL, NULL, NULL), (29309466, 'GitHub', 'ferasfakhry/FrequencySweep', NULL, False, '2017-10-13 00:45:59+00:00', '2017-10-13 00:46:31+00:00', '2017-10-13 00:46:00+00:00', NULL, 0, 0, NULL, True, True, False, 0, NULL, 0, 'master', 0, '106760022', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-10-13 00:46:31+00:00', 1, 'GitHub', NULL, 'git', NULL, NULL, NULL), (29309572, 'GitHub', 'ptariche/rust-rocket-mongo-example', NULL, False, '2017-10-13 00:50:17+00:00', '2017-10-13 00:50:26+00:00', '2017-10-13 00:50:17+00:00', NULL, 0, 0, NULL, True, True, False, 0, NULL, 0, 'master', 1, '106760291', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-10-13 00:50:26+00:00', 1, 'GitHub', NULL, 'git', NULL, NULL, NULL);