<?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=Rtantry2</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=Rtantry2"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Rtantry2"/>
	<updated>2026-09-16T15:02:33Z</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=167478</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=167478"/>
		<updated>2025-12-09T04:05:40Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: Undo revision 167476 by Rtantry2 (talk)&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.&lt;br /&gt;
  &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: &amp;lt;b&amp;gt;$cd expertiza&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Invoke the rails database console using the command: &amp;lt;b&amp;gt;&amp;quot;$rails dbconsole&amp;quot;&amp;lt;/b&amp;gt; and give the password &amp;lt;b&amp;gt;&amp;quot;expertiza&amp;quot;&amp;lt;/b&amp;gt; when prompted.&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. List the databases present in the MYSQL server using the command &amp;gt;&amp;lt;b&amp;gt;show databases;&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt; 5. Move to the &amp;quot;expertiza_development&amp;quot; database using the command &amp;gt;&amp;lt;b&amp;gt;use expertiza_development&amp;lt;/b&amp;gt;&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;&amp;lt;b&amp;gt;show tables;&amp;lt;/b&amp;gt;&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;
# '''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;
#: [[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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=167477</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=167477"/>
		<updated>2025-12-09T04:03:32Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: Undo revision 167476 by Rtantry2 (talk)&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.&lt;br /&gt;
  &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: &amp;lt;b&amp;gt;$cd expertiza&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Invoke the rails database console using the command: &amp;lt;b&amp;gt;&amp;quot;$rails dbconsole&amp;quot;&amp;lt;/b&amp;gt; and give the password &amp;lt;b&amp;gt;&amp;quot;expertiza&amp;quot;&amp;lt;/b&amp;gt; when prompted.&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. List the databases present in the MYSQL server using the command &amp;gt;&amp;lt;b&amp;gt;show databases;&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt; 5. Move to the &amp;quot;expertiza_development&amp;quot; database using the command &amp;gt;&amp;lt;b&amp;gt;use expertiza_development&amp;lt;/b&amp;gt;&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;&amp;lt;b&amp;gt;show tables;&amp;lt;/b&amp;gt;&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;
# '''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_advice]]&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;
#: [[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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Documentation_on_Database_Tables&amp;diff=167476</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=167476"/>
		<updated>2025-12-09T04:01:08Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: &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.&lt;br /&gt;
  &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: &amp;lt;b&amp;gt;$cd expertiza&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt; 3. Invoke the rails database console using the command: &amp;lt;b&amp;gt;&amp;quot;$rails dbconsole&amp;quot;&amp;lt;/b&amp;gt; and give the password &amp;lt;b&amp;gt;&amp;quot;expertiza&amp;quot;&amp;lt;/b&amp;gt; when prompted.&lt;br /&gt;
  &amp;lt;br&amp;gt; 4. List the databases present in the MYSQL server using the command &amp;gt;&amp;lt;b&amp;gt;show databases;&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;br&amp;gt; 5. Move to the &amp;quot;expertiza_development&amp;quot; database using the command &amp;gt;&amp;lt;b&amp;gt;use expertiza_development&amp;lt;/b&amp;gt;&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;&amp;lt;b&amp;gt;show tables;&amp;lt;/b&amp;gt;&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;
#: [[topic_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_participants]]&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;
#: [[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_advice]]&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;
#: [[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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Bids&amp;diff=167475</id>
		<title>Bids</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Bids&amp;diff=167475"/>
		<updated>2025-12-09T03:59:15Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: /* Bids Variable Documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Bids table gives information regarding the bids for the topics given by a particular user.&lt;br /&gt;
== Topic Bids Variable Documentation (Reimplementation) ==&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This table has been renamed from ''bids'' to ''topic_bids''.&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;
|Unique ID for each bids record.&lt;br /&gt;
|- &lt;br /&gt;
!topic_id   &lt;br /&gt;
|int(11) &lt;br /&gt;
|Name of the Topic.&lt;br /&gt;
|- &lt;br /&gt;
!user_id   &lt;br /&gt;
|int(11)&lt;br /&gt;
|User ID who bid for the Topic.&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;
!priority   &lt;br /&gt;
|int(11)&lt;br /&gt;
|Priority Level for that Bid.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Bids Variable Documentation (2023 version) ==&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;
|Unique ID for each bids record.&lt;br /&gt;
|- &lt;br /&gt;
!topic_id   &lt;br /&gt;
|int(11) &lt;br /&gt;
|Name of the Topic.&lt;br /&gt;
|- &lt;br /&gt;
!user_id   &lt;br /&gt;
|int(11)&lt;br /&gt;
|User ID who bid for the Topic.&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;
!priority   &lt;br /&gt;
|int(11)&lt;br /&gt;
|Priority Level for that Bid.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Bids Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Bids Table as Foreign Key Relationship.&lt;br /&gt;
&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Question_advices&amp;diff=167474</id>
		<title>Question advices</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Question_advices&amp;diff=167474"/>
		<updated>2025-12-09T03:58:16Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Question Advice Variable Documentation (Reimplementation) ==&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This table has been renamed from ''question_advices'' to ''question_advice''.&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;
|id of the advice&lt;br /&gt;
|- &lt;br /&gt;
!question_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|id of the question&lt;br /&gt;
|- &lt;br /&gt;
!score   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|scores related to each question. It could be just 0/1 meaning false/true or integers &lt;br /&gt;
|- &lt;br /&gt;
!advice   &lt;br /&gt;
|text&lt;br /&gt;
  &lt;br /&gt;
|description of what a particular score means&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== Question Advices Variable Documentation (2023 version) ==&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;
|id of the advice&lt;br /&gt;
|- &lt;br /&gt;
!question_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|id of the question&lt;br /&gt;
|- &lt;br /&gt;
!score   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|scores related to each question. It could be just 0/1 meaning false/true or integers &lt;br /&gt;
|- &lt;br /&gt;
!advice   &lt;br /&gt;
|text&lt;br /&gt;
  &lt;br /&gt;
|description of what a particular score means&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by Question Advices Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:question_advises.jpg]]&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
Tables which refer the questionnaires Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:question_advises_child.jpg]]&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Teams_users&amp;diff=167473</id>
		<title>Teams users</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Teams_users&amp;diff=167473"/>
		<updated>2025-12-09T03:56:45Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Teams Participants Variable Documentation (Reimplementation) ==&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This table has been renamed from ''teams_users'' to ''teams_participants''.&lt;br /&gt;
&lt;br /&gt;
The Teams Participants table maps users to teams; in rare cases, a single individual is on &amp;gt; 1 team for an assignment.&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;
|&lt;br /&gt;
|- &lt;br /&gt;
!team_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|id of the team to which the user belongs to &lt;br /&gt;
|- &lt;br /&gt;
!user_id   &lt;br /&gt;
|int(11)&lt;br /&gt;
  &lt;br /&gt;
|user id of student who belongs to the team&lt;br /&gt;
|&lt;br /&gt;
|- &lt;br /&gt;
!duty_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|indicates what role the user plays (what duty they have) for this assignment: manager, programmer, tester, etc. &lt;br /&gt;
|- &lt;br /&gt;
!pair_programming_status &lt;br /&gt;
|varchar(1)  &lt;br /&gt;
|a team can declare that it is pair programming, so that members won't be penalized for not doing commits.&lt;br /&gt;
| &lt;br /&gt;
|- &lt;br /&gt;
!participant_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|id of the participant object for this user in this assignment.  (This field is not yet in use.) &lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== Teams Users Variable Documentation (2023 version) ==&lt;br /&gt;
&lt;br /&gt;
The Teams table maps users to teams; in rare cases, a single individual is on &amp;gt; 1 team for an assignment.&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;
|&lt;br /&gt;
|- &lt;br /&gt;
!team_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|id of the team to which the user belongs to &lt;br /&gt;
|- &lt;br /&gt;
!user_id   &lt;br /&gt;
|int(11)&lt;br /&gt;
  &lt;br /&gt;
|user id of student who belongs to the team&lt;br /&gt;
|&lt;br /&gt;
|- &lt;br /&gt;
!duty_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|indicates what role the user plays (what duty they have) for this assignment: manager, programmer, tester, etc. &lt;br /&gt;
|- &lt;br /&gt;
!pair_programming_status &lt;br /&gt;
|varchar(1)  &lt;br /&gt;
|a team can declare that it is pair programming, so that members won't be penalized for not doing commits.&lt;br /&gt;
| &lt;br /&gt;
|- &lt;br /&gt;
!participant_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|id of the participant object for this user in this assignment.  (This field is not yet in use.) &lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== E/R diagram of tables referencing teams_users table  ==&lt;br /&gt;
This table is not referenced by any other tables&lt;br /&gt;
&lt;br /&gt;
== E/R diagram of tables teams_users table is referencing to ==&lt;br /&gt;
&lt;br /&gt;
The following image shows the tables referencing teams_users table is referencing to&lt;br /&gt;
[[File:teams_users_export.png]]&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Teams&amp;diff=167472</id>
		<title>Teams</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Teams&amp;diff=167472"/>
		<updated>2025-12-09T03:42:57Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Teams Variable Documentation (Reimplementation) ==&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;
|&lt;br /&gt;
|- &lt;br /&gt;
!name   &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Name of the team&lt;br /&gt;
|- &lt;br /&gt;
!parent_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of assignment or course that this team is participating in&lt;br /&gt;
|- &lt;br /&gt;
!type   &lt;br /&gt;
|varchar(255)&lt;br /&gt;
  &lt;br /&gt;
|Type of the team, either AssignmentTeam or CourseTeam&lt;br /&gt;
|- &lt;br /&gt;
!submitted_hyperlinks  &lt;br /&gt;
|text &lt;br /&gt;
|List of submitted hyperlinks&lt;br /&gt;
|- &lt;br /&gt;
!directory_num&lt;br /&gt;
|int(11) &lt;br /&gt;
|directory number where files submitted by this team are stored&lt;br /&gt;
|- &lt;br /&gt;
!grade_for_submission&lt;br /&gt;
|int(11) &lt;br /&gt;
|Stores the grade assigned by the instructor, if any&lt;br /&gt;
|- &lt;br /&gt;
!comment_for_submission&lt;br /&gt;
|text&lt;br /&gt;
|Stores feedback from the instructor for the team&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== Teams Variable Documentation (2023 version) ==&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;
|&lt;br /&gt;
|- &lt;br /&gt;
!name   &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Name of the team&lt;br /&gt;
|- &lt;br /&gt;
!parent_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of assignment or course that this team is participating in&lt;br /&gt;
|- &lt;br /&gt;
!type   &lt;br /&gt;
|varchar(255)&lt;br /&gt;
  &lt;br /&gt;
|Type of the team, either AssignmentTeam or CourseTeam&lt;br /&gt;
|- &lt;br /&gt;
!comments_for_advertisement  &lt;br /&gt;
|text&lt;br /&gt;
|text for comments&lt;br /&gt;
|- &lt;br /&gt;
!advertise_for_partner  &lt;br /&gt;
|tinyint(1) &lt;br /&gt;
|Boolean that tells whether the team is advertising for a partner&lt;br /&gt;
|- &lt;br /&gt;
!submitted_hyperlinks  &lt;br /&gt;
|text &lt;br /&gt;
|List of submitted hyperlinks&lt;br /&gt;
|- &lt;br /&gt;
!directory_num&lt;br /&gt;
|int(11) &lt;br /&gt;
|directory number where files submitted by this team are stored&lt;br /&gt;
|- &lt;br /&gt;
!grade_for_submission&lt;br /&gt;
|int(11) &lt;br /&gt;
|Stores the grade assigned by the instructor, if any&lt;br /&gt;
|- &lt;br /&gt;
!comment_for_submission&lt;br /&gt;
|text&lt;br /&gt;
|Stores feedback from the instructor for the team&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram of tables referencing users table  ==&lt;br /&gt;
The following image shows the tables referencing teams table&lt;br /&gt;
[[File:teams_export.png]]&lt;br /&gt;
&lt;br /&gt;
== E/R diagram of tables users table is referencing to ==&lt;br /&gt;
The teams table is not referenced by any other tables&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Signed_up_teams&amp;diff=167471</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=167471"/>
		<updated>2025-12-09T03:41:16Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: /* Signed Up Teams Variable Documentation */&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 (Reimplementation) ==&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;
