Skip to content

Commit 4b54323

Browse files
committed
docs: add commit_files table to the schema documentation
Signed-off-by: Manuel Carmona <[email protected]>
1 parent ea87958 commit 4b54323

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/using-gitbase/schema.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,21 @@ This table represents the relation between commits and blobs. With this table yo
150150

151151
This table represents the relation between commits and trees. With this table you can obtain all the tree entries contained on a commit object.
152152

153+
### commit_files
154+
```sql
155+
+---------------+------+
156+
| name | type |
157+
+---------------+------+
158+
| repository_id | TEXT |
159+
| commit_hash | TEXT |
160+
| file_path | TEXT |
161+
| blob_hash | TEXT |
162+
| tree_hash | TEXT |
163+
+---------------+------+
164+
```
165+
166+
This table represents the relation between commits and [files](#files). Using this table, you can obtain all the files related to a certain commit object.
167+
153168
### ref_commits
154169
```sql
155170
+---------------+-------+
@@ -250,4 +265,4 @@ blob_hash string FK >- blobs.blob_hash
250265
251266
-->
252267

253-
![gitbase schema](/docs/assets/gitbase-db-diagram.png)
268+
![gitbase schema](/docs/assets/gitbase-db-diagram.png)

0 commit comments

Comments
 (0)