diff --git a/schemas/commit_comments.py b/schemas/commit_comments.py new file mode 100644 index 0000000..2e783f7 --- /dev/null +++ b/schemas/commit_comments.py @@ -0,0 +1,24 @@ +commit_comments = [{'name': 'html_url', + 'type': 'varchar'}, + {'name': 'id', + 'type': 'int'}, + {'name': 'updated_at', + 'type': 'varchar'}, + {'name': 'url', + 'type': 'varchar'}, + {'name': 'user_id', + 'type': 'int'}, + {'name': 'created_at', + 'type': 'varchar'}, + {'name': 'path', + 'type': 'varchar'}, + {'name': 'position', + 'type': 'varchar'}, + {'name': 'author_association', + 'type': 'varchar'}, + {'name': 'line', + 'type': 'varchar'}, + {'name': 'commit_id', + 'type': 'varchar'}, + {'name': 'body', + 'type': 'varchar'}] diff --git a/schemas/commits.py b/schemas/commits.py new file mode 100644 index 0000000..ddbe8f1 --- /dev/null +++ b/schemas/commits.py @@ -0,0 +1,48 @@ +commits = [{'name': 'commit_message', + 'type': 'varchar'}, + {'name': 'parents_0_sha', + 'type': 'varchar'}, + {'name': 'commit_verification_signature', + 'type': 'varchar'}, + {'name': 'commit_comment_count', + 'type': 'int'}, + {'name': 'commit_committer_email', + 'type': 'varchar'}, + {'name': 'author_id', + 'type': 'int'}, + {'name': 'commit_verification_verified', + 'type': 'boolean'}, + {'name': 'commit_author_email', + 'type': 'varchar'}, + {'name': 'commit_author_date', + 'type': 'varchar'}, + {'name': 'sha', + 'type': 'varchar'}, + {'name': 'commit_committer_date', + 'type': 'varchar'}, + {'name': 'url', + 'type': 'varchar'}, + {'name': 'comments_url', + 'type': 'varchar'}, + {'name': 'commit_url', + 'type': 'varchar'}, + {'name': 'commit_verification_reason', + 'type': 'varchar'}, + {'name': 'commit_committer_name', + 'type': 'varchar'}, + {'name': 'html_url', + 'type': 'varchar'}, + {'name': 'commit_tree_sha', + 'type': 'varchar'}, + {'name': 'commit_verification_payload', + 'type': 'varchar'}, + {'name': 'commit_tree_url', + 'type': 'varchar'}, + {'name': 'committer_id', + 'type': 'int'}, + {'name': 'commit_author_name', + 'type': 'varchar'}, + {'name': 'parents_0_url', + 'type': 'varchar'}, + {'name': 'parents_0_html_url', + 'type': 'varchar'}] diff --git a/schemas/issue_comments.py b/schemas/issue_comments.py new file mode 100644 index 0000000..1d8bdb3 --- /dev/null +++ b/schemas/issue_comments.py @@ -0,0 +1,22 @@ +issue_comments = [{'name': 'author_association', + 'type': 'varchar'}, + {'name': 'body', + 'type': 'text'}, + {'name': 'issue_url', + 'type': 'varchar'}, + {'name': 'body_html', + 'type': 'text'}, + {'name': 'created_at', + 'type': 'varchar'}, + {'name': 'id', + 'type': 'int'}, + {'name': 'url', + 'type': 'varchar'}, + {'name': 'body_text', + 'type': 'text'}, + {'name': 'updated_at', + 'type': 'varchar'}, + {'name': 'user_id', + 'type': 'int'}, + {'name': 'html_url', + 'type': 'varchar'}] diff --git a/schemas/issues.py b/schemas/issues.py new file mode 100644 index 0000000..6580bd4 --- /dev/null +++ b/schemas/issues.py @@ -0,0 +1,42 @@ +issues = [{'name': 'assignee_id', + 'type': 'varchar'}, + {'name': 'html_url', + 'type': 'varchar'}, + {'name': 'comments_url', + 'type': 'varchar'}, + {'name': 'events_url', + 'type': 'varchar'}, + {'name': 'title', + 'type': 'varchar'}, + {'name': 'user_id', + 'type': 'int'}, + {'name': 'comments', + 'type': 'int'}, + {'name': 'milestone_id', + 'type': 'varchar'}, + {'name': 'state', + 'type': 'varchar'}, + {'name': 'created_at', + 'type': 'varchar'}, + {'name': 'repository_url', + 'type': 'varchar'}, + {'name': 'body', + 'type': 'text'}, + {'name': 'locked', + 'type': 'boolean'}, + {'name': 'number', + 'type': 'int'}, + {'name': 'url', + 'type': 'varchar'}, + {'name': 'id', + 'type': 'int'}, + {'name': 'author_association', + 'type': 'varchar'}, + {'name': 'updated_at', + 'type': 'varchar'}, + {'name': 'labels_url', + 'type': 'varchar'}, + {'name': 'closed_by_id', + 'type': 'varchar'}, + {'name': 'closed_at', + 'type': 'varchar'}] diff --git a/schemas/members.py b/schemas/members.py new file mode 100644 index 0000000..187d12f --- /dev/null +++ b/schemas/members.py @@ -0,0 +1,60 @@ +members = [{'name': 'name', + 'type': 'varchar'}, + {'name': 'login', + 'type': 'varchar'}, + {'name': 'organizations_url', + 'type': 'varchar'}, + {'name': 'created_at', + 'type': 'varchar'}, + {'name': 'followers_url', + 'type': 'varchar'}, + {'name': 'avatar_url', + 'type': 'varchar'}, + {'name': 'email', + 'type': 'varchar'}, + {'name': 'starred_url', + 'type': 'varchar'}, + {'name': 'blog', + 'type': 'varchar'}, + {'name': 'followers', + 'type': 'int'}, + {'name': 'repos_url', + 'type': 'varchar'}, + {'name': 'location', + 'type': 'varchar'}, + {'name': 'received_events_url', + 'type': 'varchar'}, + {'name': 'bio', + 'type': 'varchar'}, + {'name': 'events_url', + 'type': 'varchar'}, + {'name': 'following_url', + 'type': 'varchar'}, + {'name': 'company', + 'type': 'varchar'}, + {'name': 'gravatar_id', + 'type': 'varchar'}, + {'name': 'public_gists', + 'type': 'int'}, + {'name': 'hireable', + 'type': 'varchar'}, + {'name': 'html_url', + 'type': 'varchar'}, + {'name': 'site_admin', + 'type': 'boolean'}, + {'name': 'url', + 'type': 'varchar'}, + {'name': 'following', + 'type': 'int'}, + {'name': 'id', + 'type': 'int'}, + {'name': 'public_repos', + 'type': 'int'}, + {'name': 'type', + 'type': 'varchar'}, + {'name': 'gists_url', + 'type': 'varchar'}, + {'name': 'updated_at', + 'type': 'varchar'}, + {'name': 'subscriptions_url', + 'type': 'varchar'}] diff --git a/schemas/pull_requests.py b/schemas/pull_requests.py new file mode 100644 index 0000000..9158861 --- /dev/null +++ b/schemas/pull_requests.py @@ -0,0 +1,70 @@ +pull_requests = [{'name': 'url', + 'type': 'varchar'}, + {'name': 'locked', + 'type': 'boolean'}, + {'name': 'html_url', + 'type': 'varchar'}, + {'name': 'title', + 'type': 'varchar'}, + {'name': 'issue_url', + 'type': 'varchar'}, + {'name': 'merged_at', + 'type': 'varchar'}, + {'name': 'patch_url', + 'type': 'varchar'}, + {'name': 'number', + 'type': 'int'}, + {'name': 'statuses_url', + 'type': 'varchar'}, + {'name': 'author_association', + 'type': 'varchar'}, + {'name': '_links_html_href', + 'type': 'varchar'}, + {'name': 'created_at', + 'type': 'varchar'}, + {'name': 'review_comments_url', + 'type': 'varchar'}, + {'name': '_links_issue_href', + 'type': 'varchar'}, + {'name': '_links_comments_href', + 'type': 'varchar'}, + {'name': '_links_statuses_href', + 'type': 'varchar'}, + {'name': 'diff_url', + 'type': 'varchar'}, + {'name': 'state', + 'type': 'varchar'}, + {'name': 'base_label', + 'type': 'varchar'}, + {'name': 'commits_url', + 'type': 'varchar'}, + {'name': 'closed_at', + 'type': 'varchar'}, + {'name': 'assignee', + 'type': 'varchar'}, + {'name': '_links_self_href', + 'type': 'varchar'}, + {'name': 'updated_at', + 'type': 'varchar'}, + {'name': 'comments_url', + 'type': 'varchar'}, + {'name': '_links_review_comments_href', + 'type': 'varchar'}, + {'name': 'milestone', + 'type': 'varchar'}, + {'name': 'review_comment_url', + 'type': 'varchar'}, + {'name': 'id', + 'type': 'int'}, + {'name': '_links_commits_href', + 'type': 'varchar'}, + {'name': 'user_id', + 'type': 'int'}, + {'name': 'merge_commit_sha', + 'type': 'varchar'}, + {'name': 'head_label', + 'type': 'varchar'}, + {'name': '_links_review_comment_href', + 'type': 'varchar'}, + {'name': 'body', + 'type': 'text'}] diff --git a/schemas/repositories.py b/schemas/repositories.py new file mode 100644 index 0000000..ba4b27d --- /dev/null +++ b/schemas/repositories.py @@ -0,0 +1,146 @@ +repositories = [{'name': 'mirror_url', + 'type': 'varchar'}, + {'name': 'comments_url', + 'type': 'varchar'}, + {'name': 'svn_url', + 'type': 'varchar'}, + {'name': 'subscribers_url', + 'type': 'varchar'}, + {'name': 'open_issues_count', + 'type': 'int'}, + {'name': 'git_url', + 'type': 'varchar'}, + {'name': 'description', + 'type': 'varchar'}, + {'name': 'hooks_url', + 'type': 'varchar'}, + {'name': 'issues_url', + 'type': 'varchar'}, + {'name': 'git_commits_url', + 'type': 'varchar'}, + {'name': 'teams_url', + 'type': 'varchar'}, + {'name': 'notifications_url', + 'type': 'varchar'}, + {'name': 'git_refs_url', + 'type': 'varchar'}, + {'name': 'fork', + 'type': 'boolean'}, + {'name': 'open_issues', + 'type': 'int'}, + {'name': 'created_at', + 'type': 'varchar'}, + {'name': 'commits_url', + 'type': 'varchar'}, + {'name': 'downloads_url', + 'type': 'varchar'}, + {'name': 'full_name', + 'type': 'varchar'}, + {'name': 'archived', + 'type': 'boolean'}, + {'name': 'milestones_url', + 'type': 'varchar'}, + {'name': 'collaborators_url', + 'type': 'varchar'}, + {'name': 'permissions_admin', + 'type': 'boolean'}, + {'name': 'stargazers_url', + 'type': 'varchar'}, + {'name': 'forks', + 'type': 'int'}, + {'name': 'ssh_url', + 'type': 'varchar'}, + {'name': 'permissions_push', + 'type': 'boolean'}, + {'name': 'id', + 'type': 'int'}, + {'name': 'forks_url', + 'type': 'varchar'}, + {'name': 'owner_id', + 'type': 'int'}, + {'name': 'private', + 'type': 'boolean'}, + {'name': 'contents_url', + 'type': 'varchar'}, + {'name': 'deployments_url', + 'type': 'varchar'}, + {'name': 'name', + 'type': 'varchar'}, + {'name': 'subscription_url', + 'type': 'varchar'}, + {'name': 'updated_at', + 'type': 'varchar'}, + {'name': 'assignees_url', + 'type': 'varchar'}, + {'name': 'default_branch', + 'type': 'varchar'}, + {'name': 'merges_url', + 'type': 'varchar'}, + {'name': 'pushed_at', + 'type': 'varchar'}, + {'name': 'has_downloads', + 'type': 'boolean'}, + {'name': 'blobs_url', + 'type': 'varchar'}, + {'name': 'clone_url', + 'type': 'varchar'}, + {'name': 'archive_url', + 'type': 'varchar'}, + {'name': 'stargazers_count', + 'type': 'int'}, + {'name': 'trees_url', + 'type': 'varchar'}, + {'name': 'labels_url', + 'type': 'varchar'}, + {'name': 'releases_url', + 'type': 'varchar'}, + {'name': 'homepage', + 'type': 'varchar'}, + {'name': 'has_pages', + 'type': 'boolean'}, + {'name': 'watchers', + 'type': 'int'}, + {'name': 'has_projects', + 'type': 'boolean'}, + {'name': 'permissions_pull', + 'type': 'boolean'}, + {'name': 'forks_count', + 'type': 'int'}, + {'name': 'git_tags_url', + 'type': 'varchar'}, + {'name': 'compare_url', + 'type': 'varchar'}, + {'name': 'size', + 'type': 'int'}, + {'name': 'tags_url', + 'type': 'varchar'}, + {'name': 'statuses_url', + 'type': 'varchar'}, + {'name': 'html_url', + 'type': 'varchar'}, + {'name': 'url', + 'type': 'varchar'}, + {'name': 'language', + 'type': 'varchar'}, + {'name': 'has_issues', + 'type': 'boolean'}, + {'name': 'contributors_url', + 'type': 'varchar'}, + {'name': 'issue_events_url', + 'type': 'varchar'}, + {'name': 'keys_url', + 'type': 'varchar'}, + {'name': 'events_url', + 'type': 'varchar'}, + {'name': 'pulls_url', + 'type': 'varchar'}, + {'name': 'languages_url', + 'type': 'varchar'}, + {'name': 'issue_comment_url', + 'type': 'varchar'}, + {'name': 'has_wiki', + 'type': 'boolean'}, + {'name': 'watchers_count', + 'type': 'int'}, + {'name': 'branches_url', + 'type': 'varchar'}]