
wrangler d1 execute DB --local --command "select * from company" return?
status text NOT NULL DEFAULT 'active' assuming that the status would default to active but it's not working, I could swear this worked in the past but I'm having issues right now
insert licenses (id) values (1); while the dash ui is trying to run this:SELECT * from test WHERE id=100 returns "rows_read": 1 from 150-row table at this moment.EXPLAIN QUERY PLAN, you'll see that your index on id results in SEARCH being used which is only scanning a subset of tables, whereas other keys will show SCAN which is a full table scan.
CREATE TABLE IF NOT EXISTS licenses (
id integer PRIMARY KEY AUTOINCREMENT,
status text NOT NULL DEFAULT 'active',
plan text NOT NULL DEFAULT 'basic',
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
expires_at DATETIME DEFAULT CURRENT_TIMESTAMP
);