generated from wiz4apps/templates.OnlineShop
🗄️ Database & forms — todos table, migration, seed #3
Labels
No labels
High Priority
Low Priority
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: SemianiakaVY/todo-list#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal — give the app a real, migrating database table for tasks so the data survives a restart.
Owner — Code Expert (
w4c-code).Deliverables
todostable perSPEC.md§4:id(PK),title(text, not null),done(boolean, default false),createdAt(timestamp, default now), index on(done, createdAt).pnpm migrate,pnpm seed), wired toDATABASE_URL(defaultfile:./data/todos.db).node:22-bookworm-slimwithout adding a native toolchain (prefer prebuilt binaries, e.g.better-sqlite3or@libsql/client).data/git-ignored;.env.exampledocumentsDATABASE_URL.Acceptance (commands)
pnpm install && pnpm migrate && pnpm seed→ exit 0; runpnpm seedtwice → row count unchanged.Ref —
docs/PLAN.md§4,SPEC.md§4/§6,/db-formsis NOT used (reason:docs/PLAN.md§4).