Commit 5f3f9a2
feat: add SQLModel support for Message Implementation Guides (MIG)
Add SQL model classes for MIGs mirroring the existing AHB SQLModel
implementation patterns:
- MigCode, MigDataElement, MigDataElementGroup, MigSegment,
MigSegmentGroup, MigSegmentGroupLink, MessageImplementationGuide
- from_model() and to_model() conversion methods
- Position fields for stable list ordering
- Self-referential SegmentGroup relationship via link table
- SQL-only fields: gueltig_von, gueltig_bis, edifact_format_version
Includes roundtrip tests verifying XML -> Pydantic -> SQL -> Pydantic
equality for all example MIG files.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 73cb0cd commit 5f3f9a2
File tree
3 files changed
+532
-0
lines changed- src/fundamend/sqlmodels
- unittests
3 files changed
+532
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
| |||
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
49 | 65 | | |
0 commit comments