I'm trying to create a database table using the sqlite3 npm package. I'd like the table to have two columns, number and colour. Number should be an integer and colour should contain json data.
Is there anyway to explicitly set the data type to json in sqlite3?
Something like this below:
db.run('CREATE TABLE table1 ( number integer, colour json)');