<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Psinha</id>
	<title>Expertiza_Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Psinha"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Psinha"/>
	<updated>2026-05-10T07:28:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117099</id>
		<title>Documentation on Database Tables</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117099"/>
		<updated>2018-04-28T00:52:53Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--This page is under construction --&amp;gt;&lt;br /&gt;
'''PROJECT TITLE: Regularize Expertiza DB schema'''&lt;br /&gt;
 &amp;lt;b&amp;gt;PROBLEM DESCRIPTION:&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has some problems which needs to be rectified.&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has issues similar to what is described below:&lt;br /&gt;
  &amp;lt;br&amp;gt;1. redundant record. For instance, &amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; table has two &amp;lt;b&amp;gt;signup&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;team_formation&amp;lt;/b&amp;gt; record.&lt;br /&gt;
  &amp;lt;br&amp;gt;2. some field name is confused. For instance, in &amp;lt;b&amp;gt;users&amp;lt;/b&amp;gt; table &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &amp;lt;b&amp;gt;parent_id&amp;lt;/b&amp;gt; and in &amp;lt;b&amp;gt;response_maps&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &lt;br /&gt;
  &amp;lt;b&amp;gt;reviewed_object_id&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  '''The scope of our project is to rectify these problems by performing the below steps.'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Go through the Expertiza_development database to find tables that not used any more or redundant records.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Write migrations to regularize the Expertiza database and also change code if necessary.&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Make sure all existing tests are passed and change test code if necessary&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. Modify database wiki page to make it up to date&lt;br /&gt;
&lt;br /&gt;
 '''DATABASE TABLE DESCRIPTION:'''&lt;br /&gt;
  &amp;lt;br&amp;gt;Below is the old detailed description of the tables in the Expertiza DB schema.&amp;lt;br&amp;gt;Our Primary Job is updating the wiki and making it more informative by including all the changes in the Expertiza Db in this wiki.&lt;br /&gt;
&lt;br /&gt;
 '''STEPS TO NAVIGATE TO expertiza_development SCHEMA:'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Open terminal.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Change to the &amp;quot;expertiza&amp;quot; folder using the command: $cd expertiza&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Invoke the rails database console using the command: &amp;quot;$rails dbconsole&amp;quot; and give the password &amp;quot;expertiza&amp;quot; when prompted.&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. List the databases present in the MYSQL server using the command &amp;gt;show databases;&lt;br /&gt;
  &amp;lt;br&amp;gt; 5. Move to the &amp;quot;expertiza_development&amp;quot; database using the command &amp;gt;use expertiza_development&lt;br /&gt;
  &amp;lt;br&amp;gt; 6. List down the tables present in the &amp;quot;expertiza_development&amp;quot; using the command &amp;gt;show tables;&lt;br /&gt;
&lt;br /&gt;
'''FLOWCHART:'''&lt;br /&gt;
&lt;br /&gt;
                                                          [[File:FLOWCHART1.JPG]]&lt;br /&gt;
&lt;br /&gt;
'''FINDING REDUNDANT TABLES'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to find the duplicate records. For example in the table,&amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; a SQL query to find duplicate records is as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;select name from deadline_types group by name having count(*)&amp;gt;1;&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt, we find that there are two rows with the same information, hence they are redundant.&lt;br /&gt;
&lt;br /&gt;
'''WRITING SCRIPTS TO REGULARIZE THE EXPERTIZA SCHEMA:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to delete the redundant scripts and tables.For example in the table, &amp;lt;deadline_types&amp;gt; a SQL query to delete the duplicate records are as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;delete from deadline_types where id not in (select * from (select min(id) from deadline_types group by name) as temp);&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt,it will delete the duplicate records except one.&lt;br /&gt;
&lt;br /&gt;
'''WRITING THE DATABASE MIGRATION SCRIPTS:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write the rails migration scripts to migrate the SQL that would delete the redundant records for certain table.&lt;br /&gt;
 &amp;lt;br&amp;gt;      The steps to write the rails migration scripts can be explained in the below steps:&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
          &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.1 Open a terminal&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.2 Navigate to the &amp;lt;b&amp;gt;expertiza&amp;lt;/b&amp;gt; folder using the command: &amp;lt;b&amp;gt;$cd expertiza&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.3 Generate a migration script using the command in the terminal: &amp;lt;b&amp;gt;$ rails generate migration RemoveDuplicateDeadlineTypes&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.4 Write the SQL query to be executed to delete the redundant records inside the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.5 Save the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;   2. The migration scrips are present in the &amp;lt;b&amp;gt;expertiza/db/migrate&amp;lt;/b&amp;gt; folder can be migrated using the command &amp;lt;b&amp;gt;rails db:migrate&amp;lt;/b&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''TEST PLAN :'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 1. Validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt; &lt;br /&gt;
 &amp;lt;br&amp;gt; 2. Rerun the sql scripts to find out the redundant records in the tables.&amp;lt;b&amp;gt;It should return null records&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 3. Re validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# '''Assignments'''&lt;br /&gt;
#: [[assignments]]&lt;br /&gt;
#: [[assignment_questionnaires]]&lt;br /&gt;
#: [[Assignment_badges]]&lt;br /&gt;
#: [[calculated_penalties]]&lt;br /&gt;
#: [[deadline_types]]&lt;br /&gt;
#: [[deadline_rights]]&lt;br /&gt;
#: [[due_dates]]&lt;br /&gt;
#: [[late_policies]]&lt;br /&gt;
#: [[participants]]&lt;br /&gt;
#: [[plagiarism_checker_comparisons]]&lt;br /&gt;
#: [[plagiarism_checker_assignment_submissions]]&lt;br /&gt;
#: [[submission_records]]&lt;br /&gt;
#: [[wiki_types]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[assignments_questionnaires]]&lt;br /&gt;
# '''Answers'''&lt;br /&gt;
#: [[Answers]]&lt;br /&gt;
#: [[answer_tags]]&lt;br /&gt;
# '''Goldberg'''&lt;br /&gt;
#: [[content_pages]]&lt;br /&gt;
#: [[controller_actions]]&lt;br /&gt;
#: [[Delayed_jobs]]&lt;br /&gt;
#: [[markup_styles]]&lt;br /&gt;
#: [[menu_items]]&lt;br /&gt;
#: [[password_resets]]&lt;br /&gt;
#: [[permissions]]&lt;br /&gt;
#: [[plugin_schema_info]]&lt;br /&gt;
#: [[requested_users]]&lt;br /&gt;
#: [[roles]]&lt;br /&gt;
#: [[roles_permissions]]&lt;br /&gt;
#: [[schema_info]]&lt;br /&gt;
#: [[schema_migrations]]&lt;br /&gt;
#: [[site_controllers]]&lt;br /&gt;
#: [[users]]&lt;br /&gt;
#: [[user_pastebins]]&lt;br /&gt;
#: [[system_settings]]&lt;br /&gt;
# '''Reviewing'''&lt;br /&gt;
#: [[automated_metareviews]]&lt;br /&gt;
#: [[Awarded_badges]]&lt;br /&gt;
#: [[Badges]]&lt;br /&gt;
#: [[comments]]&lt;br /&gt;
#: [[mapping_strategies]]&lt;br /&gt;
#: [[responses]]&lt;br /&gt;
#: [[response_maps]]&lt;br /&gt;
#: [[review_strategies]]&lt;br /&gt;
#: [[Review_grades]]&lt;br /&gt;
#: [[Review_scores]]&lt;br /&gt;
#: [[review_of_review_scores]]&lt;br /&gt;
#: [[review_comments_paste_bins]]&lt;br /&gt;
#: [[score_caches]]&lt;br /&gt;
#: [[scores]]&lt;br /&gt;
#: [[suggestions]]&lt;br /&gt;
#: [[suggestion_comments]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[review_feedbacks]]&lt;br /&gt;
#:: [[review_mappings]]&lt;br /&gt;
#:: [[review_of_review_mappings]]&lt;br /&gt;
#:: [[review_of_reviews]]&lt;br /&gt;
#:: [[reviews]]&lt;br /&gt;
#:: [[teammate_reviews]]&lt;br /&gt;
# '''Teammate'''&lt;br /&gt;
#: [[Bids]]&lt;br /&gt;
#: [[invitations]]&lt;br /&gt;
#: [[Join_team_requests]]&lt;br /&gt;
#: [[signed_up_teams]]&lt;br /&gt;
#: [[teams]]&lt;br /&gt;
#: [[teams_users]]&lt;br /&gt;
# '''Courses'''&lt;br /&gt;
#: [[Courses_table|courses]]&lt;br /&gt;
#: [[Courses_users]]&lt;br /&gt;
# '''Hierarchy'''&lt;br /&gt;
#: [[institutions]]&lt;br /&gt;
#: [[languages]]&lt;br /&gt;
#: [[sessions]]&lt;br /&gt;
#: [[sections]]&lt;br /&gt;
#: [[versions]]&lt;br /&gt;
# '''Display'''&lt;br /&gt;
#: [[nodes]]&lt;br /&gt;
#: [[notifications]]	&lt;br /&gt;
#: [[tree_folders]]&lt;br /&gt;
#: [[Track_notifications]]&lt;br /&gt;
# '''Questionnaires/Rubrics'''&lt;br /&gt;
#: [[question_advices]]&lt;br /&gt;
#: [[questionnaires]]&lt;br /&gt;
#: [[Questions_table|questions]]&lt;br /&gt;
#: [[quiz_question_choices]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[questionnaire_types]]&lt;br /&gt;
# '''Surveys'''&lt;br /&gt;
#: [[survey_deployments]]&lt;br /&gt;
#: [[survey_responses]]&lt;br /&gt;
# '''Other Features'''&lt;br /&gt;
#: [[bookmarks]]&lt;br /&gt;
#: [[bookmark_ratings]]&lt;br /&gt;
#: [[signed_up_users]]&lt;br /&gt;
#: [[sign_up_topics]]&lt;br /&gt;
#: [[resubmission_times]]&lt;br /&gt;
#: [[ta_mappings]]&lt;br /&gt;
#: [[Tag_prompts]]&lt;br /&gt;
#: [[Tag_prompt_deployments]]&lt;br /&gt;
# '''Views'''&lt;br /&gt;
&amp;lt;!-- Saraswati Mishra: New tables --&amp;gt;&lt;br /&gt;
#: [[score_views]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*[[Assignments]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Goldberg]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Reviewing]]&lt;br /&gt;
*[[Media:migrate_files_comments.docx|Teammate]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Courses]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Hierarchy]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Display]]&lt;br /&gt;
*[[Media:Questionnaires.pdf| Questionnaires/Rubrics]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Surveys]]&lt;br /&gt;
&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| resubmission_times]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| ta_mappings]]&lt;br /&gt;
&lt;br /&gt;
*[[Sample link]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back to [[Expertiza_documentation]] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117098</id>
		<title>Documentation on Database Tables</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117098"/>
		<updated>2018-04-28T00:52:11Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--This page is under construction --&amp;gt;&lt;br /&gt;
'''PROJECT TITLE: Regularize Expertiza DB schema'''&lt;br /&gt;
 &amp;lt;b&amp;gt;PROBLEM DESCRIPTION:&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has some problems which needs to be rectified.&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has issues similar to what is described below:&lt;br /&gt;
  &amp;lt;br&amp;gt;1. redundant record. For instance, &amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; table has two &amp;lt;b&amp;gt;signup&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;team_formation&amp;lt;/b&amp;gt; record.&lt;br /&gt;
  &amp;lt;br&amp;gt;2. some field name is confused. For instance, in &amp;lt;b&amp;gt;users&amp;lt;/b&amp;gt; table &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &amp;lt;b&amp;gt;parent_id&amp;lt;/b&amp;gt; and in &amp;lt;b&amp;gt;response_maps&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &lt;br /&gt;
  &amp;lt;b&amp;gt;reviewed_object_id&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  '''The scope of our project is to rectify these problems by performing the below steps.'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Go through the Expertiza_development database to find tables that not used any more or redundant records.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Write migrations to regularize the Expertiza database and also change code if necessary.&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Make sure all existing tests are passed and change test code if necessary&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. Modify database wiki page to make it up to date&lt;br /&gt;
&lt;br /&gt;
 '''DATABASE TABLE DESCRIPTION:'''&lt;br /&gt;
  &amp;lt;br&amp;gt;Below is the old detailed description of the tables in the Expertiza DB schema.&amp;lt;br&amp;gt;Our Primary Job is updating the wiki and making it more informative by including all the changes in the Expertiza Db in this wiki.&lt;br /&gt;
