Everything in the wrangler.toml file is safe to commit. Unless you have sensitive environment variab
Everything in the wrangler.toml file is safe to commit. Unless you have sensitive environment variables which you should use secrets for.
last_insert_rowid() https://www.sqlite.org/c3ref/last_insert_rowid.html. That would allow you to insert one child with the parent. If you really want to insert more than one, then do the child inserts into a temporary table and delete as you move over to the real child table. I'm sure you could find an example of this on Stack Overflow. The second alternative would be to use a GUID that you generate client-side for your primary key. That doesn't take advantage of SQLite's really cool auto-increment rowid capability but that's really a nice-to-have.The AUTOINCREMENT keyword imposes extra CPU, memory, disk space, and disk I/O overhead and should be avoided if not strictly needed. It is usually not needed.
created_at column since most of tables are required to be sorted with created_at descending.PRAGMA foreign_key=off since the last time I update my table it was a nightmare

Workers with a D1 binding will always be placed in a data center near the location of the D1 database they are bound to. Subrequests to other back-end services are ignored by Smart Placement in this case.
https://developers.cloudflare.com/workers/configuration/smart-placement/#d1

