I tried googling but I can't find it
I tried googling but I can't find it


Accounts is the main table with foreign key in all other tables, so when a customer delete an account it freeze everything. Any suggestions?
EXPLAIN QUERY PLAN on all tablesPRAGMA index_list('TableName'); and when I did a simple query on the table with EXPLAIN QUERY PLAN select * from TableName where UserId = 'abc' it reported use of SCAN (full table scan). So I think that confirms to me that the FK indexes are not created automatically. Thank you for highlighting this, as I'll need to revisit the schema's for my SQLite apps.
D1_ERROR: D1 storage operation exceeded timeout which caused the object to be reset.authRequests table is empty 99% of the time, or occasionally contains just a few rows (<20). Could this be an issue on Cloudflare's side?createdAt column definition:D1_ERROR: D1 storage operation exceeded timeout which caused the object to be reset.authRequestsawait db
.delete(schema.authRequests)
.where(
lte(
schema.authRequests.createdAt,
dateToUnixepoch(subMinutes(new Date(), 3)),
),
); createdAt: integer("created_at")
.default(sql`(unixepoch())`)
.notNull()