Seed ไฟล์ตัวอย่างแบบ idempotent sync กับ public/samples/

- scripts/seed-samples.mjs: INSERT ไฟล์ที่ยังไม่มี row + DELETE row ที่ไฟล์หาย
  (CASCADE ลบ annotation ตาม) — แทน SQL seed มือเดิมใน README
- รันอัตโนมัติตอน container start ต่อจาก migrate + npm run seed-samples บนเครื่อง dev
- สลับไฟล์ sample เป็นคำสั่งศาล 2 ฉบับ

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-09-10 18:01:25 +07:00
parent ec26d79f0e
commit 79c9e2cc41
7 changed files with 47 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.