&lt;br /&gt;
 '''STEPS TO NAVIGATE TO expertiza_development SCHEMA:'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Open terminal.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Change to the &amp;quot;expertiza&amp;quot; folder using the command: $cd expertiza&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Invoke the rails database console using the command: &amp;quot;$rails dbconsole&amp;quot; and give the password &amp;quot;expertiza&amp;quot; when prompted.&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. List the databases present in the MYSQL server using the command &amp;gt;show databases;&lt;br /&gt;
  &amp;lt;br&amp;gt; 5. Move to the &amp;quot;expertiza_development&amp;quot; database using the command &amp;gt;use expertiza_development&lt;br /&gt;
  &amp;lt;br&amp;gt; 6. List down the tables present in the &amp;quot;expertiza_development&amp;quot; using the command &amp;gt;show tables;&lt;br /&gt;
&lt;br /&gt;
'''FLOWCHART:'''&lt;br /&gt;
&lt;br /&gt;
                                                          [[File:FLOWCHART1.JPG]]&lt;br /&gt;
&lt;br /&gt;
'''FINDING REDUNDANT TABLES'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to find the duplicate records. For example in the table,&amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; a SQL query to find duplicate records is as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;select name from deadline_types group by name having count(*)&amp;gt;1;&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt, we find that there are two rows with the same information, hence they are redundant.&lt;br /&gt;
&lt;br /&gt;
'''WRITING SCRIPTS TO REGULARIZE THE EXPERTIZA SCHEMA:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to delete the redundant scripts and tables.For example in the table, &amp;lt;deadline_types&amp;gt; a SQL query to delete the duplicate records are as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;delete from deadline_types where id not in (select * from (select min(id) from deadline_types group by name) as temp);&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt,it will delete the duplicate records except one.&lt;br /&gt;
&lt;br /&gt;
'''WRITING THE DATABASE MIGRATION SCRIPTS:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write the rails migration scripts to migrate the SQL that would delete the redundant records for certain table.&lt;br /&gt;
 &amp;lt;br&amp;gt;      The steps to write the rails migration scripts can be explained in the below steps:&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
          &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.1 Open a terminal&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.2 Navigate to the &amp;lt;b&amp;gt;expertiza&amp;lt;/b&amp;gt; folder using the command: &amp;lt;b&amp;gt;$cd expertiza&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.3 Generate a migration script using the command in the terminal: &amp;lt;b&amp;gt;$ rails generate migration RemoveDuplicateDeadlineTypes&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.4 Write the SQL query to be executed to delete the redundant records inside the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.5 Save the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;   2. The migration scrips are present in the &amp;lt;b&amp;gt;expertiza/db/migrate&amp;lt;/b&amp;gt; folder can be migrated using the command &amp;lt;b&amp;gt;rails db:migrate&amp;lt;/b&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''TEST PLAN :'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 1. Validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt; &lt;br /&gt;
 &amp;lt;br&amp;gt; 2. Rerun the sql scripts to find out the redundant records in the tables.&amp;lt;b&amp;gt;It should return null records&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 3. Re validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# '''Assignments'''&lt;br /&gt;
