This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE activities; | |
CREATE TABLE activities ( | |
id INTEGER NOT NULL PRIMARY KEY, | |
activity TEXT NOT NULL, | |
type TEXT GENERATED ALWAYS AS (json_extract(activity, '$.type')) STORED, | |
name text GENERATED ALWAYS AS (json_extract(activity, '$.name')) STORED | |
); | |
INSERT INTO |