-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.libraries_io.projects_with_repository_fields`
(
  id INT64 OPTIONS(description="The unique primary key of the project in the Libraries.io database."),
  platform STRING OPTIONS(description="The name of the Package manager the project is available on."),
  name STRING OPTIONS(description="The name of the project, unique by Platform (case sensitive)."),
  created_timestamp TIMESTAMP OPTIONS(description="The timestamp of when Libraries.io first discovered the project."),
  updated_timestamp TIMESTAMP OPTIONS(description="The timestamp of when Libraries.io last saved a change to the project."),
  description STRING OPTIONS(description="Description provided by the package manager, falling back to description from repository if empty."),
  keywords STRING OPTIONS(description="Comma separated array of keywords if supported by package manager."),
  homepage_url STRING OPTIONS(description="URL of webpage or repository as provided by package managers that support it."),
  licenses STRING OPTIONS(description="Comma separated array of SPDX identifiers for licenses declared in package manager meta data or submitted manually by Libraries.io user via \"project suggection\" feature."),
  repository_url STRING OPTIONS(description="URL of source code repository declared in package manager metadata or submitted manually by Libraries.io user via \"project suggection\" feature."),
  versions_count INT64 OPTIONS(description="Number of published versions of the project found by Libraries.io."),
  sourcerank INT64 OPTIONS(description="Libraries.io defined score based on quality, popularity and community metrics."),
  latest_release_publish_timestamp TIMESTAMP OPTIONS(description="Time of the latest release detected by Libraries.io (ordered by semver, falling back to publish date for invalid semver)."),
  latest_release_number STRING OPTIONS(description="Version number of the latest release detected by Libraries.io (ordered by semver, falling back to publish date for invalid semver)."),
  package_manager_id INT64 OPTIONS(description="Unique ID of project from package manager API, only currently used by PlatformIO."),
  dependent_projects_count INT64 OPTIONS(description="Number of other projects that declare the project as a dependency in one or more of their versions."),
  language STRING OPTIONS(description="Primary programming language the project is written in, pulled from the repository if source is hosted on GitHub."),
  status STRING OPTIONS(description="Either Active, Deprecated, Unmaintained, Help Wanted, Removed, no value also means active. Updated when detected by Libraries.io or submitted manually by Libraries.io user via \"project suggection\" feature."),
  last_synced_timestamp TIMESTAMP OPTIONS(description="Timestamp of when Libraries.io last synced the project from it's package manager API."),
  dependent_repositories_count INT64 OPTIONS(description="The total count of open source repositories that list the project as a dependency as detected by Libraries.io."),
  repository_id INT64 OPTIONS(description="The unique primary key of the repository for this project in the Libraries.io database."),
  repository_host_type STRING OPTIONS(description="Which website the repository is hosted on, either GitHub, GitLab or Bitbucket."),
  repository_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."),
  repository_description STRING OPTIONS(description="Description of repository."),
  repository_fork BOOL OPTIONS(description="Is the repository a fork of another."),
  repository_created_timestamp TIMESTAMP OPTIONS(description="Timestamp of when the repository was created on the host."),
  repository_updated_timestamp TIMESTAMP OPTIONS(description="Timestamp of when the repository was last saved by Libraries.io."),
  repository_last_pushed_timestamp TIMESTAMP OPTIONS(description="Timestamp of when the repository was last pushed to, only available for GitHub repositories."),
  repository_homepage_url STRING OPTIONS(description="URL of a declared homepage or other website for the repository."),
  repository_size INT64 OPTIONS(description="Size of the repository in kilobytes, only available for GitHub and Bitbucket."),
  repository_stars_count INT64 OPTIONS(description="Number of stars on the repository, only available for GitHub and GitLab."),
  repository_language STRING OPTIONS(description="Primary programming language the project is written in, only available for GitHub and Bitbucket."),
  repository_issues_enabled BOOL OPTIONS(description="Is the bug tracker enabled for this repository?."),
  repository_wiki_enabled BOOL OPTIONS(description="Is the wiki enabled for this repository?."),
  repository_pages_enabled BOOL OPTIONS(description="Is GitHub pages enabled for this repository? only possible for GitHub."),
  repository_forks_count INT64 OPTIONS(description="Number of forks of this repository."),
  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."),
  repository_open_issues_count INT64 OPTIONS(description="Number of open issues on the repository bug tracker, only available for GitHub and GitLab."),
  repository_default_branch STRING OPTIONS(description="Primary branch of the repository."),
  repository_watchers_count INT64 OPTIONS(description="Number of subscribers to all notifications for the repository, only available for GitHub and Bitbucket."),
  repository_uuid STRING OPTIONS(description="ID of the repository on the remote host, not unique between GitLab and GitHub repositories."),
  repository_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."),
  repository_license STRING OPTIONS(description="SPDX identifier of the license of the repository, only available for GitHub repositories."),
  repository_contributors_count INT64 OPTIONS(description="Number of unique contributors that have committed to the default branch."),
  repository_readme_filename STRING OPTIONS(description="If a readme file has been detected, the full name of the readme file, e.g README.md."),
  repository_changelog_filename STRING OPTIONS(description="If a changelog file has been detected, the full name of the changelog file, e.g changelog.txt."),
  repository_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."),
  repository_license_filename STRING OPTIONS(description="If a license file has been detected, the full name of the license file, e.g LICENSE."),
  repository_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."),
  repository_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."),
  repository_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."),
  repository_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."),
  repository_last_synced_timestamp STRING OPTIONS(description="Timestamp of when Libraries.io last synced the repository from the host API."),
  repository_sourcerank INT64 OPTIONS(description="Libraries.io defined score based on quality, popularity and community metrics."),
  repository_display_name STRING OPTIONS(description="Display name for the repository, only available for GitLab repositories."),
  repository_scm_type STRING OPTIONS(description="Type of source control repository uses, always \"git\" for GitHub and GitLab."),
  repository_pull_requests_enabled STRING OPTIONS(description="Are pull requests enabled for this repository? Only available for GitLab repositories."),
  repository_logo_url STRING OPTIONS(description="Custom logo url for repository, only available for GitLab repositories."),
  repository_keywords STRING OPTIONS(description="Comma separated array of keywords, called \"topics\" on GitHub, only available for GitHub and GitLab."),
  bh STRING OPTIONS(description="")
);

INSERT INTO `bigquery-public-data.libraries_io.projects_with_repository_fields` (id, platform, name, created_timestamp, updated_timestamp, description, keywords, homepage_url, licenses, repository_url, versions_count, sourcerank, latest_release_publish_timestamp, latest_release_number, package_manager_id, dependent_projects_count, language, status, last_synced_timestamp, dependent_repositories_count, repository_id, repository_host_type, repository_name_with_owner, repository_description, repository_fork, repository_created_timestamp, repository_updated_timestamp, repository_last_pushed_timestamp, repository_homepage_url, repository_size, repository_stars_count, repository_language, repository_issues_enabled, repository_wiki_enabled, repository_pages_enabled, repository_forks_count, repository_mirror_url, repository_open_issues_count, repository_default_branch, repository_watchers_count, repository_uuid, repository_fork_source_name_with_owner, repository_license, repository_contributors_count, repository_readme_filename, repository_changelog_filename, repository_contributing_guidelines_filename, repository_license_filename, repository_code_of_conduct_filename, repository_security_threat_model_filename, repository_security_audit_filename, repository_status, repository_last_synced_timestamp, repository_sourcerank, repository_display_name, repository_scm_type, repository_pull_requests_enabled, repository_logo_url, repository_keywords, bh) VALUES (441543, 'Go', 'code.google.com/p/weed-fs/go/weed/weed_server', '2015-02-13 17:25:32+00:00', '2017-10-24 12:26:54+00:00', '', '', 'https://code.google.com/p/weed-fs/', '', 'https://code.google.com/p/weed-fs/go/weed/weed_server', 0, 2, '2017-10-24 12:26:42+00:00', '', NULL, 0, '', '', '2017-10-24 12:26:52+00:00', 0, NULL, '', '', '', NULL, 'NaT', 'NaT', 'NaT', '', NULL, NULL, '', NULL, NULL, NULL, NULL, '', NULL, '', NULL, '', '', '', NULL, '', '', '', '', '', '', '', '', '', NULL, '', '', '', '', '', ''), (2066201, 'Go', 'github.com/rogpeppe/juju/utils/syslog/testing', '2016-12-20 07:11:01+00:00', '2017-02-16 14:39:26+00:00', '', '', 'https://github.com/rogpeppe/juju', '', 'https://github.com/rogpeppe/juju/utils/syslog/testing', 0, 0, '2016-12-20 07:11:01+00:00', '', NULL, 0, '', '', '2016-12-20 07:11:06+00:00', 0, NULL, '', '', '', NULL, 'NaT', 'NaT', 'NaT', '', NULL, NULL, '', NULL, NULL, NULL, NULL, '', NULL, '', NULL, '', '', '', NULL, '', '', '', '', '', '', '', '', '', NULL, '', '', '', '', '', ''), (438069, 'Go', 'camlistore.org/pkg/importer/feed/atom', '2015-02-13 17:15:36+00:00', '2017-10-24 12:22:44+00:00', 'Package atom defines XML data structures for an Atom feed.', '', 'https://camlistore.org', '', 'https://camlistore.org/pkg/importer/feed/atom', 0, 2, '2017-10-24 12:22:44+00:00', '', NULL, 0, '', '', '2017-10-24 12:22:44+00:00', 0, NULL, '', '', '', NULL, 'NaT', 'NaT', 'NaT', '', NULL, NULL, '', NULL, NULL, NULL, NULL, '', NULL, '', NULL, '', '', '', NULL, '', '', '', '', '', '', '', '', '', NULL, '', '', '', '', '', ''), (713439, 'Go', 'azul3d.org/website/mdattr/mdattr/content/pages/templates/pages/pages/content', '2015-03-14 05:03:11+00:00', '2017-04-06 18:11:32+00:00', '', '', 'https://azul3d.org/website/mdattr/mdattr/content/pages/templates/pages/pages/content', '', 'https://azul3d.org/website/mdattr/mdattr/content/pages/templates/pages/pages/content', 0, 2, '2017-03-09 18:07:26+00:00', '', NULL, 0, '', '', 'NaT', 0, NULL, '', '', '', NULL, 'NaT', 'NaT', 'NaT', '', NULL, NULL, '', NULL, NULL, NULL, NULL, '', NULL, '', NULL, '', '', '', NULL, '', '', '', '', '', '', '', '', '', NULL, '', '', '', '', '', ''), (893415, 'Go', 'azul3d.org/website/mdattr/mdattr/content/pages/content/content/mdattr/pages/pages/pages/content/templates/content/templates/pages/pages/pages/content/mdattr/templates/templates', '2015-07-15 05:07:34+00:00', '2017-04-06 20:09:37+00:00', '', '', 'https://azul3d.org/website/mdattr/mdattr/content/pages/content/content/mdattr/pages/pages/pages/content/templates/content/templates/pages/pages/pages/content/mdattr/templates/templates', '', 'https://azul3d.org/website/mdattr/mdattr/content/pages/content/content/mdattr/pages/pages/pages/content/templates/content/templates/pages/pages/pages/content/mdattr/templates/templates', 0, 2, '2017-03-14 10:10:56+00:00', '', NULL, 0, '', '', 'NaT', 0, NULL, '', '', '', NULL, 'NaT', 'NaT', 'NaT', '', NULL, NULL, '', NULL, NULL, NULL, NULL, '', NULL, '', NULL, '', '', '', NULL, '', '', '', '', '', '', '', '', '', NULL, '', '', '', '', '', '');