Skip to content

EVA-126: knowledge relations table + RelationType ADT#119

Merged
suzil merged 1 commit into
mainfrom
susannahjd/eva-126-knowledge-relations-table-relationtype-adt
Mar 2, 2026
Merged

EVA-126: knowledge relations table + RelationType ADT#119
suzil merged 1 commit into
mainfrom
susannahjd/eva-126-knowledge-relations-table-relationtype-adt

Conversation

@suzil

@suzil suzil commented Mar 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds KnowledgeRelationId, RelationType (8 variants: PartOf, DependsOn, References, SimilarTo, DerivedFrom, Implements, Tests, Documents), and KnowledgeRelation record to Eva.Knowledge.Types
  • RelationType serializes to snake_case via a local camelToSnake modifier (part_of, depends_on, etc.)
  • Creates knowledge_relations table via rawExecute in Eva.Persistence.Migration with UNIQUE constraint on (source_id, target_id, relation_type), 3 indexes, and a cascade-delete trigger on knowledge_entries

Test plan

  • cabal build passes with no new errors

Closes EVA-126

Made with Cursor

Adds KnowledgeRelationId, RelationType (8 variants snake_case), and
KnowledgeRelation record to Eva.Knowledge.Types. Creates knowledge_relations
table via rawExecute in Migration with 3 indexes and a cascade-delete trigger.

Made-with: Cursor
@suzil suzil merged commit 6516df2 into main Mar 2, 2026
2 of 4 checks passed
@suzil suzil deleted the susannahjd/eva-126-knowledge-relations-table-relationtype-adt branch March 2, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant