From 06089a58b22bba8f044f253defb047c990a97b58 Mon Sep 17 00:00:00 2001 From: jaakko Date: Tue, 14 Apr 2026 14:05:59 +0300 Subject: [PATCH] =?UTF-8?q?CodeBench:=20code-small=20=E2=80=94=20ForeignKe?= =?UTF-8?q?y=20importin=20tarkennus=20(sqlalchemy,=20ei=20.orm)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 8b importtaa ForeignKey väärästä paikasta (sqlalchemy.orm). Lisätty eksplisiittinen "NOT from sqlalchemy.orm!" -varoitus. --- kipina-codebench/prompts/code-small.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kipina-codebench/prompts/code-small.md b/kipina-codebench/prompts/code-small.md index 6c8bd50..f606599 100644 --- a/kipina-codebench/prompts/code-small.md +++ b/kipina-codebench/prompts/code-small.md @@ -17,7 +17,7 @@ Key patterns (copy from reference): FOREIGN KEYS (when spec has relationships): - Child entity gets parent_id field: Mapped[int] = mapped_column(ForeignKey("parents.id")) -- Import ForeignKey: from sqlalchemy import ForeignKey +- Import: from sqlalchemy import ForeignKey (NOT from sqlalchemy.orm!) - Create schema includes parent_id: int - Test creates parent FIRST, then child with parent's id