# #dt260208
# #sql
# #primarykey
# #foreignkey
# #SQLite
I had chatgpt refactor the bookbiz database schema (from PracticalSQL book 2nd ed). It added primary and foreign keys. I then had it refactor for SQLite specifically.
https://chatgpt.com/share/69894b9c-b944-8008-b758-b283987b4086
...
Highlights:
1. SQLite-Idiomatic Schema (Clean Rewrite)
Global settings (critical in SQLite)
PRAGMA foreign_keys = ON;
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;




