CREATE TABLE IF NOT EXISTS `#__testquestions_questions` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `question` text NOT NULL, `answer_a` varchar(500) NOT NULL, `answer_b` varchar(500) NOT NULL, `answer_c` varchar(500) NOT NULL, `answer_d` varchar(500) NOT NULL, `correct_answer` tinyint unsigned NOT NULL DEFAULT 0, `image` varchar(1024) NOT NULL DEFAULT '', `published` tinyint NOT NULL DEFAULT 1, `ordering` int NOT NULL DEFAULT 0, `created` datetime NOT NULL, `created_by` int unsigned NOT NULL DEFAULT 0, `modified` datetime NULL DEFAULT NULL, `modified_by` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `idx_published` (`published`), KEY `idx_ordering` (`ordering`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;