CREATE TABLE `online_courses` ( `id` int(11) NOT NULL, `title` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `teacher_id` int(11) DEFAULT NULL, `outcomes` text DEFAULT NULL, `course_thumbnail` varchar(100) DEFAULT NULL, `course_provider` varchar(100) DEFAULT NULL, `course_url` varchar(255) DEFAULT NULL, `video_id` text DEFAULT NULL, `price` float(10,2) NOT NULL DEFAULT 0.00, `discount` float(10,2) NOT NULL DEFAULT 0.00, `free_course` tinyint(1) DEFAULT NULL COMMENT '0=paid,1=free', `view_count` int(11) DEFAULT NULL, `status` tinyint(1) DEFAULT 0, `created_by` int(11) DEFAULT NULL, `created_date` datetime DEFAULT current_timestamp(), `updated_date` datetime DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8;