################### What is CodeIgniter ################### the Database required for this application -- Users table CREATE TABLE users ( user_id INT AUTO_INCREMENT PRIMARY KEY, username VARCHAR(50) NOT NULL, email VARCHAR(100) NOT NULL, password_hash VARCHAR(255) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); -- Forms table CREATE TABLE forms ( form_id INT AUTO_INCREMENT PRIMARY KEY, user_id INT, title VARCHAR(255) NOT NULL, description TEXT, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (user_id) REFERENCES Users(user_id) ); -- Questions table CREATE TABLE questions ( question_id INT AUTO_INCREMENT PRIMARY KEY, form_id INT, question_text TEXT NOT NULL, question_type ENUM('multiple_choice', 'checkbox', 'short_answer') NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (form_id) REFERENCES Forms(form_id) ); -- Options table CREATE TABLE options ( option_id INT AUTO_INCREMENT PRIMARY KEY, question_id INT, option_text VARCHAR(255) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (question_id) REFERENCES Questions(question_id) ); -- Responses table CREATE TABLE responses ( response_id INT AUTO_INCREMENT PRIMARY KEY, form_id INT, user_id INT, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (form_id) REFERENCES Forms(form_id), FOREIGN KEY (user_id) REFERENCES Users(user_id) ); -- Response_Answers table CREATE TABLE response_answers ( answer_id INT AUTO_INCREMENT PRIMARY KEY, response_id INT, question_id INT, answer_text TEXT, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (response_id) REFERENCES Responses(response_id), FOREIGN KEY (question_id) REFERENCES Questions(question_id) ); CodeIgniter is an Application Development Framework - a toolkit - for people who build web sites using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task. ******************* Release Information ******************* This repo contains in-development code for future releases. To download the latest stable release please visit the `CodeIgniter Downloads `_ page. ************************** Changelog and New Features ************************** You can find a list of all changes for each release in the `user guide change log `_. ******************* Server Requirements ******************* PHP version 5.6 or newer is recommended. It should work on 5.3.7 as well, but we strongly advise you NOT to run such old versions of PHP, because of potential security and performance issues, as well as missing features. ************ Installation ************ Please see the `installation section `_ of the CodeIgniter User Guide. ******* License ******* Please see the `license agreement `_. ********* Resources ********* - `User Guide `_ - `Contributing Guide `_ - `Language File Translations `_ - `Community Forums `_ - `Community Wiki `_ - `Community Slack Channel `_ Report security issues to our `Security Panel `_ or via our `page on HackerOne `_, thank you. *************** Acknowledgement *************** The CodeIgniter team would like to thank EllisLab, all the contributors to the CodeIgniter project and you, the CodeIgniter user.