!comments_for_advertisement&lt;br /&gt;
|TEXT&lt;br /&gt;
|Comments provided by the team regarding the advertisement for partners.&lt;br /&gt;
|-&lt;br /&gt;
!advertising_for_partner&lt;br /&gt;
|BOOLEAN&lt;br /&gt;
|Indicates whether the team is currently advertising for a partner.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Signed Up Teams Variable Documentation (2023 version) ==&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Submission_records&amp;diff=167470</id>
		<title>Submission records</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Submission_records&amp;diff=167470"/>
		<updated>2025-12-09T03:37:31Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: /* Submission Records Variable Documentation */&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 (Reimplementation) ==&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;
!record_type  &lt;br /&gt;
|text  &lt;br /&gt;
|Type of submission record; this field may actually be unused (formerly type)&lt;br /&gt;
|- &lt;br /&gt;
!content  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Either the filename or URL identifying what was submitted&lt;br /&gt;
|- &lt;br /&gt;
!operation  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Which operation was done, either submit/remove hyperlink, or submit/remove file&lt;br /&gt;
|- &lt;br /&gt;
!team_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|id of the student's team who submitted this hyperlink or file&lt;br /&gt;
|- &lt;br /&gt;
!submitted_by&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|User who actually did the submission for their team (formerly user)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Submission Records Variable Documentation (2023 version) ==&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;
!type  &lt;br /&gt;
|text  &lt;br /&gt;
|Type of submission record; this field may actually be unused&lt;br /&gt;
|- &lt;br /&gt;
!content  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Either the filename or URL identifying what was submitted&lt;br /&gt;
|- &lt;br /&gt;
!operation  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Which operation was done, either submit/remove hyperlink, or submit/remove file&lt;br /&gt;
|- &lt;br /&gt;
!team_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|id of the student's team who submitted this hyperlink or file&lt;br /&gt;
|- &lt;br /&gt;
!user  &lt;br /&gt;
|vharchar(255)&lt;br /&gt;
|User who actually did the submission for their team&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Participants&amp;diff=167469</id>
		<title>Participants</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Participants&amp;diff=167469"/>
		<updated>2025-12-09T03:35:27Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: /* Participants variable documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Users associated with either a [http://wiki.expertiza.ncsu.edu/index.php/Courses_table course] or an [http://wiki.expertiza.ncsu.edu/index.php/Assignments assignment]&lt;br /&gt;
&lt;br /&gt;
==Participants variable documentation (Reimplementation)==&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;
!user_id&lt;br /&gt;
|INT(10)&lt;br /&gt;
|unique id referring to the user&lt;br /&gt;
|-&lt;br /&gt;
!id &lt;br /&gt;
|INT(10)&lt;br /&gt;
|unique identifier for the person participating&lt;br /&gt;
|-&lt;br /&gt;
!can_submit&lt;br /&gt;
|BIT&lt;br /&gt;
|bit to identify whether the person can submit or not&lt;br /&gt;
|-&lt;br /&gt;
!can_review&lt;br /&gt;
|BIT&lt;br /&gt;
|bit to identify whether the person can review or not&lt;br /&gt;
|-&lt;br /&gt;
!parent_id&lt;br /&gt;
|INT(10)&lt;br /&gt;
|unique id referring to parent assignment or course&lt;br /&gt;
|-&lt;br /&gt;
!OK_to_show&lt;br /&gt;
|BIT&lt;br /&gt;
|this bit tells whether the instructor can use the work that the student has submitted later on (formerly permission_granted).&lt;br /&gt;
|-&lt;br /&gt;
!grade&lt;br /&gt;
|FLOAT&lt;br /&gt;
|Grade allotted for the submission after evaluation&lt;br /&gt;
|-&lt;br /&gt;
!type&lt;br /&gt;
|VARCHAR(255)&lt;br /&gt;
|either CourseParticipant or AssignmentParticipant&lt;br /&gt;
|-&lt;br /&gt;
!handle&lt;br /&gt;
|VARCHAR(255)&lt;br /&gt;
|the handle that the user wants to be known by in this assignment&lt;br /&gt;
|-&lt;br /&gt;
!can_take_quiz&lt;br /&gt;
|BIT&lt;br /&gt;
|this bit signifies whether the participant can take a quiz on the work they are reviewing&lt;br /&gt;
|-&lt;br /&gt;
!can_mentor&lt;br /&gt;
|BIT&lt;br /&gt;
|Indicates whether the participant can act as a mentor.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Participants variable documentation (2023 version)==&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(10)&lt;br /&gt;
|unique identifier for the person participating&lt;br /&gt;
|-&lt;br /&gt;
!can_submit&lt;br /&gt;
|BIT&lt;br /&gt;
|bit to identify whether the person can submit or not&lt;br /&gt;
|-&lt;br /&gt;
!can_review&lt;br /&gt;
|BIT&lt;br /&gt;
|bit to identify whether the person can review or not&lt;br /&gt;
|-&lt;br /&gt;
!user_id&lt;br /&gt;
|INT(10)&lt;br /&gt;
|unique id referring to the user &lt;br /&gt;
|-&lt;br /&gt;
!parent_id&lt;br /&gt;
|INT(10)&lt;br /&gt;
|unique id referring to parent assignment or course&lt;br /&gt;
|-&lt;br /&gt;
!submitted_at&lt;br /&gt;
|DATETIME&lt;br /&gt;
|Date and Time of the submission made&lt;br /&gt;
|-&lt;br /&gt;
!permission_granted&lt;br /&gt;
|BIT&lt;br /&gt;
|this bit tells whether the instructor can use the work that the student has submitted later on.&lt;br /&gt;
|-&lt;br /&gt;
!penalty_accumulated&lt;br /&gt;
|INT UNSIGNED&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!grade&lt;br /&gt;
|FLOAT&lt;br /&gt;
|Grade allotted for the submission after evaluation&lt;br /&gt;
|-&lt;br /&gt;
!type&lt;br /&gt;
|VARCHAR(255)&lt;br /&gt;
|either CourseParticipant or AssignmentParticipant&lt;br /&gt;
|-&lt;br /&gt;
!handle&lt;br /&gt;
|VARCHAR(255)&lt;br /&gt;
|the handle that the user wants to be known by in this assignment&lt;br /&gt;
|-&lt;br /&gt;
!time_stamp&lt;br /&gt;
|DATETIME&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!digital_signature&lt;br /&gt;
|TEXT&lt;br /&gt;
|to record what was the evaluation&lt;br /&gt;
|-&lt;br /&gt;
!duty&lt;br /&gt;
|VARCHAR(255)&lt;br /&gt;
|the &amp;quot;role&amp;quot; of this person on their team, e.g., tester.  Used only when roles are assigned to team members.&lt;br /&gt;
|-&lt;br /&gt;
!can_take_quiz&lt;br /&gt;
|BIT&lt;br /&gt;
|this bit signifies whether the participant can take a quiz on the work they are reviewing&lt;br /&gt;
|-&lt;br /&gt;
!Hamer&lt;br /&gt;
|FLOAT&lt;br /&gt;
|the reputation of this participant using the Hamer algorithm&lt;br /&gt;
|-&lt;br /&gt;
!Lauw&lt;br /&gt;
|FLOAT&lt;br /&gt;
|the reputation of this participant using the Lauw algorithm&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Participants Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:participants_eer.jpg]]&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Users&amp;diff=167468</id>
		<title>Users</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Users&amp;diff=167468"/>
		<updated>2025-12-09T03:33:33Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Users Variable Documentation (Reimplementation) ==&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;
!username&lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|User name of the respective user (formerly name)&lt;br /&gt;
|- &lt;br /&gt;
!crypted_password  &lt;br /&gt;
|varchar(40)  &lt;br /&gt;
|Password of the respective user&lt;br /&gt;
|- &lt;br /&gt;
!role_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Role which this user corresponds to FK into ROLES table.  Examples are super_admin, admin, instructor, etc.&lt;br /&gt;
|- &lt;br /&gt;
!password_salt  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|&lt;br /&gt;
|- &lt;br /&gt;
!name&lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Registered full name of the user, e.g., Lastname, firstname (formerly fullname)&lt;br /&gt;
|- &lt;br /&gt;
!email  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Registered email of the respective user.&lt;br /&gt;
|- &lt;br /&gt;
!parent_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Parent of the respective user; corresponding to the user who created this user.  The value of this field is the primary key in the users table for the parent user, e.g., 2 if the parent is the super-admin (username admin).&lt;br /&gt;
|- &lt;br /&gt;
!private_by_default  &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|If the user is private by default; essentially Boolean. It seems that this is not used in the system, don't know what it was intended to mean.  Could be removed.&lt;br /&gt;
|- &lt;br /&gt;
!email_on_submission  &lt;br /&gt;
|tiny_int(1)  &lt;br /&gt;
|If user is to be e-mailed when something they reviewed is resubmitted.&lt;br /&gt;
|- &lt;br /&gt;
!is_new_user  &lt;br /&gt;
|tiny_int(1)  &lt;br /&gt;
|Determines whether the user has logged in before; if not, upon login the user should be presented with the new-user agreement.&lt;br /&gt;
|- &lt;br /&gt;
!handle  &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|A handle is an alternate name by which the user would want to be known, e.g., on the wiki, if this assignment involves writing on a wiki.  This allows the user to appear anonymous.  In the code, this is sometimes known as the &amp;quot;default handle&amp;quot;, because users can also create assignment-specific handles.&lt;br /&gt;
|- &lt;br /&gt;
!time_zone_pref&lt;br /&gt;
|varchar(255) &lt;br /&gt;
|Timezone that times should be displayed in when the user logs in.&lt;br /&gt;
|- &lt;br /&gt;
!public_key&lt;br /&gt;
|mediumtext&lt;br /&gt;
|Public key used for data-encryption by user.  This is used and should stay in the table, though whether the use is meaningful is not clear.&lt;br /&gt;
|- &lt;br /&gt;
!copy_of_emails&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Whether this user wants to receive copies of e-mails sent for all assignments they are participating in.  This is only implemented for instructors.  Instructors would enable it so they start getting copies of all emails being sent related to their assignments.  It is a way that the instructor can be reassured that emails are in fact being sent.&lt;br /&gt;
|- &lt;br /&gt;
!institution_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|id of the institution that the user is associated with&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== Users Variable Documentation (2023 version) ==&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;
|User name of the respective user&lt;br /&gt;
|- &lt;br /&gt;
!crypted_password  &lt;br /&gt;
|varchar(40)  &lt;br /&gt;
|Password of the respective user&lt;br /&gt;
|- &lt;br /&gt;
!role_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Role which this user corresponds to FK into ROLES table.  Examples are super_admin, admin, instructor, etc.&lt;br /&gt;
|- &lt;br /&gt;
!password_salt  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|&lt;br /&gt;
|- &lt;br /&gt;
!fullname  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Registered full name of the user, e.g., Lastname, firstname&lt;br /&gt;
|- &lt;br /&gt;
!email  &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Registered email of the respective user.&lt;br /&gt;
|- &lt;br /&gt;
!parent_id  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Parent of the respective user; corresponding to the user who created this user.  The value of this field is the primary key in the users table for the parent user, e.g., 2 if the parent is the super-admin (username admin).&lt;br /&gt;
|- &lt;br /&gt;
!private_by_default  &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|If the user is private by default; essentially Boolean. It seems that this is not used in the system, don't know what it was intended to mean.  Could be removed.&lt;br /&gt;
|- &lt;br /&gt;
!mru_directory_path  &lt;br /&gt;
|varchar(128)  &lt;br /&gt;
|To allow the user to log back in to the same directory that (s)he logged out from before.&lt;br /&gt;
|- &lt;br /&gt;
!email_on_review  &lt;br /&gt;
|tiny_int(1)  &lt;br /&gt;
|Whether the user should be e-mailed when a new review is received for their work.&lt;br /&gt;
|- &lt;br /&gt;
!email_on_submission  &lt;br /&gt;
|tiny_int(1)  &lt;br /&gt;
|If user is to be e-mailed when something they reviewed is resubmitted.&lt;br /&gt;
|- &lt;br /&gt;
!email_on_review_of_review  &lt;br /&gt;
|tiny_int(1)  &lt;br /&gt;
|Whether the user should be e-mailed when one of their reviews is meta-reviewed by another reviewer.&lt;br /&gt;
|- &lt;br /&gt;
!is_new_user  &lt;br /&gt;
|tiny_int(1)  &lt;br /&gt;
|Determines whether the user has logged in before; if not, upon login the user should be presented with the new-user agreement.&lt;br /&gt;
|- &lt;br /&gt;
!master_permssion_granted  &lt;br /&gt;
|tiny_int(4)  &lt;br /&gt;
|If the user has the master user permission is granted.  What?! What does master permission mean?!  Well, doesn't matter, because this field is set but not read in existing code.&lt;br /&gt;
|- &lt;br /&gt;
!handle  &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|A handle is an alternate name by which the user would want to be known, e.g., on the wiki, if this assignment involves writing on a wiki.  This allows the user to appear anonymous.  In the code, this is sometimes known as the &amp;quot;default handle&amp;quot;, because users can also create assignment-specific handles.&lt;br /&gt;
|- &lt;br /&gt;
!digital_certificate  &lt;br /&gt;
|mediumtext &lt;br /&gt;
|Digital certificate generated for the user to protect his password.  This is never read and could be removed.&lt;br /&gt;
|- &lt;br /&gt;
!timezonepref&lt;br /&gt;
|varchar(255) &lt;br /&gt;
|Timezone that times should be displayed in when the user logs in.&lt;br /&gt;
|- &lt;br /&gt;
!public_key&lt;br /&gt;
|mediumtext&lt;br /&gt;
|Public key used for data-encryption by user.  This is used and should stay in the table, though whether the use is meaningful is not clear.&lt;br /&gt;
|- &lt;br /&gt;
!copy_of_emails&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Whether this user wants to receive copies of e-mails sent for all assignments they are participating in.  This is only implemented for instructors.  Instructors would enable it so they start getting copies of all emails being sent related to their assignments.  It is a way that the instructor can be reassured that emails are in fact being sent.&lt;br /&gt;
|- &lt;br /&gt;
!institution_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|id of the institution that the user is associated with&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== E/R diagram of tables referencing users table  ==&lt;br /&gt;
The following image shows the tables referencing users table&lt;br /&gt;
[[File:Users_export.png]]&lt;br /&gt;
&lt;br /&gt;
== E/R diagram of tables users table is referencing to ==&lt;br /&gt;
The users table is not referenced by any other tables&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Suggestions&amp;diff=167467</id>
		<title>Suggestions</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Suggestions&amp;diff=167467"/>
		<updated>2025-12-09T03:29:41Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Suggestions Variable Documentation (Reimplementation) ==&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;
!assignment_id&lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the assignment for which suggestions are published&lt;br /&gt;
|- &lt;br /&gt;
!title&lt;br /&gt;
|varchar(255) &lt;br /&gt;
|Stores the title of the suggestion&lt;br /&gt;
|- &lt;br /&gt;
!description&lt;br /&gt;
|text&lt;br /&gt;
|Stores the description of the suggestion&lt;br /&gt;
|- &lt;br /&gt;
!status&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|Stores the status of the suggestion(Initiated/Approved/Rejected)&lt;br /&gt;
|- &lt;br /&gt;
!username&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|Stores the username of the user who provides suggestion (formerly unityID)&lt;br /&gt;
|- &lt;br /&gt;
!signup_preference&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|Stores the signup_preference(Y/N) of the user who provides suggestion&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== Suggestions Variable Documentation (2023 version) ==&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;
!assignment_id&lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the assignment for which suggestions are published&lt;br /&gt;
|- &lt;br /&gt;
!title&lt;br /&gt;
|varchar(255) &lt;br /&gt;
|Stores the title of the suggestion&lt;br /&gt;
|- &lt;br /&gt;
!description&lt;br /&gt;
|text&lt;br /&gt;
|Stores the description of the suggestion&lt;br /&gt;
|- &lt;br /&gt;
!status&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|Stores the status of the suggestion(Initiated/Approved/Rejected)&lt;br /&gt;
|- &lt;br /&gt;
!unityID&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|Stores the unityID of the user who provides suggestion&lt;br /&gt;
|- &lt;br /&gt;
!signup_preference&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|Stores the signup_preference(Y/N) of the user who provides suggestion&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram of tables referencing suggestions table  ==&lt;br /&gt;
The following table doesn't reference to other tables in the database&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram of tables suggestions table is referencing to ==&lt;br /&gt;
The tag_prompts table is not referenced by any other tables&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Responses&amp;diff=167466</id>
		<title>Responses</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Responses&amp;diff=167466"/>
		<updated>2025-12-09T03:27:53Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: /* Response variable documentation */&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 (Reimplementation)==&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;
