Github ERD
Github ERD
id 🔑
id 🔑
project_id ➤ PROJECT
repository_id ➤ REPOSITORY
name
creator_id ➤ USER
created_at
body
updated_at
is_deleted
number REPOSITORY ⇱
state
name
id 🔑
created_at
archived
updated_at
owner_id ➤ USER
is_deleted
ISSUE_PROJECT_HISTORY ⇱ CARD ⇱ created_at
default_branch
description
id 🔑 fork
issue_id 🔑 ➤ ISSUE forks_count
creator_id ➤ USER
project_id 🔑➤ PROJECT full_name
column_id ➤ COLUMN
updated_at 🔑 homepage
issue_id ➤ ISSUE
actor_id ➤ USER
card_id ➤ CARD
note MILESTONE ⇱ language
archived name
removed
column_name
created_at private
watchers_count
WORKFLOW ⇱
updated_at id 🔑
previous_column_name
is_deleted creator_id ➤ USER id 🔑
repository_id ➤ REPOSITORY repository_id ➤ REPOSITORY
closed_at created_at
created_at name
description path
ISSUE_COMMENT ⇱ ISSUE_MILESTONE_HISTORY ⇱ due_on state
number STARGAZERS updated_at
state
id 🔑 title
issue_id 🔑 ➤ ISSUE login🔑
issue_id ➤ ISSUE updated_at
actor_id ➤ USER repository_id 🔑➤ REPOSITORY
user_id ➤ USER is_deleted
milestone_id ➤ MILESTONE starred_at
body
updated_at 🔑
created_at
milestoned
updated_at
WORKFLOW_RUN ⇱
id 🔑
ISSUE_LABEL ⇱ ISSUE ⇱
actor ➤ USER
head_sha ➤ COMMIT
repository_id ➤ REPOSITORY
issue_id 🔑 ➤ ISSUE
LABEL ⇱ label 🔑
id 🔑
WORKFLOW_RUN_PULL_REQUEST ⇱ triggering_actor ➤ USER
workflow_id ➤ WORKFLOW
label_id 🔑 ➤ LABEL
milestone_id ➤ MILESTONE conclusion
id 🔑 repository_id ➤ REPOSITORY pull_request_id 🔑 ➤ PULL_REQUEST created_at
color user_id ➤ USER workflow_run_id 🔑 ➤ WORKFLOW_RUN event
description
is_default
ISSUE_LABEL_HISTORY ⇱ body
closed_at
head_branch
name
name created_at run_attempt
issue_id 🔑 ➤ ISSUE
url locked run_number
actor_id ➤ USER
label 🔑
number
state
REQUESTED_REVIEWER_HISTORY ⇱ run_started_at
status
label_id 🔑 ➤ LABEL updated_at
title
updated_at 🔑 updated_at created_at 🔑
labeled pull_request_id 🔑 ➤ PULL_REQUEST
requested_id 🔑 ➤ USER, TEAM
actor_id ➤ USER
requested_reviewer_type
removed
ISSUE_REFERENCED ⇱
ISSUE_ASSIGNEE ⇱ PULL_REQUEST ⇱
requested_id is a foreign key
reference to USER and TEAM.
issue_id 🔑 ➤ ISSUE
id 🔑
Which table it refers to is
referenced_at 🔑
issue_id 🔑 ➤ ISSUE
user_id 🔑 ➤ USER
actor_id ➤ USER base_sha ➤ COMMIT PULL_REQUEST_READY_FOR_REVIEW_HISTORY ⇱ captured in
requested_reviewer_type
commit_sha ➤ COMMIT base_repo_id ➤ REPOSITORY
base_user_id ➤ USER created_at 🔑
head_sha ➤ COMMIT pull_request_id 🔑 ➤ PULL_REQUEST
head_repo_id ➤ REPOSITORY actor_id ➤ USER
ISSUE_ASSIGNEE_HISTORY ⇱ ISSUE_CLOSED_HISTORY ⇱ head_user_id ➤ USER ready_for_review
issue_id ➤ ISSUE
merge_commit_sha ➤ COMMIT
issue_id 🔑 ➤ ISSUE issue_id 🔑 ➤ ISSUE active_lock_reason
user_id 🔑 ➤ USER actor_id 🔑 ➤ USER base_label
updated_at 🔑 updated_at 🔑 base_ref
assigner_id ➤ USER closed 🔑 closed_at
assigned commit_sha ➤ COMMIT created_at
draft
COMMIT_PULL_REQUEST ⇱
head_label
head_ref
⇱
updated_at commit_sha 🔑 ➤ COMMIT
ISSUE_MERGED
⇱
pull_request_id 🔑 ➤ PULL_REQUEST
ISSUE_MENTION
commit_sha 🔑 ➤ COMMIT
issue_id 🔑 ➤ ISSUE issue_id 🔑 ➤ ISSUE
user_id 🔑 ➤ USER merged_at 🔑
updated_at 🔑 actor_id ➤ USER
COMMIT ⇱ PULL_REQUEST_REVIEW_DISMISSED ⇱
PULL_REQUEST_REVIEW ⇱
ISSUE_RENAMED ⇱ sha 🔑
repository_id ➤ REPOSITORY id 🔑
ISSUE_LOCKED_HISTORY ⇱ author_email ➤ USER_EMAIL pull_request_id ➤ PULL_REQUEST
review_id 🔑 ➤ PULL_REQUEST_REVIEW
actor_id ➤ USER
issue_id 🔑 ➤ ISSUE committer_email ➤ USER_EMAIL user_id ➤ USER
updated_at 🔑 author_name dismissal_commit_sha ➤ COMMIT
issue_id 🔑 ➤ ISSUE commit_sha ➤ COMMIT
actor_id ➤ USER author_date created_at
updated_at 🔑 body
from_name committer_name dismissal_message
actor_id ➤ USER state
to_name committer_date state
locked submitted_at
message
PULL_REQUEST_REVIEW_COMMENT ⇱
COMMIT_FILE ⇱ id 🔑
pull_request_id 🔑 ➤ PULL_REQUEST
commit_sha 🔑 ➤ COMMIT USER_EMAIL ⇱ parent_comment_id ➤ PULL_REQUEST_REVIEW_COMMENT
filename 🔑 user_id ➤ USER
additions pull_request_review_id ➤ PULL_REQUEST_REVIEW
email 🔑
changes body
user_id ➤ USER
deletions created_at
name
status reaction_minus
reaction_plus
updated_at
COMMIT_PARENT ⇱
commit_sha 🔑 ➤ COMMIT USER ⇱
parent_sha 🔑 ➤ COMMIT
DEPLOYMENT ⇱
⇱
id 🔑
bio DEPLOYMENT_STATUS
id 🔑
blog
commit_sha ➤ COMMIT
company
creator_id ➤ USER
created_at id 🔑
created_at
hireable creator_id ➤ USER
description
login deployment_id ➤ DEPLOYMENT
environment
name created_at
original_environment
type description
BRANCH_COMMIT_RELATION ⇱ update_at
payload
production_environment
environment
site_admin state
ref
location updated_at
branch_name 🔑 task
commit_sha 🔑 ➤ COMMIT transient_environment
updated_at
Legend
🔑 = primary key
⇱ = external link
SECURITY_ALERT ⇱
number 🔑
repository_id 🔑 ➤ REPOSITORY
SECURITY_VULNURABILITY ⇱ dismissed_by ➤ USER
security_advisory_ghsa_id ➤ SECURITY_ADVISORY
id 🔑 vulnerability_Id ➤ SECURITY_VULNURABILITY
package_ecosystem created_at
package_name dependency_manifest_path
patched_version_identifier dependency_package_ecosystem
severity dependency_package_name
vulnerable_version_range dependency_scope
dismissed_at
dismissed_comment
dismissed_reason
fixed_at
state
updated_at
SECURITY_ADVISORY_VULNURABILITY ⇱
vulnerability_Id 🔑 ➤ SECURITY_VULNURABILITY
security_advisory_Id 🔑 ➤ SECURITY_ADVISORY
SECURITY_ADVISORY ⇱
ghsa_id 🔑
cve_id
cvss_score
SECURITY_REFERENCE ⇱
cvss_vector_string
url 🔑
description
security_advisory_ghsa_id 🔑 ➤ SECURITY_ADVISORY
published_at
severity
updated_at
withdrawn_at
SECURITY_ADVISORY_CWE ⇱ SECURITY_CWE ⇱
cwe_Id 🔑 ➤ SECURITY_CWE cwe_id 🔑
security_advisory_Id 🔑 ➤ SECURITY_ADVISORY name
Legend
🔑 = primary key
⇱ = external link