The table is not creating because there is an error in the execution but I can't seem to find it, I want report ID to be a foreign key from the dataEntryTB id
aj.executeSql('CREATE TABLE IF NOT EXISTS reportTb (id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, reportDetails TEXT NOT NULL, reportID INTEGER, FOREIGN KEY(reportID) REFERENCES dataEntryTb(id)');