Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions docs/schema/public.spec_documents.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
| uq_spec_documents_user_analysis_lang_version | CREATE UNIQUE INDEX uq_spec_documents_user_analysis_lang_version ON public.spec_documents USING btree (user_id, analysis_id, language, version) |
| uq_spec_documents_user_hash_lang_model_version | CREATE UNIQUE INDEX uq_spec_documents_user_hash_lang_model_version ON public.spec_documents USING btree (user_id, content_hash, language, model_id, version) |
| idx_spec_documents_user_created | CREATE INDEX idx_spec_documents_user_created ON public.spec_documents USING btree (user_id, created_at) |
| idx_spec_documents_content_hash_lang_model | CREATE INDEX idx_spec_documents_content_hash_lang_model ON public.spec_documents USING btree (content_hash, language, model_id) |

## Relations

Expand Down
6 changes: 6 additions & 0 deletions docs/schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,12 @@
"def": "CREATE INDEX idx_spec_documents_user_created ON public.spec_documents USING btree (user_id, created_at)",
"table": "public.spec_documents",
"columns": ["user_id", "created_at"]
},
{
"name": "idx_spec_documents_content_hash_lang_model",
"def": "CREATE INDEX idx_spec_documents_content_hash_lang_model ON public.spec_documents USING btree (content_hash, language, model_id)",
"table": "public.spec_documents",
"columns": ["content_hash", "language", "model_id"]
}
],
"constraints": [
Expand Down