!response_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 (formerly map_id)&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;
==Response variable documentation (2023 version)==&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;
== 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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Response_maps&amp;diff=167465</id>
		<title>Response maps</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Response_maps&amp;diff=167465"/>
		<updated>2025-12-09T03:26:41Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: /* Response maps variable documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Maps a connection between the [[participants]] as reviewers and [[participants]] or [[teams]] as reviewees&lt;br /&gt;
&lt;br /&gt;
==Response maps variable documentation (Reimplementation)==&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_object_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The object being reviewed in the [[responses|response]]. Possible objects include other ResponseMaps or [[assignments]]&lt;br /&gt;
|-&lt;br /&gt;
!reviewer_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[participants|participant]] (actually AssignmentParticipant) providing the response&lt;br /&gt;
|-&lt;br /&gt;
!reviewee_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|Dependent on which subclass of ResponseMap this object is.  For a ReviewResponseMap, the [[teams|team]] (AssignmentTeam) receiving the response.  For a TeammateReviewResponseMap, the AssignmentParticipant who is being reviewed.&lt;br /&gt;
|-&lt;br /&gt;
!type&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|Used for subclassing the response map. Available subclasses are ReviewResponseMap, MetareviewResponseMap, FeedbackResponseMap, TeammateReviewResponseMap  &lt;br /&gt;
|-&lt;br /&gt;
!created_at&lt;br /&gt;
|DATETIME&lt;br /&gt;
|Date and Time for when the record was created&lt;br /&gt;
|-&lt;br /&gt;
!updated_at&lt;br /&gt;
|DATETIME&lt;br /&gt;
|Date and Time when the last update was made&lt;br /&gt;
|-&lt;br /&gt;
!for_calibration&lt;br /&gt;
|int(11)&lt;br /&gt;
|Tells whether the record will be used for calibration or not.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Response maps variable documentation (2023 version)==&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_object_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The object being reviewed in the [[responses|response]]. Possible objects include other ResponseMaps or [[assignments]]&lt;br /&gt;
|-&lt;br /&gt;
!reviewer_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[participants|participant]] (actually AssignmentParticipant) providing the response&lt;br /&gt;
|-&lt;br /&gt;
!reviewee_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|Dependent on which subclass of ResponseMap this object is.  For a ReviewResponseMap, the [[teams|team]] (AssignmentTeam) receiving the response.  For a TeammateReviewResponseMap, the AssignmentParticipant who is being reviewed.&lt;br /&gt;
|-&lt;br /&gt;
!type&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|Used for subclassing the response map. Available subclasses are ReviewResponseMap, MetareviewResponseMap, FeedbackResponseMap, TeammateReviewResponseMap  &lt;br /&gt;
|-&lt;br /&gt;
!created_at&lt;br /&gt;
|DATETIME&lt;br /&gt;
|Date and Time for when the record was created&lt;br /&gt;
|-&lt;br /&gt;
!updated_at&lt;br /&gt;
|DATETIME&lt;br /&gt;
|Date and Time when the last update was made&lt;br /&gt;
|-&lt;br /&gt;
!calibrate_to&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Tells whether the record will be used for calibration or not.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Back to the [[Documentation_on_Database_Tables|database documentation]]&lt;/div&gt;</summary>
		<author><name>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Quiz_question_choices&amp;diff=167464</id>
		<title>Quiz question choices</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Quiz_question_choices&amp;diff=167464"/>
		<updated>2025-12-09T03:24:37Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Quiz Question Choices Variable Documentation (Reimplementation) ==&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 identifier for the record&lt;br /&gt;
|-&lt;br /&gt;
!question_id&lt;br /&gt;
|INT(11)&lt;br /&gt;
|the unique identifier for the question&lt;br /&gt;
|-&lt;br /&gt;
!txt&lt;br /&gt;
|TXT&lt;br /&gt;
|The description for the question&lt;br /&gt;
|-&lt;br /&gt;
!is_correct&lt;br /&gt;
|TINYINT(1)&lt;br /&gt;
|to check whether it is correct or not&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
== Quiz Question Choices Variable Documentation (2023 version) ==&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 identifier for the record&lt;br /&gt;
|-&lt;br /&gt;
!question_id&lt;br /&gt;
|INT(11)&lt;br /&gt;
|the unique identifier for the question&lt;br /&gt;
|-&lt;br /&gt;
!txt&lt;br /&gt;
|TXT&lt;br /&gt;
|The description for the question&lt;br /&gt;
|-&lt;br /&gt;
!iscorrect&lt;br /&gt;
|BIT&lt;br /&gt;
|to check whether it is correct or not&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Schema Migrations Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Schema Migrations Table as Foreign Key Relationship.&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Due_dates&amp;diff=167463</id>
		<title>Due dates</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Due_dates&amp;diff=167463"/>
		<updated>2025-12-09T03:19:08Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: /* Due Dates Variable Documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Due Dates table gives information regarding the due dates associated to each of the assignment.&lt;br /&gt;
== Due Dates Variable Documentation (Reimplementation) ==&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;
|Unique ID for each Due Date record&lt;br /&gt;
|- &lt;br /&gt;
!due_at   &lt;br /&gt;
|datetime  &lt;br /&gt;
|Deadline for submission&lt;br /&gt;
|- &lt;br /&gt;
!deadline_type_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|whether a submission deadline, a review deadline, etc.&lt;br /&gt;
|- &lt;br /&gt;
!assignment_id&lt;br /&gt;
|int(11)  &lt;br /&gt;
|the assignment that the deadline is related to (formerly parent_id)&lt;br /&gt;
|- &lt;br /&gt;
!submission_allowed_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|this is &amp;quot;OK&amp;quot;, &amp;quot;Late&amp;quot; or &amp;quot;No&amp;quot;, depending on whether submission is allowed before this due date&lt;br /&gt;
|- &lt;br /&gt;
!review_allowed_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|this is &amp;quot;No&amp;quot;, &amp;quot;Late&amp;quot; or &amp;quot;OK&amp;quot;, depending on whether reviewing is allowed before this due date&lt;br /&gt;
|- &lt;br /&gt;
!review_of_review_allowed_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|this is &amp;quot;OK&amp;quot;, &amp;quot;Late&amp;quot; or &amp;quot;No&amp;quot;, depending on whether meta-reviewing is allowed before this due date&lt;br /&gt;
|- &lt;br /&gt;
!round   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Number of the review round to which this due date pertains&lt;br /&gt;
|- &lt;br /&gt;
!flag   &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Not clear what this is.  It is zero in all due dates except some between 2010/11/15 and 2011/05/25.&lt;br /&gt;
|- &lt;br /&gt;
!threshold   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|How many hours before the due date a reminder is sent to participants&lt;br /&gt;
|- &lt;br /&gt;
!delayed_job_id&lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the delayed job, presumably the job that sends reminders of this due date.&lt;br /&gt;
|- &lt;br /&gt;
!deadline_name   &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Name of the deadline.  This is either NULL or the empty string in all deadlines.&lt;br /&gt;
|- &lt;br /&gt;
!description_url   &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|URL of the description&lt;br /&gt;
|- &lt;br /&gt;
!quiz_allowed_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the quiz associated to the Due Date. No! This does not make any sense.  efg has no idea of what this field is for.&lt;br /&gt;
|- &lt;br /&gt;
!teammate_review_allowed_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|this is &amp;quot;OK&amp;quot;, &amp;quot;Late&amp;quot; or &amp;quot;No&amp;quot;, depending on whether teammate review is allowed before this due date&lt;br /&gt;
|- &lt;br /&gt;
!type   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Type of the Due Date.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Due Dates Variable Documentation (2023 version) ==&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;
|Unique ID for each Due Date record&lt;br /&gt;
|- &lt;br /&gt;
!due_at   &lt;br /&gt;
|datetime  &lt;br /&gt;
|Deadline for submission&lt;br /&gt;
|- &lt;br /&gt;
!deadline_type_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|whether a submission deadline, a review deadline, etc.&lt;br /&gt;
|- &lt;br /&gt;
!parent_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|the assignment that the deadline is related to&lt;br /&gt;
|- &lt;br /&gt;
!submission_allowed_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|this is &amp;quot;OK&amp;quot;, &amp;quot;Late&amp;quot; or &amp;quot;No&amp;quot;, depending on whether submission is allowed before this due date&lt;br /&gt;
|- &lt;br /&gt;
!review_allowed_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|this is &amp;quot;No&amp;quot;, &amp;quot;Late&amp;quot; or &amp;quot;OK&amp;quot;, depending on whether reviewing is allowed before this due date&lt;br /&gt;
|- &lt;br /&gt;
!review_of_review_allowed_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|this is &amp;quot;OK&amp;quot;, &amp;quot;Late&amp;quot; or &amp;quot;No&amp;quot;, depending on whether meta-reviewing is allowed before this due date&lt;br /&gt;
|- &lt;br /&gt;
!round   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Number of the review round to which this due date pertains&lt;br /&gt;
|- &lt;br /&gt;
!flag   &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Not clear what this is.  It is zero in all due dates except some between 2010/11/15 and 2011/05/25.&lt;br /&gt;
|- &lt;br /&gt;
!threshold   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|How many hours before the due date a reminder is sent to participants&lt;br /&gt;
|- &lt;br /&gt;
!delayed_job_id&lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the delayed job, presumably the job that sends reminders of this due date.&lt;br /&gt;
|- &lt;br /&gt;
!deadline_name   &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|Name of the deadline.  This is either NULL or the empty string in all deadlines.&lt;br /&gt;
|- &lt;br /&gt;
!description_url   &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|URL of the description&lt;br /&gt;
|- &lt;br /&gt;
!quiz_allowed_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of the quiz associated to the Due Date. No! This does not make any sense.  efg has no idea of what this field is for.&lt;br /&gt;
|- &lt;br /&gt;
!teammate_review_allowed_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|this is &amp;quot;OK&amp;quot;, &amp;quot;Late&amp;quot; or &amp;quot;No&amp;quot;, depending on whether teammate review is allowed before this due date&lt;br /&gt;
|- &lt;br /&gt;
!type   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Type of the Due Date.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Due Date Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:due_dates_imported.png]]&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables refer the Due Date Table as Foreign Key Relationship.&lt;br /&gt;
&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Courses_table&amp;diff=167462</id>
		<title>Courses table</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Courses_table&amp;diff=167462"/>
		<updated>2025-12-09T03:16:19Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: /* Courses Variable Documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Courses table gives information regarding the Courses.&lt;br /&gt;
== Courses Variable Documentation (Reimplementation) ==&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 name of the course&lt;br /&gt;
|-&lt;br /&gt;
!instructor_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[users|user]] who created this course&lt;br /&gt;
|-&lt;br /&gt;
!directory_path&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|The directory to be used for work submitted to this course (assuming that files will be submitted, rather than wiki pages, etc.). Concatenated with the instructor's name to create a unique location within the directory hierarchy.  We expect that submission directories for particular assignments in the course will be subdirectories of this directory.&lt;br /&gt;
|-&lt;br /&gt;
!info&lt;br /&gt;
|text&lt;br /&gt;
|A description of the course&lt;br /&gt;
|-&lt;br /&gt;
!created_at&lt;br /&gt;
|datetime&lt;br /&gt;
|The timestamp at which this course was created&lt;br /&gt;
|-&lt;br /&gt;
!updated_at&lt;br /&gt;
|datetime&lt;br /&gt;
|The timestamp at which this course was last updated&lt;br /&gt;
|-&lt;br /&gt;
!is_private&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Whether or not the course is available to other administrators and instructors&lt;br /&gt;
|-&lt;br /&gt;
!institution_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The institution this course belongs to.&lt;br /&gt;
|-&lt;br /&gt;
!language&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|The language/locale setting for the course.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Courses Variable Documentation (2023 version) ==&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 name of the course&lt;br /&gt;
|-&lt;br /&gt;
!instructor_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The [[users|user]] who created this course&lt;br /&gt;
|-&lt;br /&gt;
!directory_path&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|The directory to be used for work submitted to this course (assuming that files will be submitted, rather than wiki pages, etc.). Concatenated with the instructor's name to create a unique location within the directory hierarchy.  We expect that submission directories for particular assignments in the course will be subdirectories of this directory.&lt;br /&gt;
|-&lt;br /&gt;
!info&lt;br /&gt;
|text&lt;br /&gt;
|A description of the course&lt;br /&gt;
|-&lt;br /&gt;
!created_at&lt;br /&gt;
|datetime&lt;br /&gt;
|The timestamp at which this course was created&lt;br /&gt;
|-&lt;br /&gt;
!updated_at&lt;br /&gt;
|datetime&lt;br /&gt;
|The timestamp at which this course was last updated&lt;br /&gt;
|-&lt;br /&gt;
!private&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Whether or not the course is available to other administrators and instructors&lt;br /&gt;
|-&lt;br /&gt;
!institutions_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|Whether or not the course is available to other administrators and instructors&lt;br /&gt;
|-&lt;br /&gt;
!locale&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|The language/locale setting for the course.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Courses Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:courses_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
Tables referred by the Courses Table as Foreign Key Relationship.&lt;br /&gt;
'''NOTE: courses_users table does not exist in the database.'''&lt;br /&gt;
&lt;br /&gt;
[[File:courses_exported.png]]&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Bookmark_ratings&amp;diff=167461</id>
		<title>Bookmark ratings</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Bookmark_ratings&amp;diff=167461"/>
		<updated>2025-12-09T03:13:49Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: /* Bookmark Ratings Variable Documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Bookmark Ratings table gives information regarding the ratings provided to each of these bookmarks.&lt;br /&gt;
== Bookmark Ratings Variable Documentation (Reimplementation) ==&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;
|Unique ID for each bookmark_ratings record.&lt;br /&gt;
|- &lt;br /&gt;
!artifact_id   &lt;br /&gt;
|int(11) &lt;br /&gt;
|ID of the Bookmark.&lt;br /&gt;
|- &lt;br /&gt;
!rater_id   &lt;br /&gt;
|int(11)&lt;br /&gt;
|User ID who rated the particular Bookmark.&lt;br /&gt;
|- &lt;br /&gt;
!ratings   &lt;br /&gt;
|int(11)&lt;br /&gt;
|Rating provided to that bookmark.&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;
== Bookmark Ratings Variable Documentation (2023 version) ==&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;
|Unique ID for each bookmark_ratings record.&lt;br /&gt;
|- &lt;br /&gt;
!bookmark_id   &lt;br /&gt;
|int(11) &lt;br /&gt;
|ID of the Bookmark.&lt;br /&gt;
|- &lt;br /&gt;
!user_id   &lt;br /&gt;
|int(11)&lt;br /&gt;
|User ID who rated the particular Bookmark.&lt;br /&gt;
|- &lt;br /&gt;
!rating   &lt;br /&gt;
|int(11)&lt;br /&gt;
|Rating provided to that bookmark.&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;
== E/R diagram for Parents Tables ==&lt;br /&gt;
No Tables were referred by the Bookmark_ratings Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
No Tables were referred by the Bookmark_ratings Table as Foreign Key Relationship.&lt;br /&gt;
&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>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Assignments&amp;diff=167460</id>
		<title>Assignments</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Assignments&amp;diff=167460"/>
		<updated>2025-12-09T03:10:23Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: /* Current Assignment Variable Documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Assignments table contains one record for each assignment created by an [[users|instructor]] or [[users|administrator]].&lt;br /&gt;
&lt;br /&gt;
== Current Assignment Variable Documentation (Reimplementation) ==&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #e6f7ff; border: 1px solid #0077b3; padding: 10px; margin-bottom: 20px;&amp;quot;&amp;gt;&lt;br /&gt;
'''Structure Update:''' This table structure was updated in the latest release. Several columns were renamed (e.g., ''spec_location'' to ''URL'') and unused columns were removed.&lt;br /&gt;
&amp;lt;/div&amp;gt;&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;
|This object's unique ID value. One per object.&lt;br /&gt;
|- &lt;br /&gt;
!created_at   &lt;br /&gt;
|datetime  &lt;br /&gt;
|The date/time stamp when this record was created&lt;br /&gt;
|- &lt;br /&gt;
!updated_at   &lt;br /&gt;
|datetime  &lt;br /&gt;
|The date/time stamp when this record was last modified&lt;br /&gt;
|- &lt;br /&gt;
!name   &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|The name given to this assignment by the instructor/administrator who created it&lt;br /&gt;
|- &lt;br /&gt;
!directory_path   &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|If this is an assignment to which files are being submitted, this is the first part of the directory path for the submissions.&lt;br /&gt;
|- &lt;br /&gt;
!submitter_count   &lt;br /&gt;
|int(10)  &lt;br /&gt;
|Number of creators who have submitted so far to this assignment&lt;br /&gt;
|- &lt;br /&gt;
!course_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID in the [http://wiki.expertiza.ncsu.edu/index.php/Courses_table Courses] table of the course with which this assignment is associated&lt;br /&gt;
|- &lt;br /&gt;
!instructor_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of a instructor who created the assignment&lt;br /&gt;
|- &lt;br /&gt;
!private   &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|whether assignment is visible to other instructors&lt;br /&gt;
|- &lt;br /&gt;
!num_reviews   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|number of reviews done by a student for this assignment&lt;br /&gt;
|- &lt;br /&gt;
!num_review_of_reviews   &lt;br /&gt;
|int(10)  &lt;br /&gt;
|number of reviews of reviews done by a student for this assignment&lt;br /&gt;
|- &lt;br /&gt;
!num_review_of_reviewers   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|number of reviewers who have reviewed the assignment.&lt;br /&gt;
|- &lt;br /&gt;
!reviews_visible_to_all   &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|if false, other reviewers can't see this reviewer's review.&lt;br /&gt;
|- &lt;br /&gt;
!num_reviewers   &lt;br /&gt;
|int(10)  &lt;br /&gt;
|Number of reviewers.&lt;br /&gt;
|- &lt;br /&gt;
!URL   &lt;br /&gt;
|text  &lt;br /&gt;
|URL of the assignment (formerly spec_location).&lt;br /&gt;
|- &lt;br /&gt;
!max_team_size &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Maximum number of participants allowed on the team.&lt;br /&gt;
|- &lt;br /&gt;
!staggered_deadline &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether deadlines are staggered or not.&lt;br /&gt;
|- &lt;br /&gt;
!allow_suggestions &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether participants in an assignment with topics may suggest additional topics.&lt;br /&gt;
|- &lt;br /&gt;
!days_between_submissions &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Number of Days available between submissions.&lt;br /&gt;
|- &lt;br /&gt;
!review_assignment_strategy &lt;br /&gt;
|varchar(12)  &lt;br /&gt;
|Strategy used for assigning reviews.&lt;br /&gt;
|- &lt;br /&gt;
!max_reviews_per_submission&lt;br /&gt;
|int(11)&lt;br /&gt;
|Maximum number of reviews allowed per submission.&lt;br /&gt;
|- &lt;br /&gt;
!review_topic_threshold&lt;br /&gt;
|int(11)  &lt;br /&gt;
|Threshold for review topics.&lt;br /&gt;
|- &lt;br /&gt;
!copy_flag &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Whether the assignment has a copy or not.&lt;br /&gt;
|- &lt;br /&gt;
!rounds_of_reviews &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of rounds of reviews done for the assignment.&lt;br /&gt;
|- &lt;br /&gt;
!microtask &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether this is a microtask assignment.&lt;br /&gt;
|- &lt;br /&gt;
!require_quiz &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether the assignment requires a quiz or not.&lt;br /&gt;
|- &lt;br /&gt;
!num_quiz_questions &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of questions present for the quiz.&lt;br /&gt;
|- &lt;br /&gt;
!is_coding_assignment &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether whether the given assignment is a coding assignment or not.&lt;br /&gt;
|- &lt;br /&gt;
!topics_assigned_by_bidding &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicates whether topics are to be bid on (formerly is_intelligent).&lt;br /&gt;
|- &lt;br /&gt;
!calculate_penalty &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether penalty needs to be calculated for the given assignment.&lt;br /&gt;
|- &lt;br /&gt;
!late_policy_id &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID in the late policy table.&lt;br /&gt;
|- &lt;br /&gt;
!is_penalty_calculated &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether the penalty for the assignment is calculated or not.&lt;br /&gt;
|- &lt;br /&gt;
!show_teammate_reviews &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether teammate reviews are shown or not.&lt;br /&gt;
|- &lt;br /&gt;
!available_to_students &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether the given assignment is available to students (formerly availability_flag).&lt;br /&gt;
|- &lt;br /&gt;
!can_bookmark_topics &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether students can bookmark topics (formerly use_bookmark).&lt;br /&gt;
|- &lt;br /&gt;
!can_review_same_topic &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether a reviewer can review the same topic again.&lt;br /&gt;
|- &lt;br /&gt;
!can_choose_topic_to_review &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether a reviewer can choose a topic to review.&lt;br /&gt;
|- &lt;br /&gt;
!is_calibrated &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether the assignment is calibrated or not.&lt;br /&gt;
|- &lt;br /&gt;
!is_selfreview_enabled &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether an author can review his/her work.&lt;br /&gt;
|- &lt;br /&gt;
!is_anonymous &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether whether the reviewer information is anonymous or not.&lt;br /&gt;
|- &lt;br /&gt;
!num_reviews_required  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of reviews required for this assignment.&lt;br /&gt;
|- &lt;br /&gt;
!num_metareviews_required  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of metareviews required for this assignment.&lt;br /&gt;
|- &lt;br /&gt;
!num_metareviews_allowed  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of metareviews allowed for this assignment.&lt;br /&gt;
|- &lt;br /&gt;
!num_reviews_allowed  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of reviews allowed for this assignment.&lt;br /&gt;
|-&lt;br /&gt;
!is_answer_tagging_allowed&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicating if answer tagging is allowed.&lt;br /&gt;
|-&lt;br /&gt;
!allow_selecting_additional_reviews_after_1st_round&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Allows students to take more reviews after the first round.&lt;br /&gt;
|-&lt;br /&gt;
!sample_assignment_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|ID of a sample assignment used for calibration/example.&lt;br /&gt;
|-&lt;br /&gt;
!vary_by_topic&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if rubrics/criteria vary by topic.&lt;br /&gt;
|-&lt;br /&gt;
!vary_by_round&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if rubrics/criteria vary by round.&lt;br /&gt;
|-&lt;br /&gt;
!team_reviewing_enabled&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if team reviewing is enabled.&lt;br /&gt;
|-&lt;br /&gt;
!bidding_for_reviews_enabled&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if bidding for reviews is enabled.&lt;br /&gt;
|-&lt;br /&gt;
!auto_assign_mentor&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if a mentor is automatically assigned.&lt;br /&gt;
|-&lt;br /&gt;
!team_members_have_duties&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if team members have specific duties (formerly duty_based_assignment).&lt;br /&gt;
|-&lt;br /&gt;
!questionnaire_varies_by_duty&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if the questionnaire changes based on the duty.&lt;br /&gt;
|-&lt;br /&gt;
!enable_pair_programming&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if pair programming is enabled for this assignment.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Current Assignment Variable Documentation (2023 version) ==&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;
|This object's unique ID value. One per object.&lt;br /&gt;
|- &lt;br /&gt;
!created_at   &lt;br /&gt;
|datetime  &lt;br /&gt;
|The date/time stamp when this record was created&lt;br /&gt;
|- &lt;br /&gt;
!updated_at   &lt;br /&gt;
|datetime  &lt;br /&gt;
|The date/time stamp when this record was last modified&lt;br /&gt;
|- &lt;br /&gt;
!name   &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|The name given to this assignment by the instructor/administrator who created it&lt;br /&gt;
|- &lt;br /&gt;
!directory_path   &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|If this is an assignment to which files are being submitted, this is the first part of the directory path for the submissions.&lt;br /&gt;
|- &lt;br /&gt;
!submitter_count   &lt;br /&gt;
|int(10)  &lt;br /&gt;
|Number of creators who have submitted so far to this assignment&lt;br /&gt;
|- &lt;br /&gt;
!course_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID in the [http://wiki.expertiza.ncsu.edu/index.php/Courses_table Courses] table of the course with which this assignment is associated&lt;br /&gt;
|- &lt;br /&gt;
!instructor_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of a instructor who created the assignment&lt;br /&gt;
|- &lt;br /&gt;
!private   &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|whether assignment is visible to other instructors&lt;br /&gt;
|- &lt;br /&gt;
!num_reviews   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|number of reviews done by a student for this assignment&lt;br /&gt;
|- &lt;br /&gt;
!num_review_of_reviews   &lt;br /&gt;
|int(10)  &lt;br /&gt;
|number of reviews of reviews done by a student for this assignment&lt;br /&gt;
|- &lt;br /&gt;
!num_review_of_reviewers   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|number of reviewers who have reviewed the assignment.&lt;br /&gt;
|- &lt;br /&gt;
!reviews_visible_to_all   &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|if false, other reviewers can't see this reviewer's review.&lt;br /&gt;
|- &lt;br /&gt;
!num_reviewers   &lt;br /&gt;
|int(10)  &lt;br /&gt;
|Number of reviewers.&lt;br /&gt;
|- &lt;br /&gt;
!spec_location&lt;br /&gt;
|text  &lt;br /&gt;
|URL of the assignment.&lt;br /&gt;
|- &lt;br /&gt;
!max_team_size &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Maximum number of participants allowed on the team.&lt;br /&gt;
|- &lt;br /&gt;
!staggered_deadline &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether deadlines are staggered or not.&lt;br /&gt;
|- &lt;br /&gt;
!allow_suggestions &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether participants in an assignment with topics may suggest additional topics.&lt;br /&gt;
|- &lt;br /&gt;
!days_between_submissions &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Number of Days available between submissions.&lt;br /&gt;
|- &lt;br /&gt;
!review_assignment_strategy &lt;br /&gt;
|varchar(12)  &lt;br /&gt;
|Strategy used for assigning reviews.&lt;br /&gt;
|- &lt;br /&gt;
!max_reviews_per_submission&lt;br /&gt;
|int(11)&lt;br /&gt;
|Maximum number of reviews allowed per submission.&lt;br /&gt;
|- &lt;br /&gt;
!review_topic_threshold&lt;br /&gt;
|int(11)  &lt;br /&gt;
|Threshold for review topics.&lt;br /&gt;
|- &lt;br /&gt;
!copy_flag &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Whether the assignment has a copy or not.&lt;br /&gt;
|- &lt;br /&gt;
!rounds_of_reviews &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of rounds of reviews done for the assignment.&lt;br /&gt;
|- &lt;br /&gt;
!microtask &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether this is a microtask assignment.&lt;br /&gt;
|- &lt;br /&gt;
!require_quiz &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether the assignment requires a quiz or not.&lt;br /&gt;
|- &lt;br /&gt;
!num_quiz_questions &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of questions present for the quiz.&lt;br /&gt;
|- &lt;br /&gt;
!is_coding_assignment &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether whether the given assignment is a coding assignment or not.&lt;br /&gt;
|- &lt;br /&gt;
!is_intelligent&lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicates whether topics are to be bid on.&lt;br /&gt;
|- &lt;br /&gt;
!calculate_penalty &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether penalty needs to be calculated for the given assignment.&lt;br /&gt;
|- &lt;br /&gt;
!late_policy_id &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID in the late policy table.&lt;br /&gt;
|- &lt;br /&gt;
!is_penalty_calculated &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether the penalty for the assignment is calculated or not.&lt;br /&gt;
|- &lt;br /&gt;
!show_teammate_reviews &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether teammate reviews are shown or not.&lt;br /&gt;
|- &lt;br /&gt;
!availability_flag&lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether the given assignment is available to students.&lt;br /&gt;
|- &lt;br /&gt;
!use_bookmark&lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether students can bookmark topics.&lt;br /&gt;
|- &lt;br /&gt;
!can_review_same_topic &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether a reviewer can review the same topic again.&lt;br /&gt;
|- &lt;br /&gt;
!can_choose_topic_to_review &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether a reviewer can choose a topic to review.&lt;br /&gt;
|- &lt;br /&gt;
!is_calibrated &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether the assignment is calibrated or not.&lt;br /&gt;
|- &lt;br /&gt;
!is_selfreview_enabled &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether an author can review his/her work.&lt;br /&gt;
|- &lt;br /&gt;
!is_anonymous &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether whether the reviewer information is anonymous or not.&lt;br /&gt;
|- &lt;br /&gt;
!num_reviews_required  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of reviews required for this assignment.&lt;br /&gt;
|- &lt;br /&gt;
!num_metareviews_required  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of metareviews required for this assignment.&lt;br /&gt;
|- &lt;br /&gt;
!num_metareviews_allowed  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of metareviews allowed for this assignment.&lt;br /&gt;
|- &lt;br /&gt;
!num_reviews_allowed  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of reviews allowed for this assignment.&lt;br /&gt;
|-&lt;br /&gt;
!is_answer_tagging_allowed&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicating if answer tagging is allowed.&lt;br /&gt;
|-&lt;br /&gt;
!allow_selecting_additional_reviews_after_1st_round&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Allows students to take more reviews after the first round.&lt;br /&gt;
|-&lt;br /&gt;
!sample_assignment_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|ID of a sample assignment used for calibration/example.&lt;br /&gt;
|-&lt;br /&gt;
!vary_by_topic&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if rubrics/criteria vary by topic.&lt;br /&gt;
|-&lt;br /&gt;
!vary_by_round&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if rubrics/criteria vary by round.&lt;br /&gt;
|-&lt;br /&gt;
!team_reviewing_enabled&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if team reviewing is enabled.&lt;br /&gt;
|-&lt;br /&gt;
!bidding_for_reviews_enabled&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if bidding for reviews is enabled.&lt;br /&gt;
|-&lt;br /&gt;
!auto_assign_mentor&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if a mentor is automatically assigned.&lt;br /&gt;
|-&lt;br /&gt;
!duty_based_assignment&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if team members have specific duties.&lt;br /&gt;
|-&lt;br /&gt;
!questionnaire_varies_by_duty&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if the questionnaire changes based on the duty.&lt;br /&gt;
|-&lt;br /&gt;
!enable_pair_programming&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicates if pair programming is enabled for this assignment.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parents Tables ==&lt;br /&gt;
Tables referred by the Assignment Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:assignment_imported.png]]&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
Tables which refer the Assignment Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:assignment_exported.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;hr /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= ARCHIVED: Previous Schema =&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #f9f9f9; border: 1px solid #aaa; padding: 10px;&amp;quot;&amp;gt;&lt;br /&gt;
'''Deprecated:''' The table structure below represents the schema prior to the recent updates. It is retained here for historical reference.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot; &lt;br /&gt;
!Field Name !!Type !!Description &lt;br /&gt;
|- &lt;br /&gt;
!id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|This object's unique ID value. One per object.&lt;br /&gt;
|- &lt;br /&gt;
!created_at   &lt;br /&gt;
|datetime  &lt;br /&gt;
|The date/time stamp when this record was created&lt;br /&gt;
|- &lt;br /&gt;
!updated_at   &lt;br /&gt;
|datetime  &lt;br /&gt;
|The date/time stamp when this record was last modified&lt;br /&gt;
|- &lt;br /&gt;
!name   &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|The name given to this assignment by the instructor/administrator who created it&lt;br /&gt;
|- &lt;br /&gt;
!directory_path   &lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|If this is an assignment to which files are being submitted, this is the first part of the directory path for the submissions. If this is a wiki assignment, it is the base URL for wiki pages submitted by the creators&lt;br /&gt;
|- &lt;br /&gt;
!submitter_count   &lt;br /&gt;
|int(10)  &lt;br /&gt;
|Number of creators who have submitted so far to this assignment&lt;br /&gt;
|- &lt;br /&gt;
!course_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID in the [http://wiki.expertiza.ncsu.edu/index.php/Courses_table Courses] table of the course with which this assignment is associated&lt;br /&gt;
|- &lt;br /&gt;
!instructor_id   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID of a instructor who created the assignment&lt;br /&gt;
|- &lt;br /&gt;
!private   &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|whether assignment is visible to other instructors&lt;br /&gt;
|- &lt;br /&gt;
!num_reviews   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|number of reviews done by a student for this assignment&lt;br /&gt;
|- &lt;br /&gt;
!num_review_of_reviews   &lt;br /&gt;
|int(10)  &lt;br /&gt;
|number of reviews of reviews done by a student for this assignment&lt;br /&gt;
|- &lt;br /&gt;
!num_review_of_reviewers   &lt;br /&gt;
|int(11)  &lt;br /&gt;
|number of reviewers who have reviewed the assignment.&lt;br /&gt;
|- &lt;br /&gt;
!reviews_visible_to_all   &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|if false, other reviewers can't see this reviewer's review.&lt;br /&gt;
|- &lt;br /&gt;
!num_reviewers   &lt;br /&gt;
|int(10)  &lt;br /&gt;
|Number of reviewers.&lt;br /&gt;
|- &lt;br /&gt;
!spec_location   &lt;br /&gt;
|text  &lt;br /&gt;
|url of the assignment.&lt;br /&gt;
|- &lt;br /&gt;
!max_team_size &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Maximum number of participants allowed on the team.&lt;br /&gt;
|- &lt;br /&gt;
!staggered_deadline &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether deadlines are staggered or not *************&lt;br /&gt;
|- &lt;br /&gt;
!allow_suggestions &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether participants in an assignment with topics may suggest additional topics for the instructor to approve.&lt;br /&gt;
|- &lt;br /&gt;
!days_between_submissions &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Number of Days available between submissions *************&lt;br /&gt;
|- &lt;br /&gt;
!review_assignment_strategy &lt;br /&gt;
|varchar(12)  &lt;br /&gt;
|&lt;br /&gt;
|- &lt;br /&gt;
!review_topic_threshold&lt;br /&gt;
|int(11)  &lt;br /&gt;
|***********************************&lt;br /&gt;
|- &lt;br /&gt;
!copy_flag &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Whether the assignment has a copy or not. *************&lt;br /&gt;
|- &lt;br /&gt;
!rounds_of_reviews &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of rounds of reviews done for the assignment *************&lt;br /&gt;
|- &lt;br /&gt;
!microtask &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether this is a microtask assignment, i.e., if it has topics that are worth varying amounts of credit, and may be selected by students.&lt;br /&gt;
|- &lt;br /&gt;
!require_quiz &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether the assignment requires a quiz or not. *************&lt;br /&gt;
|- &lt;br /&gt;
!num_quiz_questions &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of questions present for the quiz. *************&lt;br /&gt;
|- &lt;br /&gt;
!is_coding_assignment &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether whether the given assignment is a coding assignment or not *************&lt;br /&gt;
|- &lt;br /&gt;
!is_intelligent &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicates whether topics are to be bid on, and then the &amp;quot;intelligent assignment&amp;quot; algorithm will assign teams to topics *************&lt;br /&gt;
|- &lt;br /&gt;
!calculate_penalty &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether penalty needs to be calculated for the given assignment. *************&lt;br /&gt;
|- &lt;br /&gt;
!late_policy_id &lt;br /&gt;
|int(11)  &lt;br /&gt;
|ID in the ******late policy table***** *************. Indicating which late policy is applied here.&lt;br /&gt;
|- &lt;br /&gt;
!is_penalty_calculated &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether the penalty for the assignment is calculated or not. *************&lt;br /&gt;
|- &lt;br /&gt;
!max_bids &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total amount of bids given for this assignment. *************&lt;br /&gt;
|- &lt;br /&gt;
!show_teammate_reviews &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether teammate reviews are shown or not. *************&lt;br /&gt;
|- &lt;br /&gt;
!availability_flag &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether the given assignment is available or not. *************&lt;br /&gt;
|- &lt;br /&gt;
!use_bookmark &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether bookmarks are used or not. *************&lt;br /&gt;
|- &lt;br /&gt;
!can_review_same_topic &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether a reviewer can review the same topic again. *************&lt;br /&gt;
|- &lt;br /&gt;
!can_choose_topic_to_review &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether a reviewer can choose a topic to review *************&lt;br /&gt;
|- &lt;br /&gt;
!is_calibrated &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether the assignment is calibrated or not. *************&lt;br /&gt;
|- &lt;br /&gt;
!is_selfreview_enabled &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether an author can review his/her work. *************&lt;br /&gt;
|- &lt;br /&gt;
!reputation_algorithm &lt;br /&gt;
|varchar(12)  &lt;br /&gt;
|This field gives us the information of the reputation algorithm used for this assignment. *************&lt;br /&gt;
|- &lt;br /&gt;
!is_anonymous &lt;br /&gt;
|tinyint(1)  &lt;br /&gt;
|Indicating whether whether the reviewer information is anonymous or not. *************&lt;br /&gt;
|- &lt;br /&gt;
!num_reviews_required  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of reviews required for this assignment. *************&lt;br /&gt;
|- &lt;br /&gt;
!num_metareviews_required  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of metareviews required for this assignment. *************&lt;br /&gt;
|- &lt;br /&gt;
!num_metareviews_allowed  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of metareviews allowed for this assignment. *************&lt;br /&gt;
|- &lt;br /&gt;
!num_reviews_allowed  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Total number of reviews allowed for this assignment. *************&lt;br /&gt;
|- &lt;br /&gt;
!simicheck  &lt;br /&gt;
|int(11)  &lt;br /&gt;
|Similarity Check between assignments. *************&lt;br /&gt;
|- &lt;br /&gt;
!simicheck_threshold&lt;br /&gt;
|int(11)  &lt;br /&gt;
|Similarity check threshold value for the given assignment. *************&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Back to the [[Documentation_on_Database_Tables|database documentation]]&lt;/div&gt;</summary>
		<author><name>Rtantry2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=Assignment_questionnaires&amp;diff=167459</id>
		<title>Assignment questionnaires</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Assignment_questionnaires&amp;diff=167459"/>
		<updated>2025-12-09T03:03:19Z</updated>

		<summary type="html">&lt;p&gt;Rtantry2: /* Assignment Questionnaires variable documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The assignment_questionnaires table defines the joins between a [[questionnaires|questionnaire]] and an [[assignments|assignment]]. It is also used to associate default limits for the notifications an instructor receives. &lt;br /&gt;
==Assignment Questionnaires variable documentation (Reimplementation)==&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 ID of the [[assignments|assignment]] in this relationship. A null value is used to define the default limits&lt;br /&gt;
|-&lt;br /&gt;
!questionnaire_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The ID of the [[questionnaires|questionnaire]] in this relationship. A null value is used to define the default limits&lt;br /&gt;
|-&lt;br /&gt;
!user_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The ID of the [[users|instructor]] who created the relationship&lt;br /&gt;
|-&lt;br /&gt;
!notification_threshold&lt;br /&gt;
|int(11)&lt;br /&gt;
|A percent difference between an awarded score and the current average score as an integer. This defines at which point the instructor receives a notification that a response falls outside the acceptable range&lt;br /&gt;
|-&lt;br /&gt;
!questionnaire_weight&lt;br /&gt;
|int(11)&lt;br /&gt;
|A percentage that the [[questionnaires|questionnaire]] contributes to the overall score. When both assignment_id and questionnaire_id are null, this relationship defines the defaults set by the instructor.&lt;br /&gt;
|-&lt;br /&gt;
!used_in_round&lt;br /&gt;
|int(11)&lt;br /&gt;
|Questionnaire used in which particular round.&lt;br /&gt;
|-&lt;br /&gt;
!dropdown_in_use&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicating whether a dropdown is present or not.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Assignment Questionnaires variable documentation (2023 version)==&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 ID of the [[assignments|assignment]] in this relationship. A null value is used to define the default limits&lt;br /&gt;
|-&lt;br /&gt;
!questionnaire_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The ID of the [[questionnaires|questionnaire]] in this relationship. A null value is used to define the default limits&lt;br /&gt;
|-&lt;br /&gt;
!user_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|The ID of the [[users|instructor]] who created the relationship&lt;br /&gt;
|-&lt;br /&gt;
!notification_limit&lt;br /&gt;
|int(11)&lt;br /&gt;
|A percent difference between an awarded score and the current average score as an integer. This defines at which point the instructor receives a notification that a response falls outside the acceptable range&lt;br /&gt;
|-&lt;br /&gt;
!questionnaire_weight&lt;br /&gt;
|int(11)&lt;br /&gt;
|A percentage that the [[questionnaires|questionnaire]] contributes to the overall score. When both assignment_id and questionnaire_id are null, this relationship defines the defaults set by the instructor.&lt;br /&gt;
|-&lt;br /&gt;
!used_in_round&lt;br /&gt;
|int(11)&lt;br /&gt;
|Questionnaire used in which particular round.&lt;br /&gt;
|-&lt;br /&gt;
!dropdown&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|Indicating whether a dropdown is present or not.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Parent Tables ==&lt;br /&gt;
The table Assignment_questionnaire has not referred to any other table.&lt;br /&gt;
&lt;br /&gt;
== E/R diagram for Child Tables ==&lt;br /&gt;
Tables which refer the Assignment_questionnaires Table as Foreign Key Relationship.&lt;br /&gt;
&lt;br /&gt;
[[File:assignment_questionnaire_imported.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Back to the [[Documentation_on_Database_Tables|database documentation]]&lt;/div&gt;</summary>
		<author><name>Rtantry2</name></author>
	</entry>
</feed>