#: [[assignments]]&lt;br /&gt;
#: [[assignment_questionnaires]]&lt;br /&gt;
#: [[Assignment_badges]]&lt;br /&gt;
#: [[calculated_penalties]]&lt;br /&gt;
#: [[deadline_types]]&lt;br /&gt;
#: [[deadline_rights]]&lt;br /&gt;
#: [[due_dates]]&lt;br /&gt;
#: [[late_policies]]&lt;br /&gt;
#: [[participants]]&lt;br /&gt;
#: [[plagiarism_checker_comparisons]]&lt;br /&gt;
#: [[plagiarism_checker_assignment_submissions]]&lt;br /&gt;
#: [[submission_records]]&lt;br /&gt;
#: [[wiki_types]]&lt;br /&gt;
&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[assignments_questionnaires]]&lt;br /&gt;
&lt;br /&gt;
# '''Answers'''&lt;br /&gt;
#: [[Answers]]&lt;br /&gt;
#: [[answer_tags]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# '''Goldberg'''&lt;br /&gt;
#: [[content_pages]]&lt;br /&gt;
#: [[controller_actions]]&lt;br /&gt;
#: [[Delayed_jobs]]&lt;br /&gt;
#: [[markup_styles]]&lt;br /&gt;
#: [[menu_items]]&lt;br /&gt;
#: [[password_resets]]&lt;br /&gt;
#: [[permissions]]&lt;br /&gt;
#: [[plugin_schema_info]]&lt;br /&gt;
#: [[requested_users]]&lt;br /&gt;
#: [[roles]]&lt;br /&gt;
#: [[roles_permissions]]&lt;br /&gt;
#: [[schema_info]]&lt;br /&gt;
#: [[schema_migrations]]&lt;br /&gt;
#: [[site_controllers]]&lt;br /&gt;
#: [[users]]&lt;br /&gt;
#: [[user_pastebins]]&lt;br /&gt;
#: [[system_settings]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# '''Reviewing'''&lt;br /&gt;
#: [[automated_metareviews]]&lt;br /&gt;
#: [[Awarded_badges]]&lt;br /&gt;
#: [[Badges]]&lt;br /&gt;
#: [[comments]]&lt;br /&gt;
#: [[mapping_strategies]]&lt;br /&gt;
#: [[responses]]&lt;br /&gt;
#: [[response_maps]]&lt;br /&gt;
#: [[review_strategies]]&lt;br /&gt;
#: [[Review_grades]]&lt;br /&gt;
#: [[Review_scores]]&lt;br /&gt;
#: [[review_of_review_scores]]&lt;br /&gt;
#: [[review_comments_paste_bins]]&lt;br /&gt;
#: [[score_caches]]&lt;br /&gt;
#: [[scores]]&lt;br /&gt;
#: [[suggestions]]&lt;br /&gt;
#: [[suggestion_comments]]&lt;br /&gt;
&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[review_feedbacks]]&lt;br /&gt;
#:: [[review_mappings]]&lt;br /&gt;
#:: [[review_of_review_mappings]]&lt;br /&gt;
#:: [[review_of_reviews]]&lt;br /&gt;
#:: [[reviews]]&lt;br /&gt;
#:: [[teammate_reviews]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# '''Teammate'''&lt;br /&gt;
#: [[Bids]]&lt;br /&gt;
#: [[invitations]]&lt;br /&gt;
#: [[Join_team_requests]]&lt;br /&gt;
#: [[signed_up_teams]]&lt;br /&gt;
#: [[teams]]&lt;br /&gt;
#: [[teams_users]]&lt;br /&gt;
&lt;br /&gt;
# '''Courses'''&lt;br /&gt;
#: [[Courses_table|courses]]&lt;br /&gt;
#: [[Courses_users]]&lt;br /&gt;
&lt;br /&gt;
# '''Hierarchy'''&lt;br /&gt;
#: [[institutions]]&lt;br /&gt;
#: [[languages]]&lt;br /&gt;
#: [[sessions]]&lt;br /&gt;
#: [[sections]]&lt;br /&gt;
#: [[versions]]&lt;br /&gt;
&lt;br /&gt;
# '''Display'''&lt;br /&gt;
#: [[nodes]]&lt;br /&gt;
#: [[notifications]]	&lt;br /&gt;
#: [[tree_folders]]&lt;br /&gt;
#: [[Track_notifications]]&lt;br /&gt;
&lt;br /&gt;
# '''Questionnaires/Rubrics'''&lt;br /&gt;
#: [[question_advices]]&lt;br /&gt;
#: [[questionnaires]]&lt;br /&gt;
#: [[Questions_table|questions]]&lt;br /&gt;
#: [[quiz_question_choices]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[questionnaire_types]]&lt;br /&gt;
&lt;br /&gt;
# '''Surveys'''&lt;br /&gt;
#: [[survey_deployments]]&lt;br /&gt;
#: [[survey_responses]]&lt;br /&gt;
&lt;br /&gt;
# '''Other Features'''&lt;br /&gt;
#: [[bookmarks]]&lt;br /&gt;
#: [[bookmark_ratings]]&lt;br /&gt;
#: [[signed_up_users]]&lt;br /&gt;
#: [[sign_up_topics]]&lt;br /&gt;
#: [[resubmission_times]]&lt;br /&gt;
#: [[ta_mappings]]&lt;br /&gt;
#: [[Tag_prompts]]&lt;br /&gt;
#: [[Tag_prompt_deployments]]&lt;br /&gt;
&lt;br /&gt;
# '''Views'''&lt;br /&gt;
&amp;lt;!-- Saraswati Mishra: New tables --&amp;gt;&lt;br /&gt;
#: [[score_views]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*[[Assignments]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Goldberg]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Reviewing]]&lt;br /&gt;
*[[Media:migrate_files_comments.docx|Teammate]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Courses]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Hierarchy]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Display]]&lt;br /&gt;
*[[Media:Questionnaires.pdf| Questionnaires/Rubrics]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Surveys]]&lt;br /&gt;
&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| resubmission_times]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| ta_mappings]]&lt;br /&gt;
&lt;br /&gt;
*[[Sample link]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back to [[Expertiza_documentation]] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117097</id>
		<title>Documentation on Database Tables</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117097"/>
		<updated>2018-04-28T00:50:13Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--This page is under construction --&amp;gt;&lt;br /&gt;
'''PROJECT TITLE: Regularize Expertiza DB schema'''&lt;br /&gt;
 &amp;lt;b&amp;gt;PROBLEM DESCRIPTION:&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has some problems which needs to be rectified.&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has issues similar to what is described below:&lt;br /&gt;
  &amp;lt;br&amp;gt;1. redundant record. For instance, &amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; table has two &amp;lt;b&amp;gt;signup&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;team_formation&amp;lt;/b&amp;gt; record.&lt;br /&gt;
  &amp;lt;br&amp;gt;2. some field name is confused. For instance, in &amp;lt;b&amp;gt;users&amp;lt;/b&amp;gt; table &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &amp;lt;b&amp;gt;parent_id&amp;lt;/b&amp;gt; and in &amp;lt;b&amp;gt;response_maps&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &lt;br /&gt;
  &amp;lt;b&amp;gt;reviewed_object_id&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  '''The scope of our project is to rectify these problems by performing the below steps.'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Go through the Expertiza_development database to find tables that not used any more or redundant records.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Write migrations to regularize the Expertiza database and also change code if necessary.&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Make sure all existing tests are passed and change test code if necessary&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. Modify database wiki page to make it up to date&lt;br /&gt;
&lt;br /&gt;
 '''DATABASE TABLE DESCRIPTION:'''&lt;br /&gt;
  &amp;lt;br&amp;gt;Below is the old detailed description of the tables in the Expertiza DB schema.&amp;lt;br&amp;gt;Our Primary Job is updating the wiki and making it more informative by including all the changes in the Expertiza Db in this wiki.&lt;br /&gt;
&lt;br /&gt;
 '''STEPS TO NAVIGATE TO expertiza_development SCHEMA:'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Open terminal.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Change to the &amp;quot;expertiza&amp;quot; folder using the command: $cd expertiza&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Invoke the rails database console using the command: &amp;quot;$rails dbconsole&amp;quot; and give the password &amp;quot;expertiza&amp;quot; when prompted.&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. List the databases present in the MYSQL server using the command &amp;gt;show databases;&lt;br /&gt;
  &amp;lt;br&amp;gt; 5. Move to the &amp;quot;expertiza_development&amp;quot; database using the command &amp;gt;use expertiza_development&lt;br /&gt;
  &amp;lt;br&amp;gt; 6. List down the tables present in the &amp;quot;expertiza_development&amp;quot; using the command &amp;gt;show tables;&lt;br /&gt;
&lt;br /&gt;
'''FLOWCHART:'''&lt;br /&gt;
&lt;br /&gt;
                                                          [[File:FLOWCHART1.JPG]]&lt;br /&gt;
&lt;br /&gt;
'''FINDING REDUNDANT TABLES'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to find the duplicate records. For example in the table,&amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; a SQL query to find duplicate records is as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;select name from deadline_types group by name having count(*)&amp;gt;1;&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt, we find that there are two rows with the same information, hence they are redundant.&lt;br /&gt;
&lt;br /&gt;
'''WRITING SCRIPTS TO REGULARIZE THE EXPERTIZA SCHEMA:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to delete the redundant scripts and tables.For example in the table, &amp;lt;deadline_types&amp;gt; a SQL query to delete the duplicate records are as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;delete from deadline_types where id not in (select * from (select min(id) from deadline_types group by name) as temp);&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt,it will delete the duplicate records except one.&lt;br /&gt;
&lt;br /&gt;
'''WRITING THE DATABASE MIGRATION SCRIPTS:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write the rails migration scripts to migrate the SQL that would delete the redundant records for certain table.&lt;br /&gt;
 &amp;lt;br&amp;gt;      The steps to write the rails migration scripts can be explained in the below steps:&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
          &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.1 Open a terminal&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.2 Navigate to the &amp;lt;b&amp;gt;expertiza&amp;lt;/b&amp;gt; folder using the command: &amp;lt;b&amp;gt;$cd expertiza&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.3 Generate a migration script using the command in the terminal: &amp;lt;b&amp;gt;$ rails generate migration RemoveDuplicateDeadlineTypes&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.4 Write the SQL query to be executed to delete the redundant records inside the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.5 Save the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;   2. The migration scrips are present in the &amp;lt;b&amp;gt;expertiza/db/migrate&amp;lt;/b&amp;gt; folder can be migrated using the command &amp;lt;b&amp;gt;rails db:migrate&amp;lt;/b&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''TEST PLAN :'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 1. Validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt; &lt;br /&gt;
 &amp;lt;br&amp;gt; 2. Rerun the sql scripts to find out the redundant records in the tables.&amp;lt;b&amp;gt;It should return null records&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 3. Re validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# '''Assignments'''&lt;br /&gt;
#: [[assignments]]&lt;br /&gt;
#: [[assignment_questionnaires]]&lt;br /&gt;
#: [[Assignment_badges]]&lt;br /&gt;
#: [[calculated_penalties]]&lt;br /&gt;
#: [[deadline_types]]&lt;br /&gt;
#: [[deadline_rights]]&lt;br /&gt;
#: [[due_dates]]&lt;br /&gt;
#: [[late_policies]]&lt;br /&gt;
#: [[participants]]&lt;br /&gt;
#: [[plagiarism_checker_comparisons]]&lt;br /&gt;
#: [[plagiarism_checker_assignment_submissions]]&lt;br /&gt;
#: [[submission_records]]&lt;br /&gt;
#: [[wiki_types]]&lt;br /&gt;
&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[assignments_questionnaires]]&lt;br /&gt;
&lt;br /&gt;
# '''Answers'''&lt;br /&gt;
#: [[Answers]]&lt;br /&gt;
#: [[answer_tags]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# '''Goldberg'''&lt;br /&gt;
#: [[content_pages]]&lt;br /&gt;
#: [[controller_actions]]&lt;br /&gt;
#: [[Delayed_jobs]]&lt;br /&gt;
#: [[markup_styles]]&lt;br /&gt;
#: [[menu_items]]&lt;br /&gt;
#: [[password_resets]]&lt;br /&gt;
#: [[permissions]]&lt;br /&gt;
#: [[plugin_schema_info]]&lt;br /&gt;
#: [[requested_users]]&lt;br /&gt;
#: [[roles]]&lt;br /&gt;
#: [[roles_permissions]]&lt;br /&gt;
#: [[schema_info]]&lt;br /&gt;
#: [[schema_migrations]]&lt;br /&gt;
#: [[site_controllers]]&lt;br /&gt;
#: [[users]]&lt;br /&gt;
#: [[user_pastebins]]&lt;br /&gt;
#: [[system_settings]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# '''Reviewing'''&lt;br /&gt;
#: [[automated_metareviews]]&lt;br /&gt;
#: [[Awarded_badges]]&lt;br /&gt;
#: [[Badges]]&lt;br /&gt;
#: [[comments]]&lt;br /&gt;
#: [[mapping_strategies]]&lt;br /&gt;
#: [[responses]]&lt;br /&gt;
#: [[response_maps]]&lt;br /&gt;
#: [[review_strategies]]&lt;br /&gt;
#: [[Review_grades]]&lt;br /&gt;
#: [[Review_scores]]&lt;br /&gt;
#: [[review_of_review_scores]]&lt;br /&gt;
#: [[review_comments_paste_bins]]&lt;br /&gt;
#: [[score_caches]]&lt;br /&gt;
#: [[scores]]&lt;br /&gt;
#: [[suggestions]]&lt;br /&gt;
#: [[suggestion_comments]]&lt;br /&gt;
&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[review_feedbacks]]&lt;br /&gt;
#:: [[review_mappings]]&lt;br /&gt;
#:: [[review_of_review_mappings]]&lt;br /&gt;
#:: [[review_of_reviews]]&lt;br /&gt;
#:: [[reviews]]&lt;br /&gt;
#:: [[teammate_reviews]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# '''Teammate'''&lt;br /&gt;
#: [[Bids]]&lt;br /&gt;
#: [[invitations]]&lt;br /&gt;
#: [[Join_team_requests]]&lt;br /&gt;
#: [[signed_up_teams]]&lt;br /&gt;
#: [[teams]]&lt;br /&gt;
#: [[teams_users]]&lt;br /&gt;
&lt;br /&gt;
# '''Courses'''&lt;br /&gt;
#: [[Courses_table|courses]]&lt;br /&gt;
#: [[Courses_users]]&lt;br /&gt;
&lt;br /&gt;
# '''Hierarchy'''&lt;br /&gt;
#: [[institutions]]&lt;br /&gt;
#: [[languages]]&lt;br /&gt;
#: [[sessions]]&lt;br /&gt;
#: [[sections]]&lt;br /&gt;
#: [[versions]]&lt;br /&gt;
&lt;br /&gt;
# '''Display'''&lt;br /&gt;
#: [[nodes]]&lt;br /&gt;
#: [[notifications]]	&lt;br /&gt;
#: [[tree_folders]]&lt;br /&gt;
#: [[Track_notifications]]&lt;br /&gt;
&lt;br /&gt;
# '''Questionnaires/Rubrics'''&lt;br /&gt;
#: [[question_advices]]&lt;br /&gt;
#: [[questionnaires]]&lt;br /&gt;
#: [[Questions_table|questions]]&lt;br /&gt;
#: [[quiz_question_choices]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[questionnaire_types]]&lt;br /&gt;
&lt;br /&gt;
# '''Surveys'''&lt;br /&gt;
#: [[survey_deployments]]&lt;br /&gt;
#: [[survey_responses]]&lt;br /&gt;
&lt;br /&gt;
# '''Other Features'''&lt;br /&gt;
#: [[bookmarks]]&lt;br /&gt;
#: [[bookmark_ratings]]&lt;br /&gt;
#: [[signed_up_users]]&lt;br /&gt;
#: [[sign_up_topics]]&lt;br /&gt;
#: [[resubmission_times]]&lt;br /&gt;
#: [[ta_mappings]]&lt;br /&gt;
#: [[Tag_prompts]]&lt;br /&gt;
#: [[Tag_prompt_deployments]]&lt;br /&gt;
&lt;br /&gt;
# ''Views''&lt;br /&gt;
&amp;lt;!-- Saraswati Mishra: New tables --&amp;gt;&lt;br /&gt;
#: [[score_views]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*[[Assignments]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Goldberg]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Reviewing]]&lt;br /&gt;
*[[Media:migrate_files_comments.docx|Teammate]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Courses]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Hierarchy]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Display]]&lt;br /&gt;
*[[Media:Questionnaires.pdf| Questionnaires/Rubrics]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Surveys]]&lt;br /&gt;
&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| resubmission_times]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| ta_mappings]]&lt;br /&gt;
&lt;br /&gt;
*[[Sample link]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back to [[Expertiza_documentation]] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117096</id>
		<title>Documentation on Database Tables</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117096"/>
		<updated>2018-04-28T00:49:20Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--This page is under construction --&amp;gt;&lt;br /&gt;
'''PROJECT TITLE: Regularize Expertiza DB schema'''&lt;br /&gt;
 &amp;lt;b&amp;gt;PROBLEM DESCRIPTION:&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has some problems which needs to be rectified.&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has issues similar to what is described below:&lt;br /&gt;
  &amp;lt;br&amp;gt;1. redundant record. For instance, &amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; table has two &amp;lt;b&amp;gt;signup&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;team_formation&amp;lt;/b&amp;gt; record.&lt;br /&gt;
  &amp;lt;br&amp;gt;2. some field name is confused. For instance, in &amp;lt;b&amp;gt;users&amp;lt;/b&amp;gt; table &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &amp;lt;b&amp;gt;parent_id&amp;lt;/b&amp;gt; and in &amp;lt;b&amp;gt;response_maps&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &lt;br /&gt;
  &amp;lt;b&amp;gt;reviewed_object_id&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  '''The scope of our project is to rectify these problems by performing the below steps.'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Go through the Expertiza_development database to find tables that not used any more or redundant records.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Write migrations to regularize the Expertiza database and also change code if necessary.&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Make sure all existing tests are passed and change test code if necessary&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. Modify database wiki page to make it up to date&lt;br /&gt;
&lt;br /&gt;
 '''DATABASE TABLE DESCRIPTION:'''&lt;br /&gt;
  &amp;lt;br&amp;gt;Below is the old detailed description of the tables in the Expertiza DB schema.&amp;lt;br&amp;gt;Our Primary Job is updating the wiki and making it more informative by including all the changes in the Expertiza Db in this wiki.&lt;br /&gt;
&lt;br /&gt;
 '''STEPS TO NAVIGATE TO expertiza_development SCHEMA:'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Open terminal.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Change to the &amp;quot;expertiza&amp;quot; folder using the command: $cd expertiza&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Invoke the rails database console using the command: &amp;quot;$rails dbconsole&amp;quot; and give the password &amp;quot;expertiza&amp;quot; when prompted.&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. List the databases present in the MYSQL server using the command &amp;gt;show databases;&lt;br /&gt;
  &amp;lt;br&amp;gt; 5. Move to the &amp;quot;expertiza_development&amp;quot; database using the command &amp;gt;use expertiza_development&lt;br /&gt;
  &amp;lt;br&amp;gt; 6. List down the tables present in the &amp;quot;expertiza_development&amp;quot; using the command &amp;gt;show tables;&lt;br /&gt;
&lt;br /&gt;
'''FLOWCHART:'''&lt;br /&gt;
&lt;br /&gt;
                                                          [[File:FLOWCHART1.JPG]]&lt;br /&gt;
&lt;br /&gt;
'''FINDING REDUNDANT TABLES'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to find the duplicate records. For example in the table,&amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; a SQL query to find duplicate records is as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;select name from deadline_types group by name having count(*)&amp;gt;1;&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt, we find that there are two rows with the same information, hence they are redundant.&lt;br /&gt;
&lt;br /&gt;
'''WRITING SCRIPTS TO REGULARIZE THE EXPERTIZA SCHEMA:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to delete the redundant scripts and tables.For example in the table, &amp;lt;deadline_types&amp;gt; a SQL query to delete the duplicate records are as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;delete from deadline_types where id not in (select * from (select min(id) from deadline_types group by name) as temp);&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt,it will delete the duplicate records except one.&lt;br /&gt;
&lt;br /&gt;
'''WRITING THE DATABASE MIGRATION SCRIPTS:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write the rails migration scripts to migrate the SQL that would delete the redundant records for certain table.&lt;br /&gt;
 &amp;lt;br&amp;gt;      The steps to write the rails migration scripts can be explained in the below steps:&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
          &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.1 Open a terminal&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.2 Navigate to the &amp;lt;b&amp;gt;expertiza&amp;lt;/b&amp;gt; folder using the command: &amp;lt;b&amp;gt;$cd expertiza&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.3 Generate a migration script using the command in the terminal: &amp;lt;b&amp;gt;$ rails generate migration RemoveDuplicateDeadlineTypes&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.4 Write the SQL query to be executed to delete the redundant records inside the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.5 Save the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;   2. The migration scrips are present in the &amp;lt;b&amp;gt;expertiza/db/migrate&amp;lt;/b&amp;gt; folder can be migrated using the command &amp;lt;b&amp;gt;rails db:migrate&amp;lt;/b&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''TEST PLAN :'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 1. Validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt; &lt;br /&gt;
 &amp;lt;br&amp;gt; 2. Rerun the sql scripts to find out the redundant records in the tables.&amp;lt;b&amp;gt;It should return null records&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 3. Re validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# '''Answers'''&lt;br /&gt;
#: [[Answers]]&lt;br /&gt;
#: [[answer_tags]]&lt;br /&gt;
&lt;br /&gt;
# '''Assignments'''&lt;br /&gt;
#: [[assignments]]&lt;br /&gt;
#: [[assignment_questionnaires]]&lt;br /&gt;
#: [[Assignment_badges]]&lt;br /&gt;
#: [[calculated_penalties]]&lt;br /&gt;
#: [[deadline_types]]&lt;br /&gt;
#: [[deadline_rights]]&lt;br /&gt;
#: [[due_dates]]&lt;br /&gt;
#: [[late_policies]]&lt;br /&gt;
#: [[participants]]&lt;br /&gt;
#: [[plagiarism_checker_comparisons]]&lt;br /&gt;
#: [[plagiarism_checker_assignment_submissions]]&lt;br /&gt;
#: [[submission_records]]&lt;br /&gt;
#: [[wiki_types]]&lt;br /&gt;
&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[assignments_questionnaires]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# '''Goldberg'''&lt;br /&gt;
#: [[content_pages]]&lt;br /&gt;
#: [[controller_actions]]&lt;br /&gt;
#: [[Delayed_jobs]]&lt;br /&gt;
#: [[markup_styles]]&lt;br /&gt;
#: [[menu_items]]&lt;br /&gt;
#: [[password_resets]]&lt;br /&gt;
#: [[permissions]]&lt;br /&gt;
#: [[plugin_schema_info]]&lt;br /&gt;
#: [[requested_users]]&lt;br /&gt;
#: [[roles]]&lt;br /&gt;
#: [[roles_permissions]]&lt;br /&gt;
#: [[schema_info]]&lt;br /&gt;
#: [[schema_migrations]]&lt;br /&gt;
#: [[site_controllers]]&lt;br /&gt;
#: [[users]]&lt;br /&gt;
#: [[user_pastebins]]&lt;br /&gt;
#: [[system_settings]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# '''Reviewing'''&lt;br /&gt;
#: [[automated_metareviews]]&lt;br /&gt;
#: [[Awarded_badges]]&lt;br /&gt;
#: [[Badges]]&lt;br /&gt;
#: [[comments]]&lt;br /&gt;
#: [[mapping_strategies]]&lt;br /&gt;
#: [[responses]]&lt;br /&gt;
#: [[response_maps]]&lt;br /&gt;
#: [[review_strategies]]&lt;br /&gt;
#: [[Review_grades]]&lt;br /&gt;
#: [[Review_scores]]&lt;br /&gt;
#: [[review_of_review_scores]]&lt;br /&gt;
#: [[review_comments_paste_bins]]&lt;br /&gt;
#: [[score_caches]]&lt;br /&gt;
#: [[scores]]&lt;br /&gt;
#: [[suggestions]]&lt;br /&gt;
#: [[suggestion_comments]]&lt;br /&gt;
&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[review_feedbacks]]&lt;br /&gt;
#:: [[review_mappings]]&lt;br /&gt;
#:: [[review_of_review_mappings]]&lt;br /&gt;
#:: [[review_of_reviews]]&lt;br /&gt;
#:: [[reviews]]&lt;br /&gt;
#:: [[teammate_reviews]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# '''Teammate'''&lt;br /&gt;
#: [[Bids]]&lt;br /&gt;
#: [[invitations]]&lt;br /&gt;
#: [[Join_team_requests]]&lt;br /&gt;
#: [[signed_up_teams]]&lt;br /&gt;
#: [[teams]]&lt;br /&gt;
#: [[teams_users]]&lt;br /&gt;
&lt;br /&gt;
# '''Courses'''&lt;br /&gt;
#: [[Courses_table|courses]]&lt;br /&gt;
#: [[Courses_users]]&lt;br /&gt;
&lt;br /&gt;
# '''Hierarchy'''&lt;br /&gt;
#: [[institutions]]&lt;br /&gt;
#: [[languages]]&lt;br /&gt;
#: [[sessions]]&lt;br /&gt;
#: [[sections]]&lt;br /&gt;
#: [[versions]]&lt;br /&gt;
&lt;br /&gt;
# '''Display'''&lt;br /&gt;
#: [[nodes]]&lt;br /&gt;
#: [[notifications]]	&lt;br /&gt;
#: [[tree_folders]]&lt;br /&gt;
#: [[Track_notifications]]&lt;br /&gt;
&lt;br /&gt;
# '''Questionnaires/Rubrics'''&lt;br /&gt;
#: [[question_advices]]&lt;br /&gt;
#: [[questionnaires]]&lt;br /&gt;
#: [[Questions_table|questions]]&lt;br /&gt;
#: [[quiz_question_choices]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[questionnaire_types]]&lt;br /&gt;
&lt;br /&gt;
# '''Surveys'''&lt;br /&gt;
#: [[survey_deployments]]&lt;br /&gt;
#: [[survey_responses]]&lt;br /&gt;
&lt;br /&gt;
# '''Other Features'''&lt;br /&gt;
#: [[bookmarks]]&lt;br /&gt;
#: [[bookmark_ratings]]&lt;br /&gt;
#: [[signed_up_users]]&lt;br /&gt;
#: [[sign_up_topics]]&lt;br /&gt;
#: [[resubmission_times]]&lt;br /&gt;
#: [[ta_mappings]]&lt;br /&gt;
#: [[Tag_prompts]]&lt;br /&gt;
#: [[Tag_prompt_deployments]]&lt;br /&gt;
&lt;br /&gt;
# ''Views'''&lt;br /&gt;
&amp;lt;!-- Saraswati Mishra: New tables --&amp;gt;&lt;br /&gt;
#: [[score_views]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*[[Assignments]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Goldberg]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Reviewing]]&lt;br /&gt;
*[[Media:migrate_files_comments.docx|Teammate]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Courses]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Hierarchy]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Display]]&lt;br /&gt;
*[[Media:Questionnaires.pdf| Questionnaires/Rubrics]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Surveys]]&lt;br /&gt;
&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| resubmission_times]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| ta_mappings]]&lt;br /&gt;
&lt;br /&gt;
*[[Sample link]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back to [[Expertiza_documentation]] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117095</id>
		<title>Documentation on Database Tables</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117095"/>
		<updated>2018-04-28T00:48:59Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--This page is under construction --&amp;gt;&lt;br /&gt;
'''PROJECT TITLE: Regularize Expertiza DB schema'''&lt;br /&gt;
 &amp;lt;b&amp;gt;PROBLEM DESCRIPTION:&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has some problems which needs to be rectified.&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has issues similar to what is described below:&lt;br /&gt;
  &amp;lt;br&amp;gt;1. redundant record. For instance, &amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; table has two &amp;lt;b&amp;gt;signup&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;team_formation&amp;lt;/b&amp;gt; record.&lt;br /&gt;
  &amp;lt;br&amp;gt;2. some field name is confused. For instance, in &amp;lt;b&amp;gt;users&amp;lt;/b&amp;gt; table &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &amp;lt;b&amp;gt;parent_id&amp;lt;/b&amp;gt; and in &amp;lt;b&amp;gt;response_maps&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &lt;br /&gt;
  &amp;lt;b&amp;gt;reviewed_object_id&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  '''The scope of our project is to rectify these problems by performing the below steps.'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Go through the Expertiza_development database to find tables that not used any more or redundant records.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Write migrations to regularize the Expertiza database and also change code if necessary.&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Make sure all existing tests are passed and change test code if necessary&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. Modify database wiki page to make it up to date&lt;br /&gt;
&lt;br /&gt;
 '''DATABASE TABLE DESCRIPTION:'''&lt;br /&gt;
  &amp;lt;br&amp;gt;Below is the old detailed description of the tables in the Expertiza DB schema.&amp;lt;br&amp;gt;Our Primary Job is updating the wiki and making it more informative by including all the changes in the Expertiza Db in this wiki.&lt;br /&gt;
&lt;br /&gt;
 '''STEPS TO NAVIGATE TO expertiza_development SCHEMA:'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Open terminal.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Change to the &amp;quot;expertiza&amp;quot; folder using the command: $cd expertiza&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Invoke the rails database console using the command: &amp;quot;$rails dbconsole&amp;quot; and give the password &amp;quot;expertiza&amp;quot; when prompted.&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. List the databases present in the MYSQL server using the command &amp;gt;show databases;&lt;br /&gt;
  &amp;lt;br&amp;gt; 5. Move to the &amp;quot;expertiza_development&amp;quot; database using the command &amp;gt;use expertiza_development&lt;br /&gt;
  &amp;lt;br&amp;gt; 6. List down the tables present in the &amp;quot;expertiza_development&amp;quot; using the command &amp;gt;show tables;&lt;br /&gt;
&lt;br /&gt;
'''FLOWCHART:'''&lt;br /&gt;
&lt;br /&gt;
                                                          [[File:FLOWCHART1.JPG]]&lt;br /&gt;
&lt;br /&gt;
'''FINDING REDUNDANT TABLES'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to find the duplicate records. For example in the table,&amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; a SQL query to find duplicate records is as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;select name from deadline_types group by name having count(*)&amp;gt;1;&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt, we find that there are two rows with the same information, hence they are redundant.&lt;br /&gt;
&lt;br /&gt;
'''WRITING SCRIPTS TO REGULARIZE THE EXPERTIZA SCHEMA:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to delete the redundant scripts and tables.For example in the table, &amp;lt;deadline_types&amp;gt; a SQL query to delete the duplicate records are as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;delete from deadline_types where id not in (select * from (select min(id) from deadline_types group by name) as temp);&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt,it will delete the duplicate records except one.&lt;br /&gt;
&lt;br /&gt;
'''WRITING THE DATABASE MIGRATION SCRIPTS:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write the rails migration scripts to migrate the SQL that would delete the redundant records for certain table.&lt;br /&gt;
 &amp;lt;br&amp;gt;      The steps to write the rails migration scripts can be explained in the below steps:&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
          &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.1 Open a terminal&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.2 Navigate to the &amp;lt;b&amp;gt;expertiza&amp;lt;/b&amp;gt; folder using the command: &amp;lt;b&amp;gt;$cd expertiza&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.3 Generate a migration script using the command in the terminal: &amp;lt;b&amp;gt;$ rails generate migration RemoveDuplicateDeadlineTypes&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.4 Write the SQL query to be executed to delete the redundant records inside the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.5 Save the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;   2. The migration scrips are present in the &amp;lt;b&amp;gt;expertiza/db/migrate&amp;lt;/b&amp;gt; folder can be migrated using the command &amp;lt;b&amp;gt;rails db:migrate&amp;lt;/b&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''TEST PLAN :'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 1. Validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt; &lt;br /&gt;
 &amp;lt;br&amp;gt; 2. Rerun the sql scripts to find out the redundant records in the tables.&amp;lt;b&amp;gt;It should return null records&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 3. Re validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# '''Answers'''&lt;br /&gt;
#: [[Answers]]&lt;br /&gt;
#: [[answers_tags]]&lt;br /&gt;
&lt;br /&gt;
# '''Assignments'''&lt;br /&gt;
#: [[assignments]]&lt;br /&gt;
#: [[assignment_questionnaires]]&lt;br /&gt;
#: [[Assignment_badges]]&lt;br /&gt;
#: [[calculated_penalties]]&lt;br /&gt;
#: [[deadline_types]]&lt;br /&gt;
#: [[deadline_rights]]&lt;br /&gt;
#: [[due_dates]]&lt;br /&gt;
#: [[late_policies]]&lt;br /&gt;
#: [[participants]]&lt;br /&gt;
#: [[plagiarism_checker_comparisons]]&lt;br /&gt;
#: [[plagiarism_checker_assignment_submissions]]&lt;br /&gt;
#: [[submission_records]]&lt;br /&gt;
#: [[wiki_types]]&lt;br /&gt;
&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[assignments_questionnaires]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# '''Goldberg'''&lt;br /&gt;
#: [[content_pages]]&lt;br /&gt;
#: [[controller_actions]]&lt;br /&gt;
#: [[Delayed_jobs]]&lt;br /&gt;
#: [[markup_styles]]&lt;br /&gt;
#: [[menu_items]]&lt;br /&gt;
#: [[password_resets]]&lt;br /&gt;
#: [[permissions]]&lt;br /&gt;
#: [[plugin_schema_info]]&lt;br /&gt;
#: [[requested_users]]&lt;br /&gt;
#: [[roles]]&lt;br /&gt;
#: [[roles_permissions]]&lt;br /&gt;
#: [[schema_info]]&lt;br /&gt;
#: [[schema_migrations]]&lt;br /&gt;
#: [[site_controllers]]&lt;br /&gt;
#: [[users]]&lt;br /&gt;
#: [[user_pastebins]]&lt;br /&gt;
#: [[system_settings]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# '''Reviewing'''&lt;br /&gt;
#: [[automated_metareviews]]&lt;br /&gt;
#: [[Awarded_badges]]&lt;br /&gt;
#: [[Badges]]&lt;br /&gt;
#: [[comments]]&lt;br /&gt;
#: [[mapping_strategies]]&lt;br /&gt;
#: [[responses]]&lt;br /&gt;
#: [[response_maps]]&lt;br /&gt;
#: [[review_strategies]]&lt;br /&gt;
#: [[Review_grades]]&lt;br /&gt;
#: [[Review_scores]]&lt;br /&gt;
#: [[review_of_review_scores]]&lt;br /&gt;
#: [[review_comments_paste_bins]]&lt;br /&gt;
#: [[score_caches]]&lt;br /&gt;
#: [[scores]]&lt;br /&gt;
#: [[suggestions]]&lt;br /&gt;
#: [[suggestion_comments]]&lt;br /&gt;
&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[review_feedbacks]]&lt;br /&gt;
#:: [[review_mappings]]&lt;br /&gt;
#:: [[review_of_review_mappings]]&lt;br /&gt;
#:: [[review_of_reviews]]&lt;br /&gt;
#:: [[reviews]]&lt;br /&gt;
#:: [[teammate_reviews]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# '''Teammate'''&lt;br /&gt;
#: [[Bids]]&lt;br /&gt;
#: [[invitations]]&lt;br /&gt;
#: [[Join_team_requests]]&lt;br /&gt;
#: [[signed_up_teams]]&lt;br /&gt;
#: [[teams]]&lt;br /&gt;
#: [[teams_users]]&lt;br /&gt;
&lt;br /&gt;
# '''Courses'''&lt;br /&gt;
#: [[Courses_table|courses]]&lt;br /&gt;
#: [[Courses_users]]&lt;br /&gt;
&lt;br /&gt;
# '''Hierarchy'''&lt;br /&gt;
#: [[institutions]]&lt;br /&gt;
#: [[languages]]&lt;br /&gt;
#: [[sessions]]&lt;br /&gt;
#: [[sections]]&lt;br /&gt;
#: [[versions]]&lt;br /&gt;
&lt;br /&gt;
# '''Display'''&lt;br /&gt;
#: [[nodes]]&lt;br /&gt;
#: [[notifications]]	&lt;br /&gt;
#: [[tree_folders]]&lt;br /&gt;
#: [[Track_notifications]]&lt;br /&gt;
&lt;br /&gt;
# '''Questionnaires/Rubrics'''&lt;br /&gt;
#: [[question_advices]]&lt;br /&gt;
#: [[questionnaires]]&lt;br /&gt;
#: [[Questions_table|questions]]&lt;br /&gt;
#: [[quiz_question_choices]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[questionnaire_types]]&lt;br /&gt;
&lt;br /&gt;
# '''Surveys'''&lt;br /&gt;
#: [[survey_deployments]]&lt;br /&gt;
#: [[survey_responses]]&lt;br /&gt;
&lt;br /&gt;
# '''Other Features'''&lt;br /&gt;
#: [[bookmarks]]&lt;br /&gt;
#: [[bookmark_ratings]]&lt;br /&gt;
#: [[signed_up_users]]&lt;br /&gt;
#: [[sign_up_topics]]&lt;br /&gt;
#: [[resubmission_times]]&lt;br /&gt;
#: [[ta_mappings]]&lt;br /&gt;
#: [[Tag_prompts]]&lt;br /&gt;
#: [[Tag_prompt_deployments]]&lt;br /&gt;
&lt;br /&gt;
# ''Views'''&lt;br /&gt;
&amp;lt;!-- Saraswati Mishra: New tables --&amp;gt;&lt;br /&gt;
#: [[score_views]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*[[Assignments]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Goldberg]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Reviewing]]&lt;br /&gt;
*[[Media:migrate_files_comments.docx|Teammate]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Courses]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Hierarchy]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Display]]&lt;br /&gt;
*[[Media:Questionnaires.pdf| Questionnaires/Rubrics]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Surveys]]&lt;br /&gt;
&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| resubmission_times]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| ta_mappings]]&lt;br /&gt;
&lt;br /&gt;
*[[Sample link]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back to [[Expertiza_documentation]] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117087</id>
		<title>Documentation on Database Tables</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117087"/>
		<updated>2018-04-27T22:03:34Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--This page is under construction --&amp;gt;&lt;br /&gt;
'''PROJECT TITLE: Regularize Expertiza DB schema'''&lt;br /&gt;
 &amp;lt;b&amp;gt;PROBLEM DESCRIPTION:&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has some problems which needs to be rectified.&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has issues similar to what is described below:&lt;br /&gt;
  &amp;lt;br&amp;gt;1. redundant record. For instance, &amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; table has two &amp;lt;b&amp;gt;signup&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;team_formation&amp;lt;/b&amp;gt; record.&lt;br /&gt;
  &amp;lt;br&amp;gt;2. some field name is confused. For instance, in &amp;lt;b&amp;gt;users&amp;lt;/b&amp;gt; table &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &amp;lt;b&amp;gt;parent_id&amp;lt;/b&amp;gt; and in &amp;lt;b&amp;gt;response_maps&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &lt;br /&gt;
  &amp;lt;b&amp;gt;reviewed_object_id&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  '''The scope of our project is to rectify these problems by performing the below steps.'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Go through the Expertiza_development database to find tables that not used any more or redundant records.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Write migrations to regularize the Expertiza database and also change code if necessary.&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Make sure all existing tests are passed and change test code if necessary&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. Modify database wiki page to make it up to date&lt;br /&gt;
&lt;br /&gt;
 '''DATABASE TABLE DESCRIPTION:'''&lt;br /&gt;
  &amp;lt;br&amp;gt;Below is the old detailed description of the tables in the Expertiza DB schema.&amp;lt;br&amp;gt;Our Primary Job is updating the wiki and making it more informative by including all the changes in the Expertiza Db in this wiki.&lt;br /&gt;
&lt;br /&gt;
 '''STEPS TO NAVIGATE TO expertiza_development SCHEMA:'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Open terminal.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Change to the &amp;quot;expertiza&amp;quot; folder using the command: $cd expertiza&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Invoke the rails database console using the command: &amp;quot;$rails dbconsole&amp;quot; and give the password &amp;quot;expertiza&amp;quot; when prompted.&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. List the databases present in the MYSQL server using the command &amp;gt;show databases;&lt;br /&gt;
  &amp;lt;br&amp;gt; 5. Move to the &amp;quot;expertiza_development&amp;quot; database using the command &amp;gt;use expertiza_development&lt;br /&gt;
  &amp;lt;br&amp;gt; 6. List down the tables present in the &amp;quot;expertiza_development&amp;quot; using the command &amp;gt;show tables;&lt;br /&gt;
&lt;br /&gt;
'''FLOWCHART:'''&lt;br /&gt;
&lt;br /&gt;
                                                          [[File:FLOWCHART1.JPG]]&lt;br /&gt;
&lt;br /&gt;
'''FINDING REDUNDANT TABLES'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to find the duplicate records. For example in the table,&amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; a SQL query to find duplicate records is as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;select name from deadline_types group by name having count(*)&amp;gt;1;&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt, we find that there are two rows with the same information, hence they are redundant.&lt;br /&gt;
&lt;br /&gt;
'''WRITING SCRIPTS TO REGULARIZE THE EXPERTIZA SCHEMA:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to delete the redundant scripts and tables.For example in the table, &amp;lt;deadline_types&amp;gt; a SQL query to delete the duplicate records are as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;delete from deadline_types where id not in (select * from (select min(id) from deadline_types group by name) as temp);&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt,it will delete the duplicate records except one.&lt;br /&gt;
&lt;br /&gt;
'''WRITING THE DATABASE MIGRATION SCRIPTS:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write the rails migration scripts to migrate the SQL that would delete the redundant records for certain table.&lt;br /&gt;
 &amp;lt;br&amp;gt;      The steps to write the rails migration scripts can be explained in the below steps:&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
          &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.1 Open a terminal&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.2 Navigate to the &amp;lt;b&amp;gt;expertiza&amp;lt;/b&amp;gt; folder using the command: &amp;lt;b&amp;gt;$cd expertiza&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.3 Generate a migration script using the command in the terminal: &amp;lt;b&amp;gt;$ rails generate migration RemoveDuplicateDeadlineTypes&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.4 Write the SQL query to be executed to delete the redundant records inside the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.5 Save the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;   2. The migration scrips are present in the &amp;lt;b&amp;gt;expertiza/db/migrate&amp;lt;/b&amp;gt; folder can be migrated using the command &amp;lt;b&amp;gt;rails db:migrate&amp;lt;/b&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''TEST PLAN :'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 1. Validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt; &lt;br /&gt;
 &amp;lt;br&amp;gt; 2. Rerun the sql scripts to find out the redundant records in the tables.&amp;lt;b&amp;gt;It should return null records&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 3. Re validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# '''Assignments'''&lt;br /&gt;
#: [[assignments]]&lt;br /&gt;
#: [[assignment_questionnaires]]&lt;br /&gt;
#: [[deadline_types]]&lt;br /&gt;
#: [[deadline_rights]]&lt;br /&gt;
#: [[due_dates]]&lt;br /&gt;
#: [[late_policies]]&lt;br /&gt;
#: [[participants]]&lt;br /&gt;
#: [[wiki_types]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[assignments_questionnaires]]&lt;br /&gt;
# '''Goldberg'''&lt;br /&gt;
#: [[content_pages]]&lt;br /&gt;
#: [[controller_actions]]&lt;br /&gt;
#: [[markup_styles]]&lt;br /&gt;
#: [[menu_items]]&lt;br /&gt;
#: [[permissions]]&lt;br /&gt;
#: [[plugin_schema_info]]&lt;br /&gt;
#: [[roles]]&lt;br /&gt;
#: [[roles_permissions]]&lt;br /&gt;
#: [[schema_info]]&lt;br /&gt;
#: [[site_controllers]]&lt;br /&gt;
#: [[users]]&lt;br /&gt;
#: [[system_settings]]&lt;br /&gt;
# '''Reviewing'''&lt;br /&gt;
#: [[comments]]&lt;br /&gt;
#: [[mapping_strategies]]&lt;br /&gt;
#: [[responses]]&lt;br /&gt;
#: [[response_maps]]&lt;br /&gt;
#: [[review_strategies]]&lt;br /&gt;
#: [[score_caches]]&lt;br /&gt;
#: [[scores]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[review_feedbacks]]&lt;br /&gt;
#:: [[review_mappings]]&lt;br /&gt;
#:: [[review_of_review_mappings]]&lt;br /&gt;
#:: [[review_of_reviews]]&lt;br /&gt;
#:: [[reviews]]&lt;br /&gt;
#:: [[teammate_reviews]]&lt;br /&gt;
# '''Teammate'''&lt;br /&gt;
#: [[invitations]]&lt;br /&gt;
#: [[teams]]&lt;br /&gt;
#: [[teams_users]]&lt;br /&gt;
# '''Courses'''&lt;br /&gt;
#: [[Courses_table|courses]]&lt;br /&gt;
# '''Hierarchy'''&lt;br /&gt;
#: [[institutions]]&lt;br /&gt;
#: [[languages]]&lt;br /&gt;
# '''Display'''&lt;br /&gt;
#: [[nodes]]	&lt;br /&gt;
#: [[tree_folders]]&lt;br /&gt;
# '''Questionnaires/Rubrics'''&lt;br /&gt;
#: [[question_advices]]&lt;br /&gt;
#: [[questionnaires]]&lt;br /&gt;
#: [[Questions_table|questions]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[questionnaire_types]]&lt;br /&gt;
# '''Surveys'''&lt;br /&gt;
#: [[survey_deployments]]&lt;br /&gt;
#: [[survey_responses]]&lt;br /&gt;
# '''Other Features'''&lt;br /&gt;
#: [[signed_up_users]]&lt;br /&gt;
#: [[sign_up_topics]]&lt;br /&gt;
#: [[resubmission_times]]&lt;br /&gt;
#: [[ta_mappings]]&lt;br /&gt;
# '''New Tables'''&lt;br /&gt;
&amp;lt;!-- Saraswati Mishra: New tables --&amp;gt;&lt;br /&gt;
#: [[versions]]&lt;br /&gt;
#: [[user_pastebins]]&lt;br /&gt;
#: [[Track_notifications]]&lt;br /&gt;
#: [[Tag_prompts]]&lt;br /&gt;
#: [[Tag_prompt_deployments]]&lt;br /&gt;
#: [[suggestions]]&lt;br /&gt;
#: [[suggestion_comments]]&lt;br /&gt;
#: [[submission_records]]&lt;br /&gt;
#: [[signed_up_teams]]&lt;br /&gt;
#: [[sessions]]&lt;br /&gt;
#: [[sections]]&lt;br /&gt;
#: [[score_views]]&lt;br /&gt;
#: [[schema_migrations]]&lt;br /&gt;
#: [[Review_grades]]&lt;br /&gt;
#: [[Review_scores]]&lt;br /&gt;
#: [[review_of_review_scores]]&lt;br /&gt;
#: [[review_comments_paste_bins]]&lt;br /&gt;
#: [[requested_users]]&lt;br /&gt;
#: [[quiz_question_choices]]&lt;br /&gt;
#: [[plagiarism_checker_comparisons]]&lt;br /&gt;
#: [[plagiarism_checker_assignment_submissions]]&lt;br /&gt;
#: [[password_resets]]&lt;br /&gt;
#: [[notifications]]&lt;br /&gt;
#: [[Join_team_requests]]&lt;br /&gt;
#: [[Delayed_jobs]]&lt;br /&gt;
#: [[Courses_users]]&lt;br /&gt;
#: [[calculated_penalties]]&lt;br /&gt;
#: [[bookmarks]]&lt;br /&gt;
#: [[bookmark_ratings]]&lt;br /&gt;
#: [[Bids]]&lt;br /&gt;
#: [[Badges]]&lt;br /&gt;
#: [[Awarded_badges]]&lt;br /&gt;
#: [[automated_metareviews]]&lt;br /&gt;
#: [[Answers]]&lt;br /&gt;
#: [[Assignment_badges]]&lt;br /&gt;
#: [[answer_tags]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*[[Assignments]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Goldberg]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Reviewing]]&lt;br /&gt;
*[[Media:migrate_files_comments.docx|Teammate]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Courses]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Hierarchy]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Display]]&lt;br /&gt;
*[[Media:Questionnaires.pdf| Questionnaires/Rubrics]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Surveys]]&lt;br /&gt;
&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| resubmission_times]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| ta_mappings]]&lt;br /&gt;
&lt;br /&gt;
*[[Sample link]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back to [[Expertiza_documentation]] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117066</id>
		<title>Documentation on Database Tables</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=117066"/>
		<updated>2018-04-27T21:22:41Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--This page is under construction --&amp;gt;&lt;br /&gt;
'''PROJECT TITLE: Regularize Expertiza DB schema'''&lt;br /&gt;
 &amp;lt;b&amp;gt;PROBLEM DESCRIPTION:&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has some problems which needs to be rectified.&lt;br /&gt;
  &amp;lt;br&amp;gt;The current Expertiza database has issues similar to what is described below:&lt;br /&gt;
  &amp;lt;br&amp;gt;1. redundant record. For instance, &amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; table has two &amp;lt;b&amp;gt;signup&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;team_formation&amp;lt;/b&amp;gt; record.&lt;br /&gt;
  &amp;lt;br&amp;gt;2. some field name is confused. For instance, in &amp;lt;b&amp;gt;users&amp;lt;/b&amp;gt; table &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &amp;lt;b&amp;gt;parent_id&amp;lt;/b&amp;gt; and in &amp;lt;b&amp;gt;response_maps&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;assignment_id&amp;lt;/b&amp;gt; becomes &lt;br /&gt;
  &amp;lt;b&amp;gt;reviewed_object_id&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  '''The scope of our project is to rectify these problems by performing the below steps.'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Go through the Expertiza_development database to find tables that not used any more or redundant records.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Write migrations to regularize the Expertiza database and also change code if necessary.&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Make sure all existing tests are passed and change test code if necessary&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. Modify database wiki page to make it up to date&lt;br /&gt;
&lt;br /&gt;
 '''DATABASE TABLE DESCRIPTION:'''&lt;br /&gt;
  &amp;lt;br&amp;gt;Below is the old detailed description of the tables in the Expertiza DB schema.&amp;lt;br&amp;gt;Our Primary Job is updating the wiki and making it more informative by including all the changes in the Expertiza Db in this wiki.&lt;br /&gt;
&lt;br /&gt;
 '''STEPS TO NAVIGATE TO expertiza_development SCHEMA:'''&lt;br /&gt;
  &amp;lt;br&amp;gt; 1. Open terminal.&lt;br /&gt;
  &amp;lt;br&amp;gt; 2. Change to the &amp;quot;expertiza&amp;quot; folder using the command: $cd expertiza&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Invoke the rails database console using the command: &amp;quot;$rails dbconsole&amp;quot; and give the password &amp;quot;expertiza&amp;quot; when prompted.&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. List the databases present in the MYSQL server using the command &amp;gt;show databases;&lt;br /&gt;
  &amp;lt;br&amp;gt; 5. Move to the &amp;quot;expertiza_development&amp;quot; database using the command &amp;gt;use expertiza_development&lt;br /&gt;
  &amp;lt;br&amp;gt; 6. List down the tables present in the &amp;quot;expertiza_development&amp;quot; using the command &amp;gt;show tables;&lt;br /&gt;
&lt;br /&gt;
'''FLOWCHART:'''&lt;br /&gt;
&lt;br /&gt;
                                                          [[File:FLOWCHART1.JPG]]&lt;br /&gt;
&lt;br /&gt;
'''FINDING REDUNDANT TABLES'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to find the duplicate records. For example in the table,&amp;lt;b&amp;gt;deadline_types&amp;lt;/b&amp;gt; a SQL query to find duplicate records is as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;select name from deadline_types group by name having count(*)&amp;gt;1;&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt, we find that there are two rows with the same information, hence they are redundant.&lt;br /&gt;
&lt;br /&gt;
'''WRITING SCRIPTS TO REGULARIZE THE EXPERTIZA SCHEMA:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write SQL scripts to delete the redundant scripts and tables.For example in the table, &amp;lt;deadline_types&amp;gt; a SQL query to delete the duplicate records are as follows.&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        &amp;lt;b&amp;gt;delete from deadline_types where id not in (select * from (select min(id) from deadline_types group by name) as temp);&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
        Running this query in the SQL prompt,it will delete the duplicate records except one.&lt;br /&gt;
&lt;br /&gt;
'''WRITING THE DATABASE MIGRATION SCRIPTS:'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;   1. Write the rails migration scripts to migrate the SQL that would delete the redundant records for certain table.&lt;br /&gt;
 &amp;lt;br&amp;gt;      The steps to write the rails migration scripts can be explained in the below steps:&lt;br /&gt;
 &amp;lt;br&amp;gt;&lt;br /&gt;
          &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.1 Open a terminal&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.2 Navigate to the &amp;lt;b&amp;gt;expertiza&amp;lt;/b&amp;gt; folder using the command: &amp;lt;b&amp;gt;$cd expertiza&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.3 Generate a migration script using the command in the terminal: &amp;lt;b&amp;gt;$ rails generate migration RemoveDuplicateDeadlineTypes&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.4 Write the SQL query to be executed to delete the redundant records inside the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;         1.5 Save the migration script.&lt;br /&gt;
 &amp;lt;br&amp;gt;   2. The migration scrips are present in the &amp;lt;b&amp;gt;expertiza/db/migrate&amp;lt;/b&amp;gt; folder can be migrated using the command &amp;lt;b&amp;gt;rails db:migrate&amp;lt;/b&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''TEST PLAN :'''&lt;br /&gt;
 &amp;lt;b&amp;gt;STEPS:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 1. Validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt; &lt;br /&gt;
 &amp;lt;br&amp;gt; 2. Rerun the sql scripts to find out the redundant records in the tables.&amp;lt;b&amp;gt;It should return null records&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;br&amp;gt; 3. Re validate the schema &amp;lt;b&amp;gt;expertiza_development&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# '''Assignments'''&lt;br /&gt;
#: [[assignments]]&lt;br /&gt;
#: [[assignment_questionnaires]]&lt;br /&gt;
#: [[deadline_types]]&lt;br /&gt;
#: [[deadline_rights]]&lt;br /&gt;
#: [[due_dates]]&lt;br /&gt;
#: [[late_policies]]&lt;br /&gt;
#: [[participants]]&lt;br /&gt;
#: [[wiki_types]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[assignments_questionnaires]]&lt;br /&gt;
# '''Goldberg'''&lt;br /&gt;
#: [[content_pages]]&lt;br /&gt;
#: [[controller_actions]]&lt;br /&gt;
#: [[markup_styles]]&lt;br /&gt;
#: [[menu_items]]&lt;br /&gt;
#: [[permissions]]&lt;br /&gt;
#: [[plugin_schema_info]]&lt;br /&gt;
#: [[roles]]&lt;br /&gt;
#: [[roles_permissions]]&lt;br /&gt;
#: [[schema_info]]&lt;br /&gt;
#: [[site_controllers]]&lt;br /&gt;
#: [[users]]&lt;br /&gt;
#: [[system_settings]]&lt;br /&gt;
# '''Reviewing'''&lt;br /&gt;
#: [[comments]]&lt;br /&gt;
#: [[mapping_strategies]]&lt;br /&gt;
#: [[responses]]&lt;br /&gt;
#: [[response_maps]]&lt;br /&gt;
#: [[review_strategies]]&lt;br /&gt;
#: [[score_caches]]&lt;br /&gt;
#: [[scores]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[review_feedbacks]]&lt;br /&gt;
#:: [[review_mappings]]&lt;br /&gt;
#:: [[review_of_review_mappings]]&lt;br /&gt;
#:: [[review_of_reviews]]&lt;br /&gt;
#:: [[reviews]]&lt;br /&gt;
#:: [[teammate_reviews]]&lt;br /&gt;
# '''Teammate'''&lt;br /&gt;
#: [[invitations]]&lt;br /&gt;
#: [[teams]]&lt;br /&gt;
#: [[teams_users]]&lt;br /&gt;
# '''Courses'''&lt;br /&gt;
#: [[Courses_table|courses]]&lt;br /&gt;
# '''Hierarchy'''&lt;br /&gt;
#: [[institutions]]&lt;br /&gt;
#: [[languages]]&lt;br /&gt;
# '''Display'''&lt;br /&gt;
#: [[nodes]]	&lt;br /&gt;
#: [[tree_folders]]&lt;br /&gt;
# '''Questionnaires/Rubrics'''&lt;br /&gt;
#: [[question_advices]]&lt;br /&gt;
#: [[questionnaires]]&lt;br /&gt;
#: [[Questions_table|questions]]&lt;br /&gt;
#: ''Deprecated Tables''&lt;br /&gt;
#:: [[questionnaire_types]]&lt;br /&gt;
# '''Surveys'''&lt;br /&gt;
#: [[survey_deployments]]&lt;br /&gt;
#: [[survey_participants]]&lt;br /&gt;
#: [[survey_responses]]&lt;br /&gt;
# '''Other Features'''&lt;br /&gt;
#: [[signed_up_users]]&lt;br /&gt;
#: [[sign_up_topics]]&lt;br /&gt;
#: [[resubmission_times]]&lt;br /&gt;
#: [[ta_mappings]]&lt;br /&gt;
# '''New Tables'''&lt;br /&gt;
&amp;lt;!-- Saraswati Mishra: New tables --&amp;gt;&lt;br /&gt;
#: [[versions]]&lt;br /&gt;
#: [[user_pastebins]]&lt;br /&gt;
#: [[Track_notifications]]&lt;br /&gt;
#: [[Tag_prompts]]&lt;br /&gt;
#: [[Tag_prompt_deployments]]&lt;br /&gt;
#: [[suggestions]]&lt;br /&gt;
#: [[suggestion_comments]]&lt;br /&gt;
#: [[submission_records]]&lt;br /&gt;
#: [[signed_up_teams]]&lt;br /&gt;
#: [[sessions]]&lt;br /&gt;
#: [[sections]]&lt;br /&gt;
#: [[score_views]]&lt;br /&gt;
#: [[schema_migrations]]&lt;br /&gt;
#: [[Review_grades]]&lt;br /&gt;
#: [[Review_scores]]&lt;br /&gt;
#: [[review_of_review_scores]]&lt;br /&gt;
#: [[review_comments_paste_bins]]&lt;br /&gt;
#: [[requested_users]]&lt;br /&gt;
#: [[quiz_question_choices]]&lt;br /&gt;
#: [[plagiarism_checker_comparisons]]&lt;br /&gt;
#: [[plagiarism_checker_assignment_submissions]]&lt;br /&gt;
#: [[password_resets]]&lt;br /&gt;
#: [[notifications]]&lt;br /&gt;
#: [[Join_team_requests]]&lt;br /&gt;
#: [[Delayed_jobs]]&lt;br /&gt;
#: [[Courses_users]]&lt;br /&gt;
#: [[calculated_penalties]]&lt;br /&gt;
#: [[bookmarks]]&lt;br /&gt;
#: [[bookmark_ratings]]&lt;br /&gt;
#: [[Bids]]&lt;br /&gt;
#: [[Badges]]&lt;br /&gt;
#: [[Awarded_badges]]&lt;br /&gt;
#: [[automated_metareviews]]&lt;br /&gt;
#: [[Answers]]&lt;br /&gt;
#: [[Assignment_badges]]&lt;br /&gt;
#: [[answer_tags]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*[[Assignments]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Goldberg]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Reviewing]]&lt;br /&gt;
*[[Media:migrate_files_comments.docx|Teammate]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Courses]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Hierarchy]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Display]]&lt;br /&gt;
*[[Media:Questionnaires.pdf| Questionnaires/Rubrics]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| Surveys]]&lt;br /&gt;
&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| resubmission_times]]&lt;br /&gt;
*[[Media:Underconstruction.pdf‎| ta_mappings]]&lt;br /&gt;
&lt;br /&gt;
*[[Sample link]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back to [[Expertiza_documentation]] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Responses_exported.png&amp;diff=116995</id>
		<title>File:Responses exported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Responses_exported.png&amp;diff=116995"/>
		<updated>2018-04-25T22:49:17Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Responses&amp;diff=116994</id>
		<title>Responses</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Responses&amp;diff=116994"/>
		<updated>2018-04-25T22:49:05Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Responses provide a means or communicating information from one user to another about the activity. A response uses a [[response_maps|response map]] to define the communication between a reviewer and a reviewee.&lt;br /&gt;
&lt;br /&gt;
==Response variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|-&lt;br /&gt;
!map_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The ID of the [[response_maps|response map]] defining the relationship that this response applies to&lt;br /&gt;
|-&lt;br /&gt;
!additional_comment&lt;br /&gt;
|text&lt;br /&gt;
|An additional comment provided by the reviewer to support his/her response&lt;br /&gt;
|-&lt;br /&gt;
!updated_at&lt;br /&gt;
|datetime&lt;br /&gt;
|The timestamp indicating when this response was last modified&lt;br /&gt;
|-&lt;br /&gt;
!created_at&lt;br /&gt;
|datetime&lt;br /&gt;
|The timestamp indicating when this response was created&lt;br /&gt;
|-&lt;br /&gt;
!version_num&lt;br /&gt;
|int(11)&lt;br /&gt;
|The version of the review.&lt;br /&gt;
|-&lt;br /&gt;
!round&lt;br /&gt;
|int(11)&lt;br /&gt;
|The round the review is connected to. &lt;br /&gt;
|-&lt;br /&gt;
!is_submitted&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Boolean Field to indicate whether the review is submitted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Resubmission times Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
Tables referred by the Resubmission times Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:responses_exported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Resubmission_times_imported.png&amp;diff=116992</id>
		<title>File:Resubmission times imported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Resubmission_times_imported.png&amp;diff=116992"/>
		<updated>2018-04-25T22:44:24Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Resubmission_times&amp;diff=116991</id>
		<title>Resubmission times</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Resubmission_times&amp;diff=116991"/>
		<updated>2018-04-25T22:44:14Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Designed for support of multi-round [[responses]]. Currently unused&lt;br /&gt;
&lt;br /&gt;
==Resubmission times variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|- &lt;br /&gt;
!participant_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[participants|participant]] submitting material&lt;br /&gt;
|-&lt;br /&gt;
!resubmitted_at&lt;br /&gt;
|datetime&lt;br /&gt;
|The timestamp at which the material was resubmitted&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Resubmission times Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:resubmission_times_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Resubmission times Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_comment_paste_imported.png&amp;diff=116990</id>
		<title>File:Review comment paste imported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_comment_paste_imported.png&amp;diff=116990"/>
		<updated>2018-04-25T22:42:22Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_comments_paste_bins&amp;diff=116988</id>
		<title>Review comments paste bins</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_comments_paste_bins&amp;diff=116988"/>
		<updated>2018-04-25T22:42:08Z</updated>

		<summary type="html">&lt;p&gt;Psinha: Created page with &amp;quot;Review Comment Paste Bins is just a table to save the data which can be later submitted. '''Deprecated'''  ==Review Comment Paste Bins variable documentation==  {| class=&amp;quot;wikitab...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Review Comment Paste Bins is just a table to save the data which can be later submitted.&lt;br /&gt;
'''Deprecated'''&lt;br /&gt;
&lt;br /&gt;
==Review Comment Paste Bins variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record ID&lt;br /&gt;
|-&lt;br /&gt;
!review_grade_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|ID of the grader of the review. &lt;br /&gt;
|-&lt;br /&gt;
!title&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|The title of the review.&lt;br /&gt;
|-&lt;br /&gt;
!review_comment&lt;br /&gt;
|text&lt;br /&gt;
|Comment provided by the instructor to the reviewer.&lt;br /&gt;
|-&lt;br /&gt;
!created_at&lt;br /&gt;
|datetime&lt;br /&gt;
|Date time value when the record was created.&lt;br /&gt;
|-&lt;br /&gt;
!updated_at&lt;br /&gt;
|datetime&lt;br /&gt;
|Date time value when the record was updated.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Review Comment Paste Bins Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_comment_paste_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Review Comment Paste Bins Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_grades&amp;diff=116984</id>
		<title>Review grades</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_grades&amp;diff=116984"/>
		<updated>2018-04-25T22:38:13Z</updated>

		<summary type="html">&lt;p&gt;Psinha: /* E/R diagram for Child Tables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Review grades table gives information regarding the grade given to the reviewer for reviewing.&lt;br /&gt;
&lt;br /&gt;
==Review Grades variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|- &lt;br /&gt;
!participant_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The ID of the [[Participants|participant]] who created the reviewed content.&lt;br /&gt;
|- &lt;br /&gt;
!grade_for_reviewer&lt;br /&gt;
|int(11)&lt;br /&gt;
|The grade given to the reviewer.&lt;br /&gt;
|- &lt;br /&gt;
!comment_for_reviewer&lt;br /&gt;
|text&lt;br /&gt;
|The comment given by the instructor to the reviewer.&lt;br /&gt;
|- &lt;br /&gt;
!review_graded_at&lt;br /&gt;
|datetime&lt;br /&gt;
|The date time value when the review was graded.&lt;br /&gt;
|-&lt;br /&gt;
!reviewer_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Users|user]] performing the review&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Review Grades Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_grades_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
Tables referred by the Review Grades Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_grades_exported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_feedbacks_imported.png&amp;diff=116983</id>
		<title>File:Review feedbacks imported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_feedbacks_imported.png&amp;diff=116983"/>
		<updated>2018-04-25T22:37:50Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_feedbacks&amp;diff=116982</id>
		<title>Review feedbacks</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_feedbacks&amp;diff=116982"/>
		<updated>2018-04-25T22:37:40Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Contains communciation between an author and a reviewer in an [[Assignments|assignment]]&lt;br /&gt;
&lt;br /&gt;
'''Deprecated'''&lt;br /&gt;
&lt;br /&gt;
==Review feedback variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record ID&lt;br /&gt;
|-&lt;br /&gt;
!assignment_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Assignments|assignment]] to which this review feedback is associated.&lt;br /&gt;
|-&lt;br /&gt;
!review_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Reviews|review]] for which this feedback was created.&lt;br /&gt;
|-&lt;br /&gt;
!user_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Users|user]] who provided the review.&lt;br /&gt;
|-&lt;br /&gt;
!feedback_at&lt;br /&gt;
|datetime&lt;br /&gt;
|Meant to contain the timestamp of when the feedback was created. Should use created_at and updated_at.&lt;br /&gt;
|-&lt;br /&gt;
!txt&lt;br /&gt;
|text &lt;br /&gt;
|The feedback content&lt;br /&gt;
|-&lt;br /&gt;
!additional_content&lt;br /&gt;
|text&lt;br /&gt;
|The feedback conent - needs to be removed&lt;br /&gt;
|-&lt;br /&gt;
!author_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Users|user]] who provided the feedback.&lt;br /&gt;
|-&lt;br /&gt;
!team_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Teams|team]] containing the user who provided the feedback.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Review Feedbacks Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_feedbacks_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Review Feedbacks Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_grades_imported.png&amp;diff=116981</id>
		<title>File:Review grades imported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_grades_imported.png&amp;diff=116981"/>
		<updated>2018-04-25T22:34:24Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_grades_exported.png&amp;diff=116979</id>
		<title>File:Review grades exported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_grades_exported.png&amp;diff=116979"/>
		<updated>2018-04-25T22:34:14Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_grades&amp;diff=116978</id>
		<title>Review grades</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_grades&amp;diff=116978"/>
		<updated>2018-04-25T22:34:03Z</updated>

		<summary type="html">&lt;p&gt;Psinha: Created page with &amp;quot;Review grades table gives information regarding the grade given to the reviewer for reviewing.  ==Review Grades variable documentation==  {| class=&amp;quot;wikitable&amp;quot;  !Field Name !!Type...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Review grades table gives information regarding the grade given to the reviewer for reviewing.&lt;br /&gt;
&lt;br /&gt;
==Review Grades variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|- &lt;br /&gt;
!participant_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The ID of the [[Participants|participant]] who created the reviewed content.&lt;br /&gt;
|- &lt;br /&gt;
!grade_for_reviewer&lt;br /&gt;
|int(11)&lt;br /&gt;
|The grade given to the reviewer.&lt;br /&gt;
|- &lt;br /&gt;
!comment_for_reviewer&lt;br /&gt;
|text&lt;br /&gt;
|The comment given by the instructor to the reviewer.&lt;br /&gt;
|- &lt;br /&gt;
!review_graded_at&lt;br /&gt;
|datetime&lt;br /&gt;
|The date time value when the review was graded.&lt;br /&gt;
|-&lt;br /&gt;
!reviewer_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Users|user]] performing the review&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Review Grades Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_grades_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Review Grades Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_grades_exported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_mappings&amp;diff=116975</id>
		<title>Review mappings</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_mappings&amp;diff=116975"/>
		<updated>2018-04-25T22:30:00Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Maps a connection between the [[participants]]&lt;br /&gt;
&lt;br /&gt;
'''Deprecated'''&lt;br /&gt;
&lt;br /&gt;
==Review mappings variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|- &lt;br /&gt;
!author_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Participants|participant]] who created the reviewed content&lt;br /&gt;
|-&lt;br /&gt;
!team_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|For team [[assignments]] contains the [[Teams|team]] who created the reviewed content&lt;br /&gt;
|-&lt;br /&gt;
!reviewer_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Users|user]] performing the review&lt;br /&gt;
|-&lt;br /&gt;
!assignment_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Assignments|assignment]] content being reviewed&lt;br /&gt;
|-&lt;br /&gt;
!round&lt;br /&gt;
|int(11)&lt;br /&gt;
|Preliminary support for multiple rounds of review - not fully implemented&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Review Mappings Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_mappings_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Review Mappings Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_of_mappings_exported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_mappings&amp;diff=116974</id>
		<title>Review mappings</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_mappings&amp;diff=116974"/>
		<updated>2018-04-25T22:29:12Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Maps a connection between the [[participants]]&lt;br /&gt;
&lt;br /&gt;
'''Deprecated'''&lt;br /&gt;
&lt;br /&gt;
==Review mappings variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|- &lt;br /&gt;
!author_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Participants|participant]] who created the reviewed content&lt;br /&gt;
|-&lt;br /&gt;
!team_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|For team [[assignments]] contains the [[Teams|team]] who created the reviewed content&lt;br /&gt;
|-&lt;br /&gt;
!reviewer_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Users|user]] performing the review&lt;br /&gt;
|-&lt;br /&gt;
!assignment_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Assignments|assignment]] content being reviewed&lt;br /&gt;
|-&lt;br /&gt;
!round&lt;br /&gt;
|int(11)&lt;br /&gt;
|Preliminary support for multiple rounds of review - not fully implemented&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Review Mappings Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_mappings_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Review Mappings Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_mappings_exported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_mappings_imported.png&amp;diff=116973</id>
		<title>File:Review mappings imported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_mappings_imported.png&amp;diff=116973"/>
		<updated>2018-04-25T22:28:29Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_of_mappings_exported.png&amp;diff=116972</id>
		<title>File:Review of mappings exported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_of_mappings_exported.png&amp;diff=116972"/>
		<updated>2018-04-25T22:28:18Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_of_review_mappings&amp;diff=116968</id>
		<title>Review of review mappings</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_of_review_mappings&amp;diff=116968"/>
		<updated>2018-04-25T22:26:05Z</updated>

		<summary type="html">&lt;p&gt;Psinha: /* E/R diagram for Child Tables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Maps a connection between the [[participants]] providing a [[Reviews|review]] and those providing a metareview/review of review&lt;br /&gt;
&lt;br /&gt;
'''Deprecated'''&lt;br /&gt;
&lt;br /&gt;
==Metareview/Review of review mappings variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|- &lt;br /&gt;
!review_reviewer_id&lt;br /&gt;
|int(10)&lt;br /&gt;
|The [[Participants|participant]] who is creating the metareview - needs to be depracated.&lt;br /&gt;
|-&lt;br /&gt;
!review_mapping_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Review_mappings|review_mapping]] which defines the relationship between author/team and reviewer.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Review of Review Mappings Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
Tables referred by the Review of Reviews Mappings Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_of_reviews_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_of_review_mappings&amp;diff=116967</id>
		<title>Review of review mappings</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_of_review_mappings&amp;diff=116967"/>
		<updated>2018-04-25T22:24:20Z</updated>

		<summary type="html">&lt;p&gt;Psinha: /* E/R diagram for Child Tables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Maps a connection between the [[participants]] providing a [[Reviews|review]] and those providing a metareview/review of review&lt;br /&gt;
&lt;br /&gt;
'''Deprecated'''&lt;br /&gt;
&lt;br /&gt;
==Metareview/Review of review mappings variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|- &lt;br /&gt;
!review_reviewer_id&lt;br /&gt;
|int(10)&lt;br /&gt;
|The [[Participants|participant]] who is creating the metareview - needs to be depracated.&lt;br /&gt;
|-&lt;br /&gt;
!review_mapping_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Review_mappings|review_mapping]] which defines the relationship between author/team and reviewer.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Review of Review Mappings Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
Tables referred by the Review of Reviews Mappings Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_of_review_mappings_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_of_review_mappings&amp;diff=116965</id>
		<title>Review of review mappings</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_of_review_mappings&amp;diff=116965"/>
		<updated>2018-04-25T22:24:01Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Maps a connection between the [[participants]] providing a [[Reviews|review]] and those providing a metareview/review of review&lt;br /&gt;
&lt;br /&gt;
'''Deprecated'''&lt;br /&gt;
&lt;br /&gt;
==Metareview/Review of review mappings variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|- &lt;br /&gt;
!review_reviewer_id&lt;br /&gt;
|int(10)&lt;br /&gt;
|The [[Participants|participant]] who is creating the metareview - needs to be depracated.&lt;br /&gt;
|-&lt;br /&gt;
!review_mapping_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[Review_mappings|review_mapping]] which defines the relationship between author/team and reviewer.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Review of Review Mappings Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Review of Reviews Mappings Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_of_review_mappings_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_of_review_scores_imported.png&amp;diff=116962</id>
		<title>File:Review of review scores imported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_of_review_scores_imported.png&amp;diff=116962"/>
		<updated>2018-04-25T22:21:49Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_of_review_scores&amp;diff=116961</id>
		<title>Review of review scores</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_of_review_scores&amp;diff=116961"/>
		<updated>2018-04-25T22:21:40Z</updated>

		<summary type="html">&lt;p&gt;Psinha: Created page with &amp;quot;Review of Reviews scores gives information regarding the scores given by the instructor to the review of the reviews.  ==Review of Reviews Scores variable documentation==  {| cla...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Review of Reviews scores gives information regarding the scores given by the instructor to the review of the reviews.&lt;br /&gt;
&lt;br /&gt;
==Review of Reviews Scores variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|-&lt;br /&gt;
!review_of_review_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|ID of the Review given to the review.&lt;br /&gt;
|-&lt;br /&gt;
!question_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|ID of the question associated with the Review.&lt;br /&gt;
|-&lt;br /&gt;
!score&lt;br /&gt;
|int(11)&lt;br /&gt;
|Score given to that Review.&lt;br /&gt;
|- &lt;br /&gt;
!comments&lt;br /&gt;
|text&lt;br /&gt;
|Comments given by the instructor.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Review of Reviews Scores Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_of_review_scores_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Review of Reviews Scores Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_of_reviews_imported.png&amp;diff=116960</id>
		<title>File:Review of reviews imported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_of_reviews_imported.png&amp;diff=116960"/>
		<updated>2018-04-25T22:18:23Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_of_reviews_exported.png&amp;diff=116959</id>
		<title>File:Review of reviews exported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_of_reviews_exported.png&amp;diff=116959"/>
		<updated>2018-04-25T22:18:13Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_of_reviews&amp;diff=116958</id>
		<title>Review of reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_of_reviews&amp;diff=116958"/>
		<updated>2018-04-25T22:18:02Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Contains metareview definitions for each of the reviews given.&lt;br /&gt;
&lt;br /&gt;
'''Deprecated'''&lt;br /&gt;
&lt;br /&gt;
== Metareview/Review of review variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|- &lt;br /&gt;
!reviewed_at&lt;br /&gt;
|datetime&lt;br /&gt;
|Meant to contain the time stamp for when the review of review was created. Should be deprecated. Use created_at instead.&lt;br /&gt;
|-&lt;br /&gt;
!review_of_review_mapping_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The ID for a [[Review_of_review_mappings|review of review mapping]]&lt;br /&gt;
|-&lt;br /&gt;
!review_num_for_author&lt;br /&gt;
|int(11)&lt;br /&gt;
|Number of authors who recieved the review.&lt;br /&gt;
|-&lt;br /&gt;
!review_num_for_reviewer&lt;br /&gt;
|int(11)&lt;br /&gt;
|Number of reviewers who reviewed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Review of Reviews Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_of_reviews_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
Tables referred by the Review of Reviews Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_of_reviews_exported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_scores_imported.png&amp;diff=116957</id>
		<title>File:Review scores imported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_scores_imported.png&amp;diff=116957"/>
		<updated>2018-04-25T22:14:04Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_scores&amp;diff=116956</id>
		<title>Review scores</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_scores&amp;diff=116956"/>
		<updated>2018-04-25T22:13:54Z</updated>

		<summary type="html">&lt;p&gt;Psinha: Created page with &amp;quot;Review scores gives information regarding the scores given by the instructor to the reviews.  ==Review Scores variable documentation==  {| class=&amp;quot;wikitable&amp;quot;  !Field Name !!Type !...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Review scores gives information regarding the scores given by the instructor to the reviews.&lt;br /&gt;
&lt;br /&gt;
==Review Scores variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|-&lt;br /&gt;
!review_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|ID of the Review.&lt;br /&gt;
|-&lt;br /&gt;
!question_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|ID of the question associated with the Review.&lt;br /&gt;
|-&lt;br /&gt;
!score&lt;br /&gt;
|int(11)&lt;br /&gt;
|Score given to that Review.&lt;br /&gt;
|- &lt;br /&gt;
!comments&lt;br /&gt;
|text&lt;br /&gt;
|Comments given by the instructor.&lt;br /&gt;
|-&lt;br /&gt;
!questionnaire_type_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|ID of the questionnaire the question is associated to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Review Scores Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:review_scores_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Review Scores Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Review_strategies&amp;diff=116953</id>
		<title>Review strategies</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Review_strategies&amp;diff=116953"/>
		<updated>2018-04-25T22:09:20Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Review strategies gives information regarding different strategies for reviewing.&lt;br /&gt;
&lt;br /&gt;
==Review Strategies variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|- &lt;br /&gt;
!name&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|The strategy name&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Review Strategies Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Review Strategies Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Reviews_imported.png&amp;diff=116951</id>
		<title>File:Reviews imported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Reviews_imported.png&amp;diff=116951"/>
		<updated>2018-04-25T22:07:13Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Reviews_exported.png&amp;diff=116950</id>
		<title>File:Reviews exported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Reviews_exported.png&amp;diff=116950"/>
		<updated>2018-04-25T22:07:02Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Reviews&amp;diff=116949</id>
		<title>Reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Reviews&amp;diff=116949"/>
		<updated>2018-04-25T22:06:12Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reviews provide a means or communicating information from one user to another about the submission content.&lt;br /&gt;
&lt;br /&gt;
'''Deprecated'''&lt;br /&gt;
&lt;br /&gt;
==Reviews variable documentation==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The unique record id&lt;br /&gt;
|- &lt;br /&gt;
!review_mapping_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The ID of the [[Review_mappings|review mapping]] used to define the relationship between and author/team and a reviewer&lt;br /&gt;
|-&lt;br /&gt;
!review_num_for_author&lt;br /&gt;
|int(11)&lt;br /&gt;
|(Unused at present?) This is supposed to be the review number, as seen by the author.  [Should be changed to review_num_for_creator]&lt;br /&gt;
|-&lt;br /&gt;
!review_num_for_reviewer&lt;br /&gt;
|int(11)&lt;br /&gt;
|(Unused at present?)  This is supposed to be the review number, as seen by the reviewer.  Normally for non-team assignments, it will be the same as the review_num_for_author.  For team assignments, it often differs from review_num_for_author, because the creator receives more reviews than each individual reviewer creates.&lt;br /&gt;
|- &lt;br /&gt;
!ignore&lt;br /&gt;
|tinyint(4)&lt;br /&gt;
|Designate that a given review is not included in the score. May be unused&lt;br /&gt;
|-&lt;br /&gt;
!additional_comment&lt;br /&gt;
|text&lt;br /&gt;
|An additional comment provided by the reviewer to support his/or her review content&lt;br /&gt;
|-&lt;br /&gt;
!updated_at&lt;br /&gt;
|datetime&lt;br /&gt;
|The timestamp indicating when this review was last modified&lt;br /&gt;
|-&lt;br /&gt;
!created_at&lt;br /&gt;
|datetime&lt;br /&gt;
|The timestamp indicating when this review was created&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Reviews Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:reviews_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
Tables referred by the Reviews Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:reviews_exported.png]]&lt;br /&gt;
&lt;br /&gt;
Back to the [[Documentation_on_Database_Tables|database documentation]]&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Roles&amp;diff=116948</id>
		<title>Roles</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Roles&amp;diff=116948"/>
		<updated>2018-04-25T22:03:31Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Roles table gives information regarding different user roles.&lt;br /&gt;
== Roles Variable Documentation ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Name !!Datatype !!Description&lt;br /&gt;
|- &lt;br /&gt;
!id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Primary key of the entry in table, auto increments by default&lt;br /&gt;
|- &lt;br /&gt;
!name  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Name of the role detailed&lt;br /&gt;
|- &lt;br /&gt;
!parent_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|The role that is created by this particular user; By default, students may not be parents of any role.&lt;br /&gt;
|- &lt;br /&gt;
!description  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|The description associated with the nature of the role&lt;br /&gt;
|- &lt;br /&gt;
!default_page_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|NULL at the moment, the default page_id that is displayed to the user, depending on the role&lt;br /&gt;
|- &lt;br /&gt;
!cache  &lt;br /&gt;
|text  &lt;br /&gt;
|Cache storage information&lt;br /&gt;
|- &lt;br /&gt;
!created_at  &lt;br /&gt;
|datetime  &lt;br /&gt;
|Time stamp of the date created&lt;br /&gt;
|- &lt;br /&gt;
!updated_at  &lt;br /&gt;
|datetime  &lt;br /&gt;
|Time stamp of the date updated.&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Roles Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Roles Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Roles&amp;diff=116947</id>
		<title>Roles</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Roles&amp;diff=116947"/>
		<updated>2018-04-25T22:03:17Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Roles table gives information regarding different user roles.&lt;br /&gt;
== Roles Variable Documentation ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Name !!Datatype !!Description&lt;br /&gt;
|- &lt;br /&gt;
!id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Primary key of the entry in table, auto increments by default&lt;br /&gt;
|- &lt;br /&gt;
!name  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Name of the role detailed&lt;br /&gt;
|- &lt;br /&gt;
!parent_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|The role that is created by this particular user; By default, students may not be parents of any role.&lt;br /&gt;
|- &lt;br /&gt;
!description  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|The description associated with the nature of the role&lt;br /&gt;
|- &lt;br /&gt;
!default_page_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|NULL at the moment, the default page_id that is displayed to the user, depending on the role&lt;br /&gt;
|- &lt;br /&gt;
!cache  &lt;br /&gt;
|text  &lt;br /&gt;
|Cache storage information&lt;br /&gt;
|- &lt;br /&gt;
!created_at  &lt;br /&gt;
|datetime  &lt;br /&gt;
|Time stamp of the date created&lt;br /&gt;
|- &lt;br /&gt;
!updated_at  &lt;br /&gt;
|datetime  &lt;br /&gt;
|Time stamp of the date updated.&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Roles Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Roles Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wikis.lib.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Submission_records&amp;diff=116868</id>
		<title>Submission records</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Submission_records&amp;diff=116868"/>
		<updated>2018-04-25T00:20:55Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Submission Records table gives information regarding submissions done which are associated with a particular assignment ID.&lt;br /&gt;
== Submission Records Variable Documentation ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Name !!Datatype !!Description &lt;br /&gt;
|- &lt;br /&gt;
!id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Primary key of the entry in table, auto increments by default&lt;br /&gt;
|- &lt;br /&gt;
!created_at  &lt;br /&gt;
|datetime  &lt;br /&gt;
|Date time value when the record was created.&lt;br /&gt;
|- &lt;br /&gt;
!updated_at  &lt;br /&gt;
|datetime  &lt;br /&gt;
|Date time value when the record was updated.&lt;br /&gt;
|- &lt;br /&gt;
!type  &lt;br /&gt;
|text  &lt;br /&gt;
|Type description of the Submission record.&lt;br /&gt;
|- &lt;br /&gt;
!content  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Content of the submission record.&lt;br /&gt;
|- &lt;br /&gt;
!operation  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Operation allowed on the record.&lt;br /&gt;
|- &lt;br /&gt;
!team_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Team ID associated with this submission.&lt;br /&gt;
|- &lt;br /&gt;
!user  &lt;br /&gt;
|vharchar(255)&lt;br /&gt;
|User who did the submission.&lt;br /&gt;
|- &lt;br /&gt;
!assignment_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the assignment the submission is associated to.&lt;br /&gt;
|}  &lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Submission Records Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Submission Records Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Submission_records&amp;diff=116867</id>
		<title>Submission records</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Submission_records&amp;diff=116867"/>
		<updated>2018-04-25T00:20:16Z</updated>

		<summary type="html">&lt;p&gt;Psinha: Created page with &amp;quot;The Submission Records table gives information regarding controllers with each of their permissions associated to it. == Submission Records Variable Documentation ==  {| class=&amp;quot;w...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Submission Records table gives information regarding controllers with each of their permissions associated to it.&lt;br /&gt;
== Submission Records Variable Documentation ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Name !!Datatype !!Description &lt;br /&gt;
|- &lt;br /&gt;
!id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Primary key of the entry in table, auto increments by default&lt;br /&gt;
|- &lt;br /&gt;
!created_at  &lt;br /&gt;
|datetime  &lt;br /&gt;
|Date time value when the record was created.&lt;br /&gt;
|- &lt;br /&gt;
!updated_at  &lt;br /&gt;
|datetime  &lt;br /&gt;
|Date time value when the record was updated.&lt;br /&gt;
|- &lt;br /&gt;
!type  &lt;br /&gt;
|text  &lt;br /&gt;
|Type description of the Submission record.&lt;br /&gt;
|- &lt;br /&gt;
!content  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Content of the submission record.&lt;br /&gt;
|- &lt;br /&gt;
!operation  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Operation allowed on the record.&lt;br /&gt;
|- &lt;br /&gt;
!team_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Team ID associated with this submission.&lt;br /&gt;
|- &lt;br /&gt;
!user  &lt;br /&gt;
|vharchar(255)&lt;br /&gt;
|User who did the submission.&lt;br /&gt;
|- &lt;br /&gt;
!assignment_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the assignment the submission is associated to.&lt;br /&gt;
|}  &lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Submission Records Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Submission Records Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Signed_up_teams&amp;diff=116866</id>
		<title>Signed up teams</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Signed_up_teams&amp;diff=116866"/>
		<updated>2018-04-25T00:16:08Z</updated>

		<summary type="html">&lt;p&gt;Psinha: /* E/R diagram for Child Tables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Signed Up Teams table gives information regarding teams that are Signed Up.&lt;br /&gt;
== Signed Up Teams Variable Documentation ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Name !!Datatype !!Description !&lt;br /&gt;
|- &lt;br /&gt;
!id  &lt;br /&gt;
|int(11)&lt;br /&gt;
|Unique ID for each of the record. Primary Key&lt;br /&gt;
|- &lt;br /&gt;
!topic_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the topic the team is associated with.&lt;br /&gt;
|- &lt;br /&gt;
!team_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the team.&lt;br /&gt;
|- &lt;br /&gt;
!is_waitlisted &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Boolean Field to indicate whether the team is waitlisted or not. &lt;br /&gt;
|- &lt;br /&gt;
!preference_priority_number  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Priority level for this Topic assigned by the team.&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Signed Up Teams Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:signed_up_teams_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Signed Up Teams Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Site_controllers&amp;diff=116865</id>
		<title>Site controllers</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Site_controllers&amp;diff=116865"/>
		<updated>2018-04-25T00:15:41Z</updated>

		<summary type="html">&lt;p&gt;Psinha: /* E/R diagram for Child Tables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Site Controllers table gives information regarding controllers with each of their permissions associated to it.&lt;br /&gt;
== Site Controllers Variable Documentation ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Name !!Datatype !!Description &lt;br /&gt;
|- &lt;br /&gt;
!id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Primary key of the entry in table, auto increments by default&lt;br /&gt;
|- &lt;br /&gt;
!name  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Names of the site_controllers provisioned; site-controllers are tables such as content_pages(typically the functions of a control panel)&lt;br /&gt;
|- &lt;br /&gt;
!permission_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|The permission with which the controller is available.&lt;br /&gt;
|- &lt;br /&gt;
!builtin  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|If the controller was builtin or was added later&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Site Controllers Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Site Controllers Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Site_controllers&amp;diff=116864</id>
		<title>Site controllers</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Site_controllers&amp;diff=116864"/>
		<updated>2018-04-25T00:14:17Z</updated>

		<summary type="html">&lt;p&gt;Psinha: /* Site Controllers Variable Documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Site Controllers table gives information regarding controllers with each of their permissions associated to it.&lt;br /&gt;
== Site Controllers Variable Documentation ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Name !!Datatype !!Description &lt;br /&gt;
|- &lt;br /&gt;
!id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Primary key of the entry in table, auto increments by default&lt;br /&gt;
|- &lt;br /&gt;
!name  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Names of the site_controllers provisioned; site-controllers are tables such as content_pages(typically the functions of a control panel)&lt;br /&gt;
|- &lt;br /&gt;
!permission_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|The permission with which the controller is available.&lt;br /&gt;
|- &lt;br /&gt;
!builtin  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|If the controller was builtin or was added later&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Site Controllers Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were eferred by the Signed Up Teams Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Site_controllers&amp;diff=116863</id>
		<title>Site controllers</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Site_controllers&amp;diff=116863"/>
		<updated>2018-04-25T00:13:53Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Site Controllers table gives information regarding controllers with each of their permissions associated to it.&lt;br /&gt;
== Site Controllers Variable Documentation ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Name !!Datatype !!Description &lt;br /&gt;
|- &lt;br /&gt;
!id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Primary key of the entry in table, auto increments by default&lt;br /&gt;
|- &lt;br /&gt;
!name  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Names of the site_controllers provisioned; site-controllers are tables such as content_pages(typically the functions of a control panel)&lt;br /&gt;
|- &lt;br /&gt;
!permission_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|The permission with which the controller is available to: FK into the PERMISSIONS table&lt;br /&gt;
|- &lt;br /&gt;
!builtin  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|If the controller was builtin or was added later&lt;br /&gt;
|}  &lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Site Controllers Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were eferred by the Signed Up Teams Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Signed_up_teams_imported.png&amp;diff=116862</id>
		<title>File:Signed up teams imported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Signed_up_teams_imported.png&amp;diff=116862"/>
		<updated>2018-04-25T00:11:44Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Signed_up_teams&amp;diff=116861</id>
		<title>Signed up teams</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Signed_up_teams&amp;diff=116861"/>
		<updated>2018-04-25T00:11:36Z</updated>

		<summary type="html">&lt;p&gt;Psinha: Created page with &amp;quot;The Signed Up Teams table gives information regarding teams that are Signed Up. == Signed Up Teams Variable Documentation ==  {| class=&amp;quot;wikitable&amp;quot;  !Name !!Datatype !!Description...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Signed Up Teams table gives information regarding teams that are Signed Up.&lt;br /&gt;
== Signed Up Teams Variable Documentation ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Name !!Datatype !!Description !&lt;br /&gt;
|- &lt;br /&gt;
!id  &lt;br /&gt;
|int(11)&lt;br /&gt;
|Unique ID for each of the record. Primary Key&lt;br /&gt;
|- &lt;br /&gt;
!topic_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the topic the team is associated with.&lt;br /&gt;
|- &lt;br /&gt;
!team_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the team.&lt;br /&gt;
|- &lt;br /&gt;
!is_waitlisted &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Boolean Field to indicate whether the team is waitlisted or not. &lt;br /&gt;
|- &lt;br /&gt;
!preference_priority_number  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Priority level for this Topic assigned by the team.&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Signed Up Teams Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:signed_up_teams_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were eferred by the Signed Up Teams Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Sign_up_topics&amp;diff=116858</id>
		<title>Sign up topics</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Sign_up_topics&amp;diff=116858"/>
		<updated>2018-04-25T00:08:54Z</updated>

		<summary type="html">&lt;p&gt;Psinha: /* Sign Up Topics Variable Documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Sign Up Topics table gives information regarding topics that are associated to a particular assignment.&lt;br /&gt;
== Sign Up Topics Variable Documentation ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Name !!Datatype !!Description !&lt;br /&gt;
|- &lt;br /&gt;
!id  &lt;br /&gt;
|int(11)&lt;br /&gt;
|Unique ID for each of the record. Primary Key&lt;br /&gt;
|- &lt;br /&gt;
!topic_name  &lt;br /&gt;
|text  &lt;br /&gt;
|Name of the topic.&lt;br /&gt;
|- &lt;br /&gt;
!assignment_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the assignment the topic is associated with.&lt;br /&gt;
|- &lt;br /&gt;
!max_choosers  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Number of people that can take this particular topic.&lt;br /&gt;
|- &lt;br /&gt;
!category  &lt;br /&gt;
|text  &lt;br /&gt;
|Category this topic belongs to.&lt;br /&gt;
|- &lt;br /&gt;
!topic_identifier  &lt;br /&gt;
|varchar(10)  &lt;br /&gt;
|Identifier for each of the topics.&lt;br /&gt;
|- &lt;br /&gt;
!micropayment  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Micropayment value for the topic. ********************&lt;br /&gt;
|- &lt;br /&gt;
!private_to  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the User this topic is private to.&lt;br /&gt;
|- &lt;br /&gt;
!description  &lt;br /&gt;
|text  &lt;br /&gt;
|Description of the Topic.&lt;br /&gt;
|- &lt;br /&gt;
!link  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|URL of the Topic Details Page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Sign Up Topics Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:sign_up_topics_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
Tables referred by the Sign Up Topics Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:sign_up_topics_exported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to [http://wiki.expertiza.ncsu.edu/index.php/Documentation_on_Database_Tables Database Tables] Main page.&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Sign_up_topics_imported.png&amp;diff=116857</id>
		<title>File:Sign up topics imported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Sign_up_topics_imported.png&amp;diff=116857"/>
		<updated>2018-04-25T00:05:42Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Sign_up_topics_exported.png&amp;diff=116856</id>
		<title>File:Sign up topics exported.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Sign_up_topics_exported.png&amp;diff=116856"/>
		<updated>2018-04-25T00:05:21Z</updated>

		<summary type="html">&lt;p&gt;Psinha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psinha</name></author>
	</entry>
</feed>