-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Dec 31, 2019 at 09:02 PM -- Server version: 5.7.26 -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `azmoon` -- -- -------------------------------------------------------- -- -- Table structure for table `tbl_exams` -- DROP TABLE IF EXISTS `tbl_exams`; CREATE TABLE IF NOT EXISTS `tbl_exams` ( `id` int(11) NOT NULL AUTO_INCREMENT, `exam_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL, `date_start` int(11) NOT NULL, `date_end` int(11) NOT NULL, `exam_capacity` int(11) NOT NULL, `number_questions` int(11) NOT NULL, `registered_exam` int(11) NOT NULL DEFAULT '0', `registered_questions` int(11) NOT NULL DEFAULT '0', `date_create` int(11) NOT NULL, `status` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_exams` -- INSERT INTO `tbl_exams` (`id`, `exam_name`, `date_start`, `date_end`, `exam_capacity`, `number_questions`, `registered_exam`, `registered_questions`, `date_create`, `status`) VALUES (1, 'متون اسلامی', 1577768640, 1577772000, 5, 10, 0, 4, 1577630985, 0), (2, 'ریاضی گسسته', 1578891600, 1578896100, 20, 10, 0, 0, 1577630595, 1); -- -------------------------------------------------------- -- -- Table structure for table `tbl_questions` -- DROP TABLE IF EXISTS `tbl_questions`; CREATE TABLE IF NOT EXISTS `tbl_questions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `exam_id` int(11) NOT NULL, `text_question` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL, `g1_question` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL, `g2_question` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL, `g4_question` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL, `gtrue_question` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL, `status` int(11) NOT NULL DEFAULT '1', `g3_question` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_questions` -- INSERT INTO `tbl_questions` (`id`, `exam_id`, `text_question`, `g1_question`, `g2_question`, `g4_question`, `gtrue_question`, `status`, `g3_question`) VALUES (1, 1, 'سوال برای تست می باشد؟', '1', '15', '4', '3', 1, 3), (2, 1, 'سوال اول', 'اول', 'دوم', 'چهارم', 'اول', 1, 0), (3, 1, 'سوال دوم', '5', '6', '8', '5', 1, 3), (4, 1, 'سوال سوم', '21', '25', '27', '21', 1, 26); -- -------------------------------------------------------- -- -- Table structure for table `tbl_reg_user_exam` -- DROP TABLE IF EXISTS `tbl_reg_user_exam`; CREATE TABLE IF NOT EXISTS `tbl_reg_user_exam` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `exam_id` int(11) NOT NULL, `status` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_reg_user_exam` -- INSERT INTO `tbl_reg_user_exam` (`id`, `user_id`, `exam_id`, `status`) VALUES (1, 2, 1, 1), (2, 3, 1, 1), (3, 2, 2, 1); -- -------------------------------------------------------- -- -- Table structure for table `tbl_users` -- DROP TABLE IF EXISTS `tbl_users`; CREATE TABLE IF NOT EXISTS `tbl_users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name_family` varchar(150) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL, `username` varchar(150) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL, `password` varchar(100) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL, `mobile` varchar(50) NOT NULL, `email` varchar(50) NOT NULL, `role` int(11) NOT NULL DEFAULT '0', `status` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_users` -- INSERT INTO `tbl_users` (`id`, `name_family`, `username`, `password`, `mobile`, `email`, `role`, `status`) VALUES (1, 'سهیل الونذپور', 'soheilal', 'e10adc3949ba59abbe56e057f20f883e', '09054682240', 'azhdarmahii@gmail.com', 2, 1), (2, 'امیر سلطانی', 'amir1398', 'e10adc3949ba59abbe56e057f20f883e', '09112546547', '', 0, 1); -- -------------------------------------------------------- -- -- Table structure for table `tbl_user_answer` -- DROP TABLE IF EXISTS `tbl_user_answer`; CREATE TABLE IF NOT EXISTS `tbl_user_answer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question_id` int(11) NOT NULL, `exam_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `text_question` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL, `true_question` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL, `user_answer` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;