1 2 3 4 5 6
CREATE TABLE ships ( id INTEGER PRIMARY KEY, data JSON NOT NULL, updated DATE DEFAULT NULL ); CREATE UNIQUE INDEX ships_data_symbol on ships (json_extract(data, '$.symbol'));