# ai\_code\_commit\_files

File-level AI code metrics for each commit.

Group: ai

[All tables](/schema.md)

[View HTML reference](https://docs.getdx.com/schema/ai_code_commit_files/)

| Column | Type | Description | References |
| --- | --- | --- | --- |
| id | number | Unique identifier for the row. |  |
| ai\_code\_commit\_id | number | ID of the associated AI code commit. | [ai\_code\_commits](/schema/ai_code_commits.md) |
| file\_path | string | Path to the file within the repository. |  |
| original\_ai\_loc | number | Number of AI-generated lines originally detected in this file (before user edits). |  |
| modified\_ai\_loc | number | Number of AI-generated lines edited by the user in this file before committing. |  |
| remaining\_ai\_loc | number | Number of AI-generated lines remaining in this file (including modified lines). |  |
| unchanged\_ai\_loc | number | Number of AI-generated lines not edited by the user in this file before committing. |  |
| deleted\_ai\_loc | number | Number of AI-generated lines deleted by the user in this file before committing. |  |
| human\_additions | number | Number of lines added by human in the commit. |  |
| human\_deletions | number | Number of lines deleted by human in the commit. |  |
| ai\_additions | number | Number of lines added by AI in the commit. |  |
| ai\_deletions | number | Number of lines deleted by AI agent in the commit. |  |
| total\_lines\_in\_file | number | Total number of lines in the file. |  |
| row\_created\_at (DX internal) | date | When DX created this database row. |  |
| row\_updated\_at (DX internal) | date | When DX last updated this database row. |  |
