Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions backend/python/pydevlake/pydevlake/domain_layer/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class PullRequest(DomainModel, table=True):
class PullRequestLabels(NoPKModel, table=True):
__tablename__ = 'pull_request_labels'
pull_request_id: str = Field(primary_key=True)
label_name: str
label_name: str = Field(primary_key=True)


class PullRequestCommit(NoPKModel, table=True):
Expand Down Expand Up @@ -94,7 +94,7 @@ class Commit(NoPKModel, table=True):
class CommitParent(NoPKModel, table=True):
__tablename__ = 'commit_parents'
commit_sha: str = Field(primary_key=True)
parent_commit_sha: str
parent_commit_sha: str = Field(primary_key=True)


class CommitsDiff(DomainModel, table=True):
Expand All @@ -112,6 +112,7 @@ class RefCommit(NoPKModel, table=True):
new_commit_sha: str
old_commit_sha: str


class Component(NoPKModel, table=True):
__tablename__ = 'components'
repo_id: str
Expand Down