Skip to content

Commit ec1196f

Browse files
hf-kkleinKonstantin
andauthored
perf: add foreign key (Anwendungshandbuch) to ahb_expressions table (#213)
Co-authored-by: Konstantin <konstantin.klein+github@hochfrequenz.de>
1 parent d2b183f commit ec1196f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/fundamend/sqlmodels/expression_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,4 @@ class AhbExpression(SQLModel, table=True):
248248
respective Expression (e.g. for expression "Muss [1] U [2]")
249249
"""
250250
ahbicht_error_message: str | None = Field(default=None)
251-
anwendungshandbuch_primary_key: uuid.UUID = Field()
251+
anwendungshandbuch_primary_key: uuid.UUID = Field(foreign_key="anwendungshandbuch.primary_key")

0 commit comments

Comments
 (0)