I’ve tried:
invalid syntax: statement ignored: syntax error at or near "as"
CREATE TABLE t(
id INT PRIMARY KEY DEFAULT unique_rowid() AS (data->>'id') STORED,
^
or
invalid syntax: statement ignored: syntax error at or near "as"
CREATE TABLE t(
id INT PRIMARY KEY AS (data->>'id') STORED DEFAULT unique_rowid(),
^
both gives an error, or it’s not possible to do so?