--
-- PostgreSQL database dump
--

SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;

SET search_path = public, pg_catalog;

DROP INDEX public.userscfield_ind195;
DROP INDEX public.userscfield_ind194;
DROP INDEX public.userscfield_ind192;
DROP INDEX public.userscfield_ind191;
DROP INDEX public.userscfield_ind190;
DROP INDEX public.userscfield_ind189;
DROP INDEX public.userscfield_ind188;
DROP INDEX public.user_profiles_pkey;
DROP INDEX public.user_pkey;
DROP INDEX public.user_lf_data_pkey;
DROP INDEX public.user_ind6;
DROP INDEX public.user_ind5;
DROP INDEX public.user_ind3;
DROP INDEX public.user_ind2;
DROP INDEX public.user_fields_pkey;
DROP INDEX public.user_fields_ind1;
DROP INDEX public.user_field_categories_pkey;
DROP INDEX public.system_user_settings_ind1;
DROP INDEX public.system_config_ind1;
DROP INDEX public.sys_c007322;
DROP INDEX public.suitability_teachers_filled_pkey;
DROP INDEX public.studentscfield_ind9;
DROP INDEX public.studentscfield_ind8;
DROP INDEX public.studentscfield_ind7;
DROP INDEX public.studentscfield_ind6;
DROP INDEX public.studentscfield_ind5;
DROP INDEX public.studentscfield_ind4;
DROP INDEX public.studentscfield_ind3;
DROP INDEX public.studentscfield_ind212;
DROP INDEX public.studentscfield_ind211;
DROP INDEX public.studentscfield_ind209;
DROP INDEX public.studentscfield_ind208;
DROP INDEX public.studentscfield_ind207;
DROP INDEX public.studentscfield_ind206;
DROP INDEX public.studentscfield_ind205;
DROP INDEX public.studentscfield_ind204;
DROP INDEX public.studentscfield_ind203;
DROP INDEX public.studentscfield_ind202;
DROP INDEX public.studentscfield_ind201;
DROP INDEX public.studentscfield_ind200;
DROP INDEX public.studentscfield_ind2;
DROP INDEX public.studentscfield_ind199;
DROP INDEX public.studentscfield_ind198;
DROP INDEX public.studentscfield_ind197;
DROP INDEX public.studentscfield_ind196;
DROP INDEX public.studentscfield_ind10;
DROP INDEX public.students_pkey;
DROP INDEX public.students_ind2;
DROP INDEX public.students_ind1;
DROP INDEX public.students_in_users_pkey;
DROP INDEX public.students_in_sr_pkey;
DROP INDEX public.students_in_sr_ind3;
DROP INDEX public.students_in_sr_ind2;
DROP INDEX public.students_in_sr_ind1;
DROP INDEX public.students_in_address_pkey;
DROP INDEX public.students_in_address_ind1;
DROP INDEX public.student_term_comments_pkey;
DROP INDEX public.student_suitability_grades_ind1;
DROP INDEX public.student_schedule_requests_pkey;
DROP INDEX public.student_schedule_requests_ind8;
DROP INDEX public.student_schedule_requests_ind7;
DROP INDEX public.student_schedule_requests_ind6;
DROP INDEX public.student_schedule_requests_ind5;
DROP INDEX public.student_schedule_requests_ind4;
DROP INDEX public.student_schedule_requests_ind3;
DROP INDEX public.student_schedule_requests_ind2;
DROP INDEX public.student_schedule_requests_ind1;
DROP INDEX public.student_schedule_pkey;
DROP INDEX public.student_schedule_ind7;
DROP INDEX public.student_schedule_ind6;
DROP INDEX public.student_schedule_ind5;
DROP INDEX public.student_schedule_ind4;
DROP INDEX public.student_schedule_ind3;
DROP INDEX public.student_schedule_ind2;
DROP INDEX public.student_schedule_ind1;
DROP INDEX public.student_report_card_grade_ind4;
DROP INDEX public.student_report_card_grade_ind3;
DROP INDEX public.student_relations_pkey;
DROP INDEX public.student_relations_in_contacts_pkey;
DROP INDEX public.student_relations_in_contacts_ind2;
DROP INDEX public.student_relations_in_contacts_ind1;
DROP INDEX public.student_relations_3;
DROP INDEX public.student_relations_1;
DROP INDEX public.student_registration_settings_pkey;
DROP INDEX public.student_registration_pkey;
DROP INDEX public.student_registration_7;
DROP INDEX public.student_registration_6;
DROP INDEX public.student_registration_3;
DROP INDEX public.student_registration_2;
DROP INDEX public.student_registration_1;
DROP INDEX public.student_medical_visits_pkey;
DROP INDEX public.student_medical_visits_ind1;
DROP INDEX public.student_medical_pkey;
DROP INDEX public.student_medical_ind1;
DROP INDEX public.student_medical_alerts_pkey;
DROP INDEX public.student_medical_alerts_ind1;
DROP INDEX public.student_markbook_grades_pkey;
DROP INDEX public.student_markbook_grades_ind2;
DROP INDEX public.student_markbook_grades_ind1;
DROP INDEX public.student_lf_data_pkey;
DROP INDEX public.student_lf_data_ind2;
DROP INDEX public.student_lf_data_ind1;
DROP INDEX public.student_grades_card_pkey;
DROP INDEX public.student_grades_card_ind2;
DROP INDEX public.student_grades_card_ind1;
DROP INDEX public.student_grades_card_evaluations_pkey;
DROP INDEX public.student_grades_card_evaluations_ind4;
DROP INDEX public.student_grades_card_evaluations_ind3;
DROP INDEX public.student_grades_card_evaluations_ind2;
DROP INDEX public.student_grades_card_evaluations_ind1;
DROP INDEX public.student_gpa_totals_ind3;
DROP INDEX public.student_gpa_totals_ind2;
DROP INDEX public.student_gpa_totals_ind1;
DROP INDEX public.student_gpa_progress_ind1;
DROP INDEX public.student_fields_pkey;
DROP INDEX public.student_fields_ind3;
DROP INDEX public.student_field_categories_pkey;
DROP INDEX public.student_emails_processing_ind1;
DROP INDEX public.student_emails_pkey;
DROP INDEX public.student_discipline_reports_pkey;
DROP INDEX public.student_discipline_reports_ind6;
DROP INDEX public.student_discipline_reports_ind4;
DROP INDEX public.student_discipline_reports_ind3;
DROP INDEX public.student_discipline_reports_ind2;
DROP INDEX public.student_discipline_reports_ind1;
DROP INDEX public.student_discipline_incidentscfield_ind221;
DROP INDEX public.student_discipline_incidentscfield_ind220;
DROP INDEX public.student_discipline_incidentscfield_ind219;
DROP INDEX public.student_discipline_incidentscfield_ind218;
DROP INDEX public.student_discipline_incidentscfield_ind217;
DROP INDEX public.student_discipline_incidentscfield_ind216;
DROP INDEX public.student_discipline_incidentscfield_ind215;
DROP INDEX public.student_discipline_incidentscfield_ind214;
DROP INDEX public.student_discipline_incidents_pkey;
DROP INDEX public.student_discipline_incidents_ind1;
DROP INDEX public.student_attendance_periods_pkey;
DROP INDEX public.student_attendance_periods_ind4;
DROP INDEX public.student_attendance_periods_ind3;
DROP INDEX public.student_attendance_periods_ind2;
DROP INDEX public.student_attendance_periods_ind1;
DROP INDEX public.student_attendance_days_pkey;
DROP INDEX public.student_attendance_days_ind2;
DROP INDEX public.student_attendance_days_ind1;
DROP INDEX public.student_activities_history_ind1;
DROP INDEX public.stu_addr_meets_2;
DROP INDEX public.schoolscfield_ind9;
DROP INDEX public.schoolscfield_ind8;
DROP INDEX public.schoolscfield_ind6;
DROP INDEX public.schoolscfield_ind54;
DROP INDEX public.schoolscfield_ind4;
DROP INDEX public.schoolscfield_ind10;
DROP INDEX public.schools_pkey;
DROP INDEX public.schools_ind1;
DROP INDEX public.school_years_pkey;
DROP INDEX public.school_years_ind1;
DROP INDEX public.school_weeks_pkey;
DROP INDEX public.school_weeks_ind2;
DROP INDEX public.school_weeks_ind1;
DROP INDEX public.school_semesters_pkey;
DROP INDEX public.school_semesters_ind2;
DROP INDEX public.school_quarters_pkey;
DROP INDEX public.school_quarters_ind2;
DROP INDEX public.school_quarters_ind1;
DROP INDEX public.school_periods_pkey;
DROP INDEX public.school_periods_ind1;
DROP INDEX public.school_classlevels_pkey;
DROP INDEX public.school_classlevels_ind1;
DROP INDEX public.school_calendars_pkey;
DROP INDEX public.school_calendar_events_pkey;
DROP INDEX public.school_calendar_days_pkey;
DROP INDEX public.school_calendar_days_ind1;
DROP INDEX public.saved_info_pkey;
DROP INDEX public.resbase_pkey;
DROP INDEX public.resbase_events_pkey;
DROP INDEX public.resbase_categories_pkey;
DROP INDEX public.relations_meets_6;
DROP INDEX public.relations_meets_2;
DROP INDEX public.program_uploaded_files_pkey;
DROP INDEX public.profile_settings_ind3;
DROP INDEX public.profile_settings_ind2;
DROP INDEX public.profile_settings_ind1;
DROP INDEX public.portal_messages_pkey;
DROP INDEX public.name;
DROP INDEX public.markbook_assignments_pkey;
DROP INDEX public.markbook_assignments_ind5;
DROP INDEX public.markbook_assignments_ind4;
DROP INDEX public.markbook_assignments_ind3;
DROP INDEX public.markbook_assignments_ind2;
DROP INDEX public.markbook_assignments_ind1;
DROP INDEX public.markbook_assignment_types_pkey;
DROP INDEX public.markbook_assignment_types_ind1;
DROP INDEX public.lunch_period_ind1;
DROP INDEX public.lh_templates_pkey;
DROP INDEX public.groups_title_ind;
DROP INDEX public.groups_ind;
DROP INDEX public.graduation_requirements_pkey;
DROP INDEX public.graduation_req_subjects_pkey;
DROP INDEX public.grades_card_types_pkey;
DROP INDEX public.grades_card_tests_pkey;
DROP INDEX public.grades_card_settings_pkey;
DROP INDEX public.grades_card_settings_ind1;
DROP INDEX public.grades_card_evaluation_pkey;
DROP INDEX public.grades_card_evaluation_ind1;
DROP INDEX public.grades_card_comments_pkey;
DROP INDEX public.grades_card_comments_ind1;
DROP INDEX public.discipline_report_fields_pkey;
DROP INDEX public.discipline_custom_fields_asg_pkey;
DROP INDEX public.delyvery_groups_ind;
DROP INDEX public.courses_pkey;
DROP INDEX public.courses_ind2;
DROP INDEX public.courses_ind1;
DROP INDEX public.course_subjects_pkey;
DROP INDEX public.course_subjects_ind1;
DROP INDEX public.course_sections_pkey;
DROP INDEX public.course_sections_ind7;
DROP INDEX public.course_sections_ind6;
DROP INDEX public.course_sections_ind5;
DROP INDEX public.course_sections_ind4;
DROP INDEX public.course_sections_ind3;
DROP INDEX public.course_sections_ind2;
DROP INDEX public.course_sections_ind1;
DROP INDEX public.course_credits_pkey;
DROP INDEX public.cfield_user_ind1;
DROP INDEX public.cfield_desc_ind2;
DROP INDEX public.cfield_desc_ind;
DROP INDEX public.billing_student_payments_pkey;
DROP INDEX public.billing_student_payments_ind3;
DROP INDEX public.billing_student_payments_ind2;
DROP INDEX public.billing_student_payments_ind1;
DROP INDEX public.billing_student_fees_pkey;
DROP INDEX public.billing_student_fees_old_pkey;
DROP INDEX public.billing_student_fees_ind3;
DROP INDEX public.billing_student_fees_ind2;
DROP INDEX public.billing_student_fees_ind1;
DROP INDEX public.billing_student_fees_categories_pkey;
DROP INDEX public.attendance_teacher_filled_pkey;
DROP INDEX public.attendance_codes_settings_pkey;
DROP INDEX public.attendance_codes_settings_ind3;
DROP INDEX public.attendance_codes_settings_ind2;
DROP INDEX public.attendance_code_cats_settings_pkey;
DROP INDEX public.attendance_code_cats_settings_ind2;
DROP INDEX public.attendance_code_cats_settings_ind1;
DROP INDEX public.address_pkey;
DROP INDEX public.address_ind4;
DROP INDEX public.address_ind3;
DROP INDEX public.address_ind2;
DROP INDEX public.address_ind1;
DROP INDEX public.activity_courses_pkey;
DROP INDEX public.activity_courses_ind1;
ALTER TABLE ONLY public.adodb_logsql DROP CONSTRAINT mdl_adodlogs_id_pk;
ALTER TABLE ONLY public.assignment_type_config DROP CONSTRAINT assignment_type_config_pkey;
ALTER TABLE ONLY public.assignment_config DROP CONSTRAINT assignment_config_pkey;
DROP TABLE public.year_grade_report;
DROP SEQUENCE public.users_seq;
DROP TABLE public.users;
DROP TABLE public.user_settings;
DROP SEQUENCE public.user_profiles_seq;
DROP TABLE public.user_profiles;
DROP TABLE public.user_messages;
DROP SEQUENCE public.user_messages_seq;
DROP SEQUENCE public.user_lf_data_seq;
DROP TABLE public.user_lf_data;
DROP TABLE public.user_in_messages;
DROP SEQUENCE public.user_in_messages_seq;
DROP TABLE public.user_in_delivery_group;
DROP SEQUENCE public.user_fields_seq;
DROP TABLE public.user_fields_in_cats;
DROP TABLE public.user_fields;
DROP SEQUENCE public.user_field_categories_seq;
DROP TABLE public.user_field_categories;
DROP TABLE public.type_of_study;
DROP SEQUENCE public.type_of_study_seq;
DROP TABLE public.system_user_settings;
DROP TABLE public.system_config;
DROP TABLE public.suitability_teachers_filled;
DROP SEQUENCE public.students_seq;
DROP TABLE public.students_scores_rating;
DROP TABLE public.students_in_users;
DROP SEQUENCE public.students_in_sr_seq;
DROP TABLE public.students_in_sr;
DROP SEQUENCE public.students_in_address_seq;
DROP TABLE public.students_in_address;
DROP TABLE public.students_auditlog;
DROP TABLE public.students;
DROP TABLE public.student_term_comments;
DROP TABLE public.student_suitability_grades;
DROP SEQUENCE public.student_schedule_seq;
DROP SEQUENCE public.student_schedule_requests_seq;
DROP TABLE public.student_schedule_requests;
DROP TABLE public.student_schedule;
DROP SEQUENCE public.student_relations_seq;
DROP SEQUENCE public.student_relations_in_contacts_seq;
DROP TABLE public.student_relations_in_contacts;
DROP TABLE public.student_relations;
DROP SEQUENCE public.student_registration_settings_seq;
DROP TABLE public.student_registration_settings;
DROP SEQUENCE public.student_registration_seq;
DROP TABLE public.student_registration;
DROP SEQUENCE public.student_medical_visits_seq;
DROP TABLE public.student_medical_visits;
DROP SEQUENCE public.student_medical_seq;
DROP SEQUENCE public.student_medical_alerts_seq;
DROP TABLE public.student_medical_alerts;
DROP TABLE public.student_medical;
DROP TABLE public.student_markbook_grades;
DROP SEQUENCE public.student_lf_data_seq;
DROP TABLE public.student_lf_data;
DROP TABLE public.student_in_delivery_group;
DROP SEQUENCE public.student_grades_card_seq;
DROP SEQUENCE public.student_grades_card_evaluations_seq;
DROP TABLE public.student_grades_card_evaluations;
DROP TABLE public.student_grades_card;
DROP TABLE public.student_gpa_totals;
DROP TABLE public.student_gpa_progress;
DROP SEQUENCE public.student_fields_seq;
DROP TABLE public.student_fields_in_cats;
DROP TABLE public.student_fields;
DROP SEQUENCE public.student_field_categories_seq;
DROP TABLE public.student_field_categories;
DROP SEQUENCE public.student_emails_seq;
DROP SEQUENCE public.student_emails_processing_seq;
DROP TABLE public.student_emails_processing;
DROP SEQUENCE public.student_emails_order_seq;
DROP TABLE public.student_emails_order;
DROP TABLE public.student_emails;
DROP SEQUENCE public.student_discipline_reports_seq;
DROP TABLE public.student_discipline_reports;
DROP SEQUENCE public.student_discipline_incidents_seq;
DROP TABLE public.student_discipline_incidents_fields_in_cats;
DROP TABLE public.student_discipline_incidents_asg_reports;
DROP TABLE public.student_discipline_incidents;
DROP TABLE public.student_attendance_periods;
DROP TABLE public.student_attendance_days;
DROP TABLE public.student_activities_history;
DROP TABLE public.std_counter;
DROP SEQUENCE public.std_counter_seq;
DROP TABLE public.statistics_of_visitings;
DROP SEQUENCE public.statistics_of_visitings_seq;
DROP TABLE public.sms_profiles;
DROP SEQUENCE public.sms_profiles_seq;
DROP SEQUENCE public.schools_seq;
DROP TABLE public.schools;
DROP TABLE public.school_years;
DROP TABLE public.school_weeks;
DROP SEQUENCE public.school_term_seq;
DROP TABLE public.school_semesters;
DROP TABLE public.school_quarters;
DROP SEQUENCE public.school_periods_seq;
DROP TABLE public.school_periods;
DROP SEQUENCE public.school_lf_data_seq;
DROP TABLE public.school_lf_data;
DROP TABLE public.school_groups;
DROP SEQUENCE public.school_groups_seq;
DROP TABLE public.school_group_titles;
DROP SEQUENCE public.school_group_titles_seq;
DROP TABLE public.school_fields_in_cats;
DROP TABLE public.school_fields;
DROP SEQUENCE public.school_field_categories_seq;
DROP TABLE public.school_field_categories;
DROP SEQUENCE public.school_classlevels_seq;
DROP TABLE public.school_classlevels;
DROP TABLE public.school_calendars;
DROP SEQUENCE public.school_calendar_events_seq;
DROP TABLE public.school_calendar_events;
DROP TABLE public.school_calendar_days;
DROP SEQUENCE public.saved_info_seq;
DROP TABLE public.saved_info;
DROP TABLE public.rss_conf;
DROP SEQUENCE public.rss_conf_seq;
DROP SEQUENCE public.roundcube_user_ids;
DROP SEQUENCE public.roundcube_message_ids;
DROP SEQUENCE public.roundcube_identity_ids;
DROP SEQUENCE public.roundcube_contact_ids;
DROP SEQUENCE public.roundcube_cache_ids;
DROP SEQUENCE public.resbase_seq;
DROP TABLE public.resbase_in_events;
DROP SEQUENCE public.resbase_events_seq;
DROP TABLE public.resbase_events;
DROP SEQUENCE public.resbase_categories_seq;
DROP TABLE public.resbase_categories;
DROP TABLE public.resbase;
DROP SEQUENCE public.program_uploaded_files_seq;
DROP TABLE public.program_uploaded_files;
DROP TABLE public.profile_settings;
DROP SEQUENCE public.portal_messages_seq;
DROP TABLE public.portal_messages;
DROP SEQUENCE public.people_seq;
DROP TABLE public.people_in_group;
DROP SEQUENCE public.people_in_group_seq;
DROP SEQUENCE public.orders_seq;
DROP TABLE public.orders;
DROP SEQUENCE public.mdl_workshop_submissions_id_seq;
DROP SEQUENCE public.mdl_workshop_stockcomments_id_seq;
DROP SEQUENCE public.mdl_workshop_rubrics_id_seq;
DROP SEQUENCE public.mdl_workshop_id_seq;
DROP SEQUENCE public.mdl_workshop_grades_id_seq;
DROP SEQUENCE public.mdl_workshop_elements_id_seq;
DROP SEQUENCE public.mdl_workshop_comments_id_seq;
DROP SEQUENCE public.mdl_workshop_assessments_id_seq;
DROP SEQUENCE public.mdl_wiki_pages_id_seq;
DROP SEQUENCE public.mdl_wiki_locks_id_seq;
DROP SEQUENCE public.mdl_wiki_id_seq;
DROP SEQUENCE public.mdl_wiki_entries_id_seq;
DROP SEQUENCE public.mdl_webdav_locks_id_seq;
DROP SEQUENCE public.mdl_user_private_key_id_seq;
DROP SEQUENCE public.mdl_user_preferences_id_seq;
DROP SEQUENCE public.mdl_user_lastaccess_id_seq;
DROP SEQUENCE public.mdl_user_info_field_id_seq;
DROP SEQUENCE public.mdl_user_info_data_id_seq;
DROP SEQUENCE public.mdl_user_info_category_id_seq;
DROP SEQUENCE public.mdl_user_id_seq;
DROP SEQUENCE public.mdl_timezone_id_seq;
DROP SEQUENCE public.mdl_tag_instance_id_seq;
DROP SEQUENCE public.mdl_tag_id_seq;
DROP SEQUENCE public.mdl_tag_correlation_id_seq;
DROP SEQUENCE public.mdl_survey_questions_id_seq;
DROP SEQUENCE public.mdl_survey_id_seq;
DROP SEQUENCE public.mdl_survey_answers_id_seq;
DROP SEQUENCE public.mdl_survey_analysis_id_seq;
DROP SEQUENCE public.mdl_stats_weekly_id_seq;
DROP SEQUENCE public.mdl_stats_user_weekly_id_seq;
DROP SEQUENCE public.mdl_stats_user_monthly_id_seq;
DROP SEQUENCE public.mdl_stats_user_daily_id_seq;
DROP SEQUENCE public.mdl_stats_monthly_id_seq;
DROP SEQUENCE public.mdl_stats_daily_id_seq;
DROP SEQUENCE public.mdl_scorm_seq_ruleconds_id_seq;
DROP SEQUENCE public.mdl_scorm_seq_rulecond_id_seq;
DROP SEQUENCE public.mdl_scorm_seq_rolluprulecond_id_seq;
DROP SEQUENCE public.mdl_scorm_seq_rolluprule_id_seq;
DROP SEQUENCE public.mdl_scorm_seq_objective_id_seq;
DROP SEQUENCE public.mdl_scorm_seq_mapinfo_id_seq;
DROP SEQUENCE public.mdl_scorm_scoes_track_id_seq;
DROP SEQUENCE public.mdl_scorm_scoes_id_seq;
DROP SEQUENCE public.mdl_scorm_scoes_data_id_seq;
DROP SEQUENCE public.mdl_scorm_id_seq;
DROP SEQUENCE public.mdl_scale_id_seq;
DROP SEQUENCE public.mdl_scale_history_id_seq;
DROP SEQUENCE public.mdl_role_sortorder_id_seq;
DROP SEQUENCE public.mdl_role_names_id_seq;
DROP SEQUENCE public.mdl_role_id_seq;
DROP SEQUENCE public.mdl_role_capabilities_id_seq;
DROP SEQUENCE public.mdl_role_assignments_id_seq;
DROP SEQUENCE public.mdl_role_allow_override_id_seq;
DROP SEQUENCE public.mdl_role_allow_assign_id_seq;
DROP SEQUENCE public.mdl_resource_id_seq;
DROP SEQUENCE public.mdl_quiz_question_versions_id_seq;
DROP SEQUENCE public.mdl_quiz_question_instances_id_seq;
DROP SEQUENCE public.mdl_quiz_id_seq;
DROP SEQUENCE public.mdl_quiz_grades_id_seq;
DROP SEQUENCE public.mdl_quiz_feedback_id_seq;
DROP SEQUENCE public.mdl_quiz_attempts_id_seq;
DROP SEQUENCE public.mdl_question_truefalse_id_seq;
DROP SEQUENCE public.mdl_question_states_id_seq;
DROP SEQUENCE public.mdl_question_shortanswer_id_seq;
DROP SEQUENCE public.mdl_question_sessions_id_seq;
DROP SEQUENCE public.mdl_question_randomsamatch_id_seq;
DROP SEQUENCE public.mdl_question_numerical_units_id_seq;
DROP SEQUENCE public.mdl_question_numerical_id_seq;
DROP SEQUENCE public.mdl_question_multichoice_id_seq;
DROP SEQUENCE public.mdl_question_multianswer_id_seq;
DROP SEQUENCE public.mdl_question_match_sub_id_seq;
DROP SEQUENCE public.mdl_question_match_id_seq;
DROP SEQUENCE public.mdl_question_id_seq;
DROP SEQUENCE public.mdl_question_datasets_id_seq;
DROP SEQUENCE public.mdl_question_dataset_items_id_seq;
DROP SEQUENCE public.mdl_question_dataset_definitions_id_seq;
DROP SEQUENCE public.mdl_question_categories_id_seq;
DROP SEQUENCE public.mdl_question_calculated_id_seq;
DROP SEQUENCE public.mdl_question_attempts_id_seq;
DROP SEQUENCE public.mdl_question_answers_id_seq;
DROP SEQUENCE public.mdl_post_id_seq;
DROP SEQUENCE public.mdl_modules_id_seq;
DROP SEQUENCE public.mdl_mnet_sso_access_control_id_seq;
DROP SEQUENCE public.mdl_mnet_session_id_seq;
DROP SEQUENCE public.mdl_mnet_service_id_seq;
DROP SEQUENCE public.mdl_mnet_service2rpc_id_seq;
DROP SEQUENCE public.mdl_mnet_rpc_id_seq;
DROP SEQUENCE public.mdl_mnet_log_id_seq;
DROP SEQUENCE public.mdl_mnet_host_id_seq;
DROP SEQUENCE public.mdl_mnet_host2service_id_seq;
DROP SEQUENCE public.mdl_mnet_enrol_course_id_seq;
DROP SEQUENCE public.mdl_mnet_enrol_assignments_id_seq;
DROP SEQUENCE public.mdl_mnet_application_id_seq;
DROP SEQUENCE public.mdl_message_read_id_seq;
DROP SEQUENCE public.mdl_message_id_seq;
DROP SEQUENCE public.mdl_message_contacts_id_seq;
DROP SEQUENCE public.mdl_log_id_seq;
DROP SEQUENCE public.mdl_log_display_id_seq;
DROP SEQUENCE public.mdl_lesson_timer_id_seq;
DROP SEQUENCE public.mdl_lesson_pages_id_seq;
DROP SEQUENCE public.mdl_lesson_id_seq;
DROP SEQUENCE public.mdl_lesson_high_scores_id_seq;
DROP SEQUENCE public.mdl_lesson_grades_id_seq;
DROP SEQUENCE public.mdl_lesson_default_id_seq;
DROP SEQUENCE public.mdl_lesson_branch_id_seq;
DROP SEQUENCE public.mdl_lesson_attempts_id_seq;
DROP SEQUENCE public.mdl_lesson_answers_id_seq;
DROP SEQUENCE public.mdl_lams_id_seq;
DROP SEQUENCE public.mdl_label_id_seq;
DROP SEQUENCE public.mdl_journal_id_seq;
DROP SEQUENCE public.mdl_journal_entries_id_seq;
DROP SEQUENCE public.mdl_hotpot_strings_id_seq;
DROP SEQUENCE public.mdl_hotpot_responses_id_seq;
DROP SEQUENCE public.mdl_hotpot_questions_id_seq;
DROP SEQUENCE public.mdl_hotpot_id_seq;
DROP SEQUENCE public.mdl_hotpot_details_id_seq;
DROP SEQUENCE public.mdl_hotpot_attempts_id_seq;
DROP SEQUENCE public.mdl_groups_members_id_seq;
DROP SEQUENCE public.mdl_groups_id_seq;
DROP SEQUENCE public.mdl_groupings_id_seq;
DROP SEQUENCE public.mdl_groupings_groups_id_seq;
DROP SEQUENCE public.mdl_grade_settings_id_seq;
DROP SEQUENCE public.mdl_grade_outcomes_id_seq;
DROP SEQUENCE public.mdl_grade_outcomes_history_id_seq;
DROP SEQUENCE public.mdl_grade_outcomes_courses_id_seq;
DROP SEQUENCE public.mdl_grade_letters_id_seq;
DROP SEQUENCE public.mdl_grade_items_id_seq;
DROP SEQUENCE public.mdl_grade_items_history_id_seq;
DROP SEQUENCE public.mdl_grade_import_values_id_seq;
DROP SEQUENCE public.mdl_grade_import_newitem_id_seq;
DROP SEQUENCE public.mdl_grade_grades_id_seq;
DROP SEQUENCE public.mdl_grade_grades_history_id_seq;
DROP SEQUENCE public.mdl_grade_categories_id_seq;
DROP SEQUENCE public.mdl_grade_categories_history_id_seq;
DROP SEQUENCE public.mdl_glossary_ratings_id_seq;
DROP SEQUENCE public.mdl_glossary_id_seq;
DROP SEQUENCE public.mdl_glossary_formats_id_seq;
DROP SEQUENCE public.mdl_glossary_entries_id_seq;
DROP SEQUENCE public.mdl_glossary_entries_categories_id_seq;
DROP SEQUENCE public.mdl_glossary_comments_id_seq;
DROP SEQUENCE public.mdl_glossary_categories_id_seq;
DROP SEQUENCE public.mdl_glossary_alias_id_seq;
DROP SEQUENCE public.mdl_forum_track_prefs_id_seq;
DROP SEQUENCE public.mdl_forum_subscriptions_id_seq;
DROP SEQUENCE public.mdl_forum_read_id_seq;
DROP SEQUENCE public.mdl_forum_ratings_id_seq;
DROP SEQUENCE public.mdl_forum_queue_id_seq;
DROP SEQUENCE public.mdl_forum_posts_id_seq;
DROP SEQUENCE public.mdl_forum_id_seq;
DROP SEQUENCE public.mdl_forum_discussions_id_seq;
DROP SEQUENCE public.mdl_events_queue_id_seq;
DROP SEQUENCE public.mdl_events_queue_handlers_id_seq;
DROP SEQUENCE public.mdl_events_handlers_id_seq;
DROP SEQUENCE public.mdl_event_id_seq;
DROP SEQUENCE public.mdl_enrol_paypal_id_seq;
DROP SEQUENCE public.mdl_enrol_authorize_refunds_id_seq;
DROP SEQUENCE public.mdl_enrol_authorize_id_seq;
DROP SEQUENCE public.mdl_data_records_id_seq;
DROP SEQUENCE public.mdl_data_ratings_id_seq;
DROP SEQUENCE public.mdl_data_id_seq;
DROP SEQUENCE public.mdl_data_fields_id_seq;
DROP SEQUENCE public.mdl_data_content_id_seq;
DROP SEQUENCE public.mdl_data_comments_id_seq;
DROP SEQUENCE public.mdl_course_sections_id_seq;
DROP SEQUENCE public.mdl_course_request_id_seq;
DROP SEQUENCE public.mdl_course_modules_id_seq;
DROP SEQUENCE public.mdl_course_meta_id_seq;
DROP SEQUENCE public.mdl_course_id_seq;
DROP SEQUENCE public.mdl_course_display_id_seq;
DROP SEQUENCE public.mdl_course_categories_id_seq;
DROP SEQUENCE public.mdl_course_allowed_modules_id_seq;
DROP SEQUENCE public.mdl_context_id_seq;
DROP SEQUENCE public.mdl_config_plugins_id_seq;
DROP SEQUENCE public.mdl_config_id_seq;
DROP SEQUENCE public.mdl_choice_options_id_seq;
DROP SEQUENCE public.mdl_choice_id_seq;
DROP SEQUENCE public.mdl_choice_answers_id_seq;
DROP SEQUENCE public.mdl_chat_users_id_seq;
DROP SEQUENCE public.mdl_chat_messages_id_seq;
DROP SEQUENCE public.mdl_chat_id_seq;
DROP SEQUENCE public.mdl_capabilities_id_seq;
DROP SEQUENCE public.mdl_cache_text_id_seq;
DROP SEQUENCE public.mdl_cache_flags_id_seq;
DROP SEQUENCE public.mdl_cache_filters_id_seq;
DROP SEQUENCE public.mdl_block_search_documents_id_seq;
DROP SEQUENCE public.mdl_block_rss_client_id_seq;
DROP SEQUENCE public.mdl_block_pinned_id_seq;
DROP SEQUENCE public.mdl_block_instance_id_seq;
DROP SEQUENCE public.mdl_block_id_seq;
DROP SEQUENCE public.mdl_backup_log_id_seq;
DROP SEQUENCE public.mdl_backup_ids_id_seq;
DROP SEQUENCE public.mdl_backup_files_id_seq;
DROP SEQUENCE public.mdl_backup_courses_id_seq;
DROP SEQUENCE public.mdl_backup_config_id_seq;
DROP SEQUENCE public.mdl_assignment_submissions_id_seq;
DROP SEQUENCE public.mdl_assignment_id_seq;
DROP TABLE public.markbook_teachers_filled;
DROP SEQUENCE public.markbook_assignments_seq;
DROP TABLE public.markbook_assignments;
DROP SEQUENCE public.markbook_assignment_types_seq;
DROP TABLE public.markbook_assignment_types;
DROP TABLE public.mailing_of_group;
DROP SEQUENCE public.mailing_of_group_seq;
DROP TABLE public.lunch_period;
DROP TABLE public.login_history;
DROP SEQUENCE public.login_history_seq;
DROP TABLE public.listing_fields_settings;
DROP SEQUENCE public.lh_templates_seq;
DROP TABLE public.lh_templates;
DROP SEQUENCE public.lh_template_cells_seq;
DROP TABLE public.lh_template_cells;
DROP TABLE public.intermediate_report;
DROP SEQUENCE public.info_saves_seq;
DROP TABLE public.info_saves;
DROP TABLE public.in_outbox_message;
DROP SEQUENCE public.in_inbox_message_seq;
DROP TABLE public.in_inbox_message;
DROP SEQUENCE public.in_outbox_message_seq;
DROP TABLE public.graduation_rp_in_subjects;
DROP TABLE public.graduation_rp_in_course_req;
DROP TABLE public.graduation_requirements;
DROP SEQUENCE public.graduation_req_subjects_seq;
DROP TABLE public.graduation_req_subjects;
DROP SEQUENCE public.grades_card_types_seq;
DROP TABLE public.grades_card_types;
DROP SEQUENCE public.grades_card_tests_seq;
DROP TABLE public.grades_card_tests;
DROP SEQUENCE public.grades_card_settings_seq;
DROP TABLE public.grades_card_settings;
DROP SEQUENCE public.grades_card_evaluation_seq;
DROP TABLE public.grades_card_evaluation;
DROP SEQUENCE public.grades_card_comments_seq;
DROP TABLE public.grades_card_comments;
DROP SEQUENCE public.evaluation_tests_seq;
DROP TABLE public.evaluation_tests;
DROP SEQUENCE public.evaluation_testparts_seq;
DROP TABLE public.evaluation_testparts;
DROP TABLE public.evaluation_markpoints;
DROP SEQUENCE public.docs_templates_seq;
DROP TABLE public.docs_templates_categories;
DROP SEQUENCE public.docs_templates_categories_seq;
DROP TABLE public.docs_templates;
DROP SEQUENCE public.docs_template_cells_seq;
DROP TABLE public.docs_template_cells;
DROP SEQUENCE public.discipline_report_fields_seq;
DROP TABLE public.discipline_report_fields;
DROP TABLE public.discipline_incidents_fields_in_cats;
DROP TABLE public.discipline_incidents_asg_reports;
DROP TABLE public.discipline_incident_fields;
DROP SEQUENCE public.discipline_incident_categories_seq;
DROP TABLE public.discipline_incident_categories;
DROP SEQUENCE public.discipline_custom_fields_asg_seq;
DROP TABLE public.discipline_custom_fields_asg;
DROP TABLE public.delivery_group;
DROP SEQUENCE public.delivery_group_seq;
DROP SEQUENCE public.courses_seq;
DROP TABLE public.courses;
DROP SEQUENCE public.course_subjects_seq;
DROP TABLE public.course_subjects;
DROP SEQUENCE public.course_sections_seq;
DROP TABLE public.course_sections;
DROP TABLE public.course_credits;
DROP TABLE public.config;
DROP SEQUENCE public.calendars_seq;
DROP TABLE public.block_ip;
DROP SEQUENCE public.block_ip_seq;
DROP SEQUENCE public.billing_student_payments_seq;
DROP TABLE public.billing_student_payments;
DROP SEQUENCE public.billing_student_fees_seq;
DROP TABLE public.billing_student_fees_old;
DROP SEQUENCE public.billing_student_fees_categories_seq;
DROP TABLE public.billing_student_fees_categories;
DROP TABLE public.billing_student_fees;
DROP TABLE public.available_modprog;
DROP TABLE public.attendance_teacher_filled;
DROP SEQUENCE public.attendance_codes_settings_seq;
DROP TABLE public.attendance_codes_settings;
DROP SEQUENCE public.attendance_code_cats_settings_seq;
DROP TABLE public.attendance_code_cats_settings;
DROP SEQUENCE public.assignment_type_config_seq;
DROP TABLE public.assignment_type_config;
DROP SEQUENCE public.assignment_config_seq;
DROP TABLE public.assignment_config;
DROP TABLE public.adodb_logsql;
DROP SEQUENCE public.adodb_logsql_id_seq;
DROP SEQUENCE public.address_seq;
DROP TABLE public.address;
DROP TABLE public.addons_log;
DROP SEQUENCE public.activity_courses_seq;
DROP TABLE public.activity_courses;
DROP PROCEDURAL LANGUAGE plpgsql;
DROP SCHEMA public;
--
-- Name: public; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA public;


ALTER SCHEMA public OWNER TO postgres;

--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON SCHEMA public IS 'standard public schema';


--
-- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: postgres
--

CREATE PROCEDURAL LANGUAGE plpgsql;


ALTER PROCEDURAL LANGUAGE plpgsql OWNER TO postgres;

SET search_path = public, pg_catalog;

SET default_tablespace = '';

SET default_with_oids = false;

--
-- Name: activity_courses; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE activity_courses (
    id numeric NOT NULL,
    school_year numeric,
    school_id numeric,
    title character varying(100),
    start_date date,
    end_date date
);


ALTER TABLE public.activity_courses OWNER TO pidc;

--
-- Name: activity_courses_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE activity_courses_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.activity_courses_seq OWNER TO pidc;

--
-- Name: activity_courses_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('activity_courses_seq', 1, false);


--
-- Name: addons_log; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE addons_log (
    addon_title character varying(100),
    error_date date
);


ALTER TABLE public.addons_log OWNER TO pidc;

--
-- Name: address; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE address (
    address_id numeric NOT NULL,
    zipcode character varying(15),
    plus4 character varying(4),
    city character varying(60),
    state character varying(15),
    mail_city character varying(60),
    mail_state character varying(10),
    mail_zipcode character varying(10),
    address character varying(255),
    mail_address character varying(255),
    phone character varying(30),
    latitude numeric,
    longitude numeric,
    username character varying(50),
    password character varying(50),
    last_login timestamp without time zone,
    failed_login numeric,
    last_note_seen numeric,
    profile_id numeric,
    force_password_change character varying(1) DEFAULT 'N'::character varying,
    fed_region character varying(100),
    mail_fed_region character varying(100),
    settlement character varying(100),
    mail_settlement character varying(100)
);


ALTER TABLE public.address OWNER TO pidc;

--
-- Name: address_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE address_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.address_seq OWNER TO pidc;

--
-- Name: address_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('address_seq', 33, true);


--
-- Name: adodb_logsql_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE adodb_logsql_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.adodb_logsql_id_seq OWNER TO pidc;

--
-- Name: adodb_logsql_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('adodb_logsql_id_seq', 1, false);


--
-- Name: adodb_logsql; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE adodb_logsql (
    id bigint DEFAULT nextval('adodb_logsql_id_seq'::regclass) NOT NULL,
    created timestamp without time zone NOT NULL,
    sql0 character varying(250) DEFAULT ''::character varying NOT NULL,
    sql1 text,
    params text,
    tracer text,
    timer numeric(16,6) DEFAULT 0 NOT NULL
);


ALTER TABLE public.adodb_logsql OWNER TO pidc;

--
-- Name: assignment_config; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE assignment_config (
    assignment_id numeric NOT NULL,
    assignment_type_id numeric NOT NULL,
    title character varying(100) NOT NULL,
    assigned_date date NOT NULL,
    due_date date NOT NULL,
    points numeric,
    description character varying(1000),
    benchmarks character varying(100),
    school_term_id numeric
);


ALTER TABLE public.assignment_config OWNER TO pidc;

--
-- Name: assignment_config_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE assignment_config_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.assignment_config_seq OWNER TO pidc;

--
-- Name: assignment_config_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('assignment_config_seq', 1, false);


--
-- Name: assignment_type_config; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE assignment_type_config (
    assignment_type_id numeric NOT NULL,
    title character varying(100) NOT NULL,
    final_grade_percent numeric,
    school_id numeric,
    hcolor character varying(6)
);


ALTER TABLE public.assignment_type_config OWNER TO pidc;

--
-- Name: assignment_type_config_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE assignment_type_config_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.assignment_type_config_seq OWNER TO pidc;

--
-- Name: assignment_type_config_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('assignment_type_config_seq', 1, false);


--
-- Name: attendance_code_cats_settings; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE attendance_code_cats_settings (
    id numeric,
    school_year numeric,
    school_id numeric,
    title character varying(255),
    rollover_id numeric
);


ALTER TABLE public.attendance_code_cats_settings OWNER TO pidc;

--
-- Name: attendance_code_cats_settings_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE attendance_code_cats_settings_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.attendance_code_cats_settings_seq OWNER TO pidc;

--
-- Name: attendance_code_cats_settings_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('attendance_code_cats_settings_seq', 1, false);


--
-- Name: attendance_codes_settings; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE attendance_codes_settings (
    id numeric NOT NULL,
    school_year numeric,
    school_id numeric,
    title character varying(100),
    short_name character varying(10),
    type character varying(10),
    state_code character varying(1),
    default_code character varying(1),
    table_name numeric,
    sort_order numeric,
    is_daily_code character varying(1)
);


ALTER TABLE public.attendance_codes_settings OWNER TO pidc;

--
-- Name: attendance_codes_settings_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE attendance_codes_settings_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.attendance_codes_settings_seq OWNER TO pidc;

--
-- Name: attendance_codes_settings_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('attendance_codes_settings_seq', 1, true);


--
-- Name: attendance_teacher_filled; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE attendance_teacher_filled (
    user_id numeric NOT NULL,
    school_date date NOT NULL,
    school_period_id numeric NOT NULL
);


ALTER TABLE public.attendance_teacher_filled OWNER TO pidc;

--
-- Name: available_modprog; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE available_modprog (
    modname character varying(255),
    user_id numeric,
    profile_id numeric
);


ALTER TABLE public.available_modprog OWNER TO pidc;

--
-- Name: billing_student_fees; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE billing_student_fees (
    student_id numeric NOT NULL,
    assigned_date date,
    due_date date,
    comments character varying(255),
    id numeric,
    title character varying(255),
    amount numeric,
    school_id numeric,
    school_year numeric,
    waived_fee_id numeric,
    old_id numeric
);


ALTER TABLE public.billing_student_fees OWNER TO pidc;

--
-- Name: billing_student_fees_categories; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE billing_student_fees_categories (
    id numeric NOT NULL,
    school_year numeric NOT NULL,
    school_id numeric NOT NULL,
    title character varying(255)
);


ALTER TABLE public.billing_student_fees_categories OWNER TO pidc;

--
-- Name: billing_student_fees_categories_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE billing_student_fees_categories_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.billing_student_fees_categories_seq OWNER TO pidc;

--
-- Name: billing_student_fees_categories_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('billing_student_fees_categories_seq', 1, false);


--
-- Name: billing_student_fees_old; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE billing_student_fees_old (
    id numeric NOT NULL,
    category_id numeric NOT NULL,
    school_year numeric NOT NULL,
    school_id numeric NOT NULL,
    title character varying(255),
    amount numeric,
    apply_all bpchar,
    classlevel_id numeric,
    course_id numeric,
    course_credit_title character varying(10),
    activity_id numeric,
    student_field_id numeric,
    student_field_value character varying(255),
    student_id numeric,
    waived_fee_id numeric
);


ALTER TABLE public.billing_student_fees_old OWNER TO pidc;

--
-- Name: billing_student_fees_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE billing_student_fees_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.billing_student_fees_seq OWNER TO pidc;

--
-- Name: billing_student_fees_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('billing_student_fees_seq', 1, false);


--
-- Name: billing_student_payments; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE billing_student_payments (
    id numeric NOT NULL,
    school_year numeric NOT NULL,
    school_id numeric NOT NULL,
    student_id numeric NOT NULL,
    amount numeric NOT NULL,
    payment_date date,
    comments character varying(255),
    refunded_payment_id numeric,
    lunch_payment character varying(1),
    transaction_id numeric
);


ALTER TABLE public.billing_student_payments OWNER TO pidc;

--
-- Name: billing_student_payments_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE billing_student_payments_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.billing_student_payments_seq OWNER TO pidc;

--
-- Name: billing_student_payments_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('billing_student_payments_seq', 1, false);


--
-- Name: block_ip_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE block_ip_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.block_ip_seq OWNER TO pidc;

--
-- Name: block_ip_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('block_ip_seq', 1, false);


--
-- Name: block_ip; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE block_ip (
    id numeric DEFAULT nextval('block_ip_seq'::regclass) NOT NULL,
    faled_login numeric,
    time_unlock date,
    ip character varying(15) NOT NULL,
    date date NOT NULL
);


ALTER TABLE public.block_ip OWNER TO pidc;

--
-- Name: calendars_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE calendars_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.calendars_seq OWNER TO pidc;

--
-- Name: calendars_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('calendars_seq', 6, true);


--
-- Name: config; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE config (
    title character varying(100),
    school_year numeric,
    login character varying(3),
    version character varying(10)
);


ALTER TABLE public.config OWNER TO pidc;

--
-- Name: course_credits; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE course_credits (
    school_year numeric,
    school_id numeric,
    course_id numeric NOT NULL,
    course_credit_title character varying(10) NOT NULL,
    gpa_multiplier numeric,
    rollover_id numeric,
    year_fraction numeric,
    credits numeric,
    student_requestable character varying(1) DEFAULT 'Y'::character varying,
    student_scheduleable character varying(1) DEFAULT 'Y'::character varying,
    cw_checkbox_setting_1 character varying(1) DEFAULT 'Y'::character varying,
    cw_checkbox_setting_2 character varying(1) DEFAULT 'Y'::character varying,
    cw_checkbox_setting_3 character varying(1) DEFAULT 'Y'::character varying,
    cw_checkbox_setting_4 character varying(1) DEFAULT 'Y'::character varying,
    cw_checkbox_setting_5 character varying(1) DEFAULT 'Y'::character varying,
    does_gpa_1 character varying(1) DEFAULT 'Y'::character varying,
    does_gpa_2 character varying(1) DEFAULT 'Y'::character varying,
    does_gpa_3 character varying(1) DEFAULT 'Y'::character varying,
    does_gpa_4 character varying(1) DEFAULT 'Y'::character varying,
    does_gpa_5 character varying(1) DEFAULT 'Y'::character varying
);


ALTER TABLE public.course_credits OWNER TO pidc;

--
-- Name: course_sections; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE course_sections (
    school_year numeric NOT NULL,
    school_id numeric NOT NULL,
    course_section_id numeric NOT NULL,
    course_id numeric NOT NULL,
    course_credit_title character varying(10) NOT NULL,
    title character varying(100),
    short_name character varying(25),
    school_period_id numeric,
    mp character varying(3),
    school_term_id numeric,
    teacher_id numeric,
    room character varying(10),
    total_seats numeric,
    filled_seats numeric,
    does_attendance character varying(1),
    does_grades character varying(1),
    does_gpa character varying(1),
    gender_restriction character varying(1),
    house_restriction character varying(1),
    credits character varying(4),
    availability numeric,
    rollover_id numeric,
    parent_id numeric,
    days character varying(20),
    calendar_id numeric,
    grade_type_id numeric,
    does_gpa_1 character varying(1),
    does_gpa_2 character varying(1),
    does_gpa_3 character varying(1),
    does_gpa_4 character varying(1),
    does_gpa_5 character varying(1),
    cp_checkbox_setting_1 character varying(1),
    cp_checkbox_setting_2 character varying(1),
    cp_checkbox_setting_3 character varying(1),
    cp_checkbox_setting_4 character varying(1),
    cfield_1 character varying(255),
    cfield_2 character varying(255),
    cfield_3 character varying(255),
    cfield_4 character varying(255),
    cfield_5 character varying(255),
    cfield_6 character varying(255),
    cfield_25 character varying(255),
    co_teacher_id1 numeric,
    co_teacher_id2 numeric,
    co_teacher_id3 numeric,
    co_teacher_id4 numeric,
    co_teacher_id5 numeric,
    co_teacher_id6 numeric,
    co_teacher_id7 numeric,
    co_teacher_id8 numeric,
    co_teacher_id9 numeric,
    co_teacher_id10 numeric,
    co_teacher1_custom1 character varying(255),
    co_teacher2_custom1 character varying(255),
    co_teacher3_custom1 character varying(255),
    co_teacher4_custom1 character varying(255),
    co_teacher5_custom1 character varying(255),
    co_teacher6_custom1 character varying(255),
    co_teacher7_custom1 character varying(255),
    co_teacher8_custom1 character varying(255),
    co_teacher9_custom1 character varying(255),
    co_teacher10_custom1 character varying(255),
    co_teacher1_custom2 character varying(255),
    co_teacher2_custom2 character varying(255),
    co_teacher3_custom2 character varying(255),
    co_teacher4_custom2 character varying(255),
    co_teacher5_custom2 character varying(255),
    co_teacher6_custom2 character varying(255),
    co_teacher7_custom2 character varying(255),
    co_teacher8_custom2 character varying(255),
    co_teacher9_custom2 character varying(255),
    co_teacher10_custom2 character varying(255),
    co_teacher1_checkbox1 character varying(1),
    co_teacher2_checkbox1 character varying(1),
    co_teacher3_checkbox1 character varying(1),
    co_teacher4_checkbox1 character varying(1),
    co_teacher5_checkbox1 character varying(1),
    co_teacher6_checkbox1 character varying(1),
    co_teacher7_checkbox1 character varying(1),
    co_teacher8_checkbox1 character varying(1),
    co_teacher9_checkbox1 character varying(1),
    co_teacher10_checkbox1 character varying(1),
    cp_checkbox_setting_6 character varying(1),
    cp_checkbox_setting_7 character varying(1),
    cp_checkbox_setting_8 character varying(1),
    co_teacher1_permissions character varying(1),
    co_teacher2_permissions character varying(1),
    co_teacher3_permissions character varying(1),
    co_teacher4_permissions character varying(1),
    co_teacher5_permissions character varying(1),
    co_teacher6_permissions character varying(1),
    co_teacher7_permissions character varying(1),
    co_teacher8_permissions character varying(1),
    co_teacher9_permissions character varying(1),
    co_teacher10_permissions character varying(1),
    co_teacher1_report_doe character varying(1),
    co_teacher2_report_doe character varying(1),
    co_teacher3_report_doe character varying(1),
    co_teacher4_report_doe character varying(1),
    co_teacher5_report_doe character varying(1),
    co_teacher6_report_doe character varying(1),
    co_teacher7_report_doe character varying(1),
    co_teacher8_report_doe character varying(1),
    co_teacher9_report_doe character varying(1),
    co_teacher10_report_doe character varying(1),
    merge_id character varying(1000),
    week character varying(1)
);


ALTER TABLE public.course_sections OWNER TO pidc;

--
-- Name: course_sections_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE course_sections_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.course_sections_seq OWNER TO pidc;

--
-- Name: course_sections_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('course_sections_seq', 8, true);


--
-- Name: course_subjects; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE course_subjects (
    school_year numeric,
    school_id numeric,
    subject_id numeric NOT NULL,
    title character varying(100),
    short_name character varying(25),
    rollover_id numeric
);


ALTER TABLE public.course_subjects OWNER TO pidc;

--
-- Name: course_subjects_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE course_subjects_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.course_subjects_seq OWNER TO pidc;

--
-- Name: course_subjects_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('course_subjects_seq', 58, true);


--
-- Name: courses; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE courses (
    school_year numeric NOT NULL,
    course_id numeric NOT NULL,
    subject_id numeric NOT NULL,
    school_id numeric NOT NULL,
    grade_level numeric,
    title character varying(100),
    short_name character varying(25),
    rollover_id numeric,
    grad_subject_id numeric,
    prerequisites character varying(255),
    cfield_1 character varying(255),
    cfield_2 character varying(255),
    mp character varying(10),
    comments character varying(255)
);


ALTER TABLE public.courses OWNER TO pidc;

--
-- Name: courses_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE courses_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.courses_seq OWNER TO pidc;

--
-- Name: courses_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('courses_seq', 359, true);


--
-- Name: delivery_group_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE delivery_group_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.delivery_group_seq OWNER TO pidc;

--
-- Name: delivery_group_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('delivery_group_seq', 1, false);


--
-- Name: delivery_group; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE delivery_group (
    id numeric DEFAULT nextval('delivery_group_seq'::regclass) NOT NULL,
    title character varying(255),
    short_name character varying(20),
    sort_order numeric,
    user_id numeric,
    shared character varying(1)
);


ALTER TABLE public.delivery_group OWNER TO pidc;

--
-- Name: discipline_custom_fields_asg; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE discipline_custom_fields_asg (
    id numeric NOT NULL,
    discipline_field_id numeric NOT NULL,
    school_year numeric NOT NULL,
    school_id numeric NOT NULL,
    title character varying(255),
    select_options character varying(10000),
    sort_order numeric,
    select_codes character varying(10000),
    user_type character varying(10)
);


ALTER TABLE public.discipline_custom_fields_asg OWNER TO pidc;

--
-- Name: discipline_custom_fields_asg_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE discipline_custom_fields_asg_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.discipline_custom_fields_asg_seq OWNER TO pidc;

--
-- Name: discipline_custom_fields_asg_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('discipline_custom_fields_asg_seq', 1, false);


--
-- Name: discipline_incident_categories; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE discipline_incident_categories (
    id numeric NOT NULL,
    title character varying(100),
    allow_teacher_modify character varying(1),
    sort_order numeric,
    columns numeric
);


ALTER TABLE public.discipline_incident_categories OWNER TO pidc;

--
-- Name: discipline_incident_categories_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE discipline_incident_categories_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.discipline_incident_categories_seq OWNER TO pidc;

--
-- Name: discipline_incident_categories_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('discipline_incident_categories_seq', 1, false);


--
-- Name: discipline_incident_fields; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE discipline_incident_fields (
    id numeric NOT NULL,
    type character varying(10),
    search character varying(1),
    select_options character varying(10000),
    category_id numeric,
    system_field character(1),
    default_selection character varying(255),
    required character(1),
    max_length numeric,
    sort_order numeric,
    select_option_codes character varying(10000),
    select_option_default_code character varying(255),
    application character varying(1),
    title character varying(100),
    field_edits text,
    size numeric
);


ALTER TABLE public.discipline_incident_fields OWNER TO pidc;

--
-- Name: discipline_incidents_asg_reports; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE discipline_incidents_asg_reports (
    incident_id numeric,
    referral_id numeric
);


ALTER TABLE public.discipline_incidents_asg_reports OWNER TO pidc;

--
-- Name: discipline_incidents_fields_in_cats; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE discipline_incidents_fields_in_cats (
    field_id integer NOT NULL,
    category_id integer NOT NULL,
    sort_order integer NOT NULL
);


ALTER TABLE public.discipline_incidents_fields_in_cats OWNER TO pidc;

--
-- Name: discipline_report_fields; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE discipline_report_fields (
    id numeric NOT NULL,
    title character varying(255) NOT NULL,
    short_name character varying(20),
    data_type character varying(30) NOT NULL,
    column_name character varying(255) NOT NULL,
    user_type character varying(10)
);


ALTER TABLE public.discipline_report_fields OWNER TO pidc;

--
-- Name: discipline_report_fields_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE discipline_report_fields_seq
    START WITH 10
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.discipline_report_fields_seq OWNER TO pidc;

--
-- Name: discipline_report_fields_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('discipline_report_fields_seq', 10, false);


--
-- Name: docs_template_cells; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE docs_template_cells (
    id numeric,
    template_id numeric,
    type character varying(6),
    style character varying(10),
    border character varying(1),
    sort_order numeric,
    user_id numeric,
    servicemod character varying(255),
    left_cell character varying(10000),
    middle_cell character varying(10000),
    right_cell character varying(10000)
);


ALTER TABLE public.docs_template_cells OWNER TO pidc;

--
-- Name: docs_template_cells_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE docs_template_cells_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.docs_template_cells_seq OWNER TO pidc;

--
-- Name: docs_template_cells_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('docs_template_cells_seq', 1, false);


--
-- Name: docs_templates; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE docs_templates (
    id numeric NOT NULL,
    title character varying(255),
    sort_order numeric,
    school_id numeric,
    header character varying(20000),
    footer character varying(20000),
    default_sm character varying(255),
    default_users_sm character varying(255),
    orientation character varying(10),
    short_name character varying(100),
    user_id numeric,
    document_category_id numeric,
    doc_type character varying(15),
    use_inquiry character varying(1),
    servicemod character varying(255),
    page_breaks character varying(10),
    schools character varying(255),
    use_students character varying(1),
    school_dep character varying(1),
    school_year_dep character varying(1)
);


ALTER TABLE public.docs_templates OWNER TO pidc;

--
-- Name: docs_templates_categories_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE docs_templates_categories_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.docs_templates_categories_seq OWNER TO pidc;

--
-- Name: docs_templates_categories_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('docs_templates_categories_seq', 1, false);


--
-- Name: docs_templates_categories; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE docs_templates_categories (
    id numeric DEFAULT nextval('docs_templates_categories_seq'::regclass) NOT NULL,
    school_id numeric,
    title character varying(100),
    servicemod character varying(255),
    user_id numeric,
    short_name character varying(20),
    sort_order numeric,
    schools character varying(255)
);


ALTER TABLE public.docs_templates_categories OWNER TO pidc;

--
-- Name: docs_templates_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE docs_templates_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.docs_templates_seq OWNER TO pidc;

--
-- Name: docs_templates_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('docs_templates_seq', 1, false);


--
-- Name: evaluation_markpoints; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE evaluation_markpoints (
    school_year numeric(4,0),
    student_id numeric,
    score_id numeric,
    type character varying(9),
    score numeric
);


ALTER TABLE public.evaluation_markpoints OWNER TO pidc;

--
-- Name: evaluation_testparts; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE evaluation_testparts (
    id numeric,
    school_year numeric(4,0),
    exam_id numeric,
    title character varying(100),
    short_name character varying(25),
    max_score numeric
);


ALTER TABLE public.evaluation_testparts OWNER TO pidc;

--
-- Name: evaluation_testparts_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE evaluation_testparts_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.evaluation_testparts_seq OWNER TO pidc;

--
-- Name: evaluation_testparts_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('evaluation_testparts_seq', 1, false);


--
-- Name: evaluation_tests; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE evaluation_tests (
    id numeric,
    school_year numeric(4,0),
    title character varying(100),
    short_name character varying(25),
    max_score numeric
);


ALTER TABLE public.evaluation_tests OWNER TO pidc;

--
-- Name: evaluation_tests_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE evaluation_tests_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.evaluation_tests_seq OWNER TO pidc;

--
-- Name: evaluation_tests_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('evaluation_tests_seq', 1, false);


--
-- Name: grades_card_comments; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE grades_card_comments (
    id numeric NOT NULL,
    school_year numeric,
    school_id numeric,
    title character varying(100),
    sort_order numeric
);


ALTER TABLE public.grades_card_comments OWNER TO pidc;

--
-- Name: grades_card_comments_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE grades_card_comments_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.grades_card_comments_seq OWNER TO pidc;

--
-- Name: grades_card_comments_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('grades_card_comments_seq', 1, false);


--
-- Name: grades_card_evaluation; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE grades_card_evaluation (
    id numeric NOT NULL,
    school_year numeric NOT NULL,
    school_id numeric,
    subject_id numeric,
    course_id numeric,
    course_credit_title character varying(10),
    sort_order numeric,
    standard_id numeric,
    subtitle character varying(255),
    title character varying(255)
);


ALTER TABLE public.grades_card_evaluation OWNER TO pidc;

--
-- Name: grades_card_evaluation_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE grades_card_evaluation_seq
    START WITH 4
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.grades_card_evaluation_seq OWNER TO pidc;

--
-- Name: grades_card_evaluation_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('grades_card_evaluation_seq', 4, false);


--
-- Name: grades_card_settings; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE grades_card_settings (
    id numeric NOT NULL,
    school_year numeric,
    school_id numeric,
    title character varying(3),
    sort_order numeric,
    gpa_value numeric,
    default_breakoff numeric,
    scale_id numeric,
    credits character varying(1),
    weighted_gpa_value numeric,
    description character varying(100)
);


ALTER TABLE public.grades_card_settings OWNER TO pidc;

--
-- Name: grades_card_settings_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE grades_card_settings_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.grades_card_settings_seq OWNER TO pidc;

--
-- Name: grades_card_settings_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('grades_card_settings_seq', 10, true);


--
-- Name: grades_card_tests; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE grades_card_tests (
    id numeric,
    school_year numeric NOT NULL,
    school_id numeric,
    subject_id numeric,
    course_id numeric,
    course_credit_title character varying(10),
    title character varying(100),
    sort_order numeric,
    grading_scale_id numeric,
    rollover_id numeric,
    subtitle character varying(255)
);


ALTER TABLE public.grades_card_tests OWNER TO pidc;

--
-- Name: grades_card_tests_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE grades_card_tests_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.grades_card_tests_seq OWNER TO pidc;

--
-- Name: grades_card_tests_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('grades_card_tests_seq', 1, false);


--
-- Name: grades_card_types; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE grades_card_types (
    id numeric NOT NULL,
    school_year numeric,
    school_id numeric,
    title character varying(30),
    default_scale character varying(1),
    rollover_id numeric
);


ALTER TABLE public.grades_card_types OWNER TO pidc;

--
-- Name: grades_card_types_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE grades_card_types_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.grades_card_types_seq OWNER TO pidc;

--
-- Name: grades_card_types_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('grades_card_types_seq', 2, true);


--
-- Name: graduation_req_subjects; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE graduation_req_subjects (
    id numeric NOT NULL,
    school_id numeric,
    title character varying(100),
    sort_order numeric,
    credits numeric,
    short_name character varying(10)
);


ALTER TABLE public.graduation_req_subjects OWNER TO pidc;

--
-- Name: graduation_req_subjects_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE graduation_req_subjects_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.graduation_req_subjects_seq OWNER TO pidc;

--
-- Name: graduation_req_subjects_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('graduation_req_subjects_seq', 1, false);


--
-- Name: graduation_requirements; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE graduation_requirements (
    id numeric,
    title character varying(100),
    short_name character varying(25)
);


ALTER TABLE public.graduation_requirements OWNER TO pidc;

--
-- Name: graduation_rp_in_course_req; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE graduation_rp_in_course_req (
    program_id numeric,
    recomended_gradelevel character varying(2),
    title character varying(100),
    number_required numeric,
    courses text
);


ALTER TABLE public.graduation_rp_in_course_req OWNER TO pidc;

--
-- Name: graduation_rp_in_subjects; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE graduation_rp_in_subjects (
    program_id numeric,
    subject_id numeric,
    credits numeric
);


ALTER TABLE public.graduation_rp_in_subjects OWNER TO pidc;

--
-- Name: in_outbox_message_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE in_outbox_message_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.in_outbox_message_seq OWNER TO pidc;

--
-- Name: in_outbox_message_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('in_outbox_message_seq', 1, false);


--
-- Name: in_inbox_message; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE in_inbox_message (
    id numeric DEFAULT nextval('in_outbox_message_seq'::regclass) NOT NULL,
    from_user numeric NOT NULL,
    to_user numeric NOT NULL,
    title character varying(200) NOT NULL,
    msg text NOT NULL,
    date date NOT NULL,
    status numeric NOT NULL,
    to_user_profile character varying(50),
    from_user_profile character varying(50)
);


ALTER TABLE public.in_inbox_message OWNER TO pidc;

--
-- Name: in_inbox_message_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE in_inbox_message_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.in_inbox_message_seq OWNER TO pidc;

--
-- Name: in_inbox_message_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('in_inbox_message_seq', 1, false);


--
-- Name: in_outbox_message; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE in_outbox_message (
    id numeric DEFAULT nextval('in_outbox_message_seq'::regclass) NOT NULL,
    from_user numeric NOT NULL,
    to_users character varying(1000) NOT NULL,
    title character varying(200) NOT NULL,
    msg text NOT NULL,
    date date NOT NULL
);


ALTER TABLE public.in_outbox_message OWNER TO pidc;

--
-- Name: info_saves; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE info_saves (
    id numeric,
    title character varying(100),
    url character varying(5000)
);


ALTER TABLE public.info_saves OWNER TO pidc;

--
-- Name: info_saves_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE info_saves_seq
    START WITH 5
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.info_saves_seq OWNER TO pidc;

--
-- Name: info_saves_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('info_saves_seq', 5, false);


--
-- Name: intermediate_report; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE intermediate_report (
    id numeric NOT NULL,
    title character varying(255),
    short_name character varying(40),
    gpavalue double precision,
    school_id numeric
);


ALTER TABLE public.intermediate_report OWNER TO pidc;

--
-- Name: lh_template_cells; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE lh_template_cells (
    id numeric,
    template_id numeric,
    type character varying(6),
    style character varying(10),
    border character varying(1),
    sort_order numeric,
    left_cell character varying(10000),
    middle_cell character varying(10000),
    right_cell character varying(10000)
);


ALTER TABLE public.lh_template_cells OWNER TO pidc;

--
-- Name: lh_template_cells_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE lh_template_cells_seq
    START WITH 13
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.lh_template_cells_seq OWNER TO pidc;

--
-- Name: lh_template_cells_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('lh_template_cells_seq', 13, false);


--
-- Name: lh_templates; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE lh_templates (
    id numeric NOT NULL,
    title character varying(255),
    sort_order numeric,
    school_id numeric,
    header character varying(20000),
    footer character varying(20000),
    default_program character varying(255),
    default_program_for_teachers character varying(255),
    orientation character varying(10),
    page_breaks character varying(10)
);


ALTER TABLE public.lh_templates OWNER TO pidc;

--
-- Name: lh_templates_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE lh_templates_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.lh_templates_seq OWNER TO pidc;

--
-- Name: lh_templates_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('lh_templates_seq', 1, false);


--
-- Name: listing_fields_settings; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE listing_fields_settings (
    student_id numeric NOT NULL,
    html_field_title character varying(15),
    field_name character varying(15),
    select_options text,
    select_codes text
);


ALTER TABLE public.listing_fields_settings OWNER TO pidc;

--
-- Name: login_history_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE login_history_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.login_history_seq OWNER TO pidc;

--
-- Name: login_history_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('login_history_seq', 36, true);


--
-- Name: login_history; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE login_history (
    id numeric DEFAULT nextval('login_history_seq'::regclass) NOT NULL,
    log_text character varying(1000),
    ip character varying(15),
    sucsess character varying(30),
    ldata timestamp without time zone NOT NULL,
    user_id numeric,
    request_method character varying(100),
    http_user_agent character varying(500),
    query_string character varying(1000),
    login character varying(100),
    profile character varying(30)
);


ALTER TABLE public.login_history OWNER TO pidc;

--
-- Name: lunch_period; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE lunch_period (
    student_id numeric,
    school_date date,
    school_period_id numeric,
    attendance_code numeric,
    attendance_teacher_code numeric,
    attendance_reason character varying(100),
    admin character varying(1),
    course_section_id numeric,
    school_term_id numeric,
    table_name numeric
);


ALTER TABLE public.lunch_period OWNER TO pidc;

--
-- Name: mailing_of_group_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mailing_of_group_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mailing_of_group_seq OWNER TO pidc;

--
-- Name: mailing_of_group_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mailing_of_group_seq', 1, false);


--
-- Name: mailing_of_group; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE mailing_of_group (
    id numeric DEFAULT nextval('mailing_of_group_seq'::regclass) NOT NULL,
    title character varying(200) NOT NULL,
    sort numeric,
    user_id numeric NOT NULL
);


ALTER TABLE public.mailing_of_group OWNER TO pidc;

--
-- Name: markbook_assignment_types; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE markbook_assignment_types (
    assignment_type_id numeric NOT NULL,
    user_id numeric,
    course_id numeric,
    title character varying(100),
    final_grade_percent numeric,
    hcolor character varying(6)
);


ALTER TABLE public.markbook_assignment_types OWNER TO pidc;

--
-- Name: markbook_assignment_types_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE markbook_assignment_types_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.markbook_assignment_types_seq OWNER TO pidc;

--
-- Name: markbook_assignment_types_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('markbook_assignment_types_seq', 1, false);


--
-- Name: markbook_assignments; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE markbook_assignments (
    assignment_id numeric NOT NULL,
    user_id numeric,
    school_term_id numeric,
    course_section_id numeric,
    course_id numeric,
    assignment_type_id numeric,
    title character varying(100),
    assigned_date date,
    due_date date,
    points numeric,
    description character varying(1000),
    benchmarks character varying(100)
);


ALTER TABLE public.markbook_assignments OWNER TO pidc;

--
-- Name: markbook_assignments_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE markbook_assignments_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.markbook_assignments_seq OWNER TO pidc;

--
-- Name: markbook_assignments_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('markbook_assignments_seq', 1, false);


--
-- Name: markbook_teachers_filled; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE markbook_teachers_filled (
    user_id numeric NOT NULL,
    school_period_id numeric,
    school_term_id character varying(10),
    course_section_id numeric
);


ALTER TABLE public.markbook_teachers_filled OWNER TO pidc;

--
-- Name: mdl_assignment_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_assignment_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_assignment_id_seq OWNER TO pidc;

--
-- Name: mdl_assignment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_assignment_id_seq', 1, false);


--
-- Name: mdl_assignment_submissions_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_assignment_submissions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_assignment_submissions_id_seq OWNER TO pidc;

--
-- Name: mdl_assignment_submissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_assignment_submissions_id_seq', 1, false);


--
-- Name: mdl_backup_config_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_backup_config_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_backup_config_id_seq OWNER TO pidc;

--
-- Name: mdl_backup_config_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_backup_config_id_seq', 1, false);


--
-- Name: mdl_backup_courses_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_backup_courses_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_backup_courses_id_seq OWNER TO pidc;

--
-- Name: mdl_backup_courses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_backup_courses_id_seq', 1, false);


--
-- Name: mdl_backup_files_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_backup_files_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_backup_files_id_seq OWNER TO pidc;

--
-- Name: mdl_backup_files_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_backup_files_id_seq', 1, false);


--
-- Name: mdl_backup_ids_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_backup_ids_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_backup_ids_id_seq OWNER TO pidc;

--
-- Name: mdl_backup_ids_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_backup_ids_id_seq', 1, false);


--
-- Name: mdl_backup_log_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_backup_log_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_backup_log_id_seq OWNER TO pidc;

--
-- Name: mdl_backup_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_backup_log_id_seq', 1, false);


--
-- Name: mdl_block_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_block_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_block_id_seq OWNER TO pidc;

--
-- Name: mdl_block_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_block_id_seq', 1, false);


--
-- Name: mdl_block_instance_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_block_instance_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_block_instance_id_seq OWNER TO pidc;

--
-- Name: mdl_block_instance_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_block_instance_id_seq', 1, false);


--
-- Name: mdl_block_pinned_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_block_pinned_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_block_pinned_id_seq OWNER TO pidc;

--
-- Name: mdl_block_pinned_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_block_pinned_id_seq', 1, false);


--
-- Name: mdl_block_rss_client_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_block_rss_client_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_block_rss_client_id_seq OWNER TO pidc;

--
-- Name: mdl_block_rss_client_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_block_rss_client_id_seq', 1, false);


--
-- Name: mdl_block_search_documents_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_block_search_documents_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_block_search_documents_id_seq OWNER TO pidc;

--
-- Name: mdl_block_search_documents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_block_search_documents_id_seq', 1, false);


--
-- Name: mdl_cache_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_cache_filters_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_cache_filters_id_seq OWNER TO pidc;

--
-- Name: mdl_cache_filters_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_cache_filters_id_seq', 1, false);


--
-- Name: mdl_cache_flags_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_cache_flags_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_cache_flags_id_seq OWNER TO pidc;

--
-- Name: mdl_cache_flags_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_cache_flags_id_seq', 1, false);


--
-- Name: mdl_cache_text_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_cache_text_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_cache_text_id_seq OWNER TO pidc;

--
-- Name: mdl_cache_text_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_cache_text_id_seq', 1, false);


--
-- Name: mdl_capabilities_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_capabilities_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_capabilities_id_seq OWNER TO pidc;

--
-- Name: mdl_capabilities_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_capabilities_id_seq', 1, false);


--
-- Name: mdl_chat_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_chat_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_chat_id_seq OWNER TO pidc;

--
-- Name: mdl_chat_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_chat_id_seq', 1, false);


--
-- Name: mdl_chat_messages_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_chat_messages_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_chat_messages_id_seq OWNER TO pidc;

--
-- Name: mdl_chat_messages_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_chat_messages_id_seq', 1, false);


--
-- Name: mdl_chat_users_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_chat_users_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_chat_users_id_seq OWNER TO pidc;

--
-- Name: mdl_chat_users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_chat_users_id_seq', 1, false);


--
-- Name: mdl_choice_answers_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_choice_answers_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_choice_answers_id_seq OWNER TO pidc;

--
-- Name: mdl_choice_answers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_choice_answers_id_seq', 1, false);


--
-- Name: mdl_choice_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_choice_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_choice_id_seq OWNER TO pidc;

--
-- Name: mdl_choice_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_choice_id_seq', 1, false);


--
-- Name: mdl_choice_options_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_choice_options_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_choice_options_id_seq OWNER TO pidc;

--
-- Name: mdl_choice_options_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_choice_options_id_seq', 1, false);


--
-- Name: mdl_config_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_config_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_config_id_seq OWNER TO pidc;

--
-- Name: mdl_config_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_config_id_seq', 1, false);


--
-- Name: mdl_config_plugins_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_config_plugins_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_config_plugins_id_seq OWNER TO pidc;

--
-- Name: mdl_config_plugins_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_config_plugins_id_seq', 1, false);


--
-- Name: mdl_context_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_context_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_context_id_seq OWNER TO pidc;

--
-- Name: mdl_context_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_context_id_seq', 1, false);


--
-- Name: mdl_course_allowed_modules_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_course_allowed_modules_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_course_allowed_modules_id_seq OWNER TO pidc;

--
-- Name: mdl_course_allowed_modules_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_course_allowed_modules_id_seq', 1, false);


--
-- Name: mdl_course_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_course_categories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_course_categories_id_seq OWNER TO pidc;

--
-- Name: mdl_course_categories_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_course_categories_id_seq', 1, false);


--
-- Name: mdl_course_display_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_course_display_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_course_display_id_seq OWNER TO pidc;

--
-- Name: mdl_course_display_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_course_display_id_seq', 1, false);


--
-- Name: mdl_course_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_course_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_course_id_seq OWNER TO pidc;

--
-- Name: mdl_course_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_course_id_seq', 1, false);


--
-- Name: mdl_course_meta_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_course_meta_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_course_meta_id_seq OWNER TO pidc;

--
-- Name: mdl_course_meta_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_course_meta_id_seq', 1, false);


--
-- Name: mdl_course_modules_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_course_modules_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_course_modules_id_seq OWNER TO pidc;

--
-- Name: mdl_course_modules_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_course_modules_id_seq', 1, false);


--
-- Name: mdl_course_request_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_course_request_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_course_request_id_seq OWNER TO pidc;

--
-- Name: mdl_course_request_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_course_request_id_seq', 1, false);


--
-- Name: mdl_course_sections_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_course_sections_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_course_sections_id_seq OWNER TO pidc;

--
-- Name: mdl_course_sections_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_course_sections_id_seq', 1, false);


--
-- Name: mdl_data_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_data_comments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_data_comments_id_seq OWNER TO pidc;

--
-- Name: mdl_data_comments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_data_comments_id_seq', 1, false);


--
-- Name: mdl_data_content_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_data_content_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_data_content_id_seq OWNER TO pidc;

--
-- Name: mdl_data_content_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_data_content_id_seq', 1, false);


--
-- Name: mdl_data_fields_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_data_fields_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_data_fields_id_seq OWNER TO pidc;

--
-- Name: mdl_data_fields_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_data_fields_id_seq', 1, false);


--
-- Name: mdl_data_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_data_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_data_id_seq OWNER TO pidc;

--
-- Name: mdl_data_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_data_id_seq', 1, false);


--
-- Name: mdl_data_ratings_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_data_ratings_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_data_ratings_id_seq OWNER TO pidc;

--
-- Name: mdl_data_ratings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_data_ratings_id_seq', 1, false);


--
-- Name: mdl_data_records_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_data_records_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_data_records_id_seq OWNER TO pidc;

--
-- Name: mdl_data_records_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_data_records_id_seq', 1, false);


--
-- Name: mdl_enrol_authorize_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_enrol_authorize_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_enrol_authorize_id_seq OWNER TO pidc;

--
-- Name: mdl_enrol_authorize_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_enrol_authorize_id_seq', 1, false);


--
-- Name: mdl_enrol_authorize_refunds_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_enrol_authorize_refunds_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_enrol_authorize_refunds_id_seq OWNER TO pidc;

--
-- Name: mdl_enrol_authorize_refunds_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_enrol_authorize_refunds_id_seq', 1, false);


--
-- Name: mdl_enrol_paypal_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_enrol_paypal_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_enrol_paypal_id_seq OWNER TO pidc;

--
-- Name: mdl_enrol_paypal_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_enrol_paypal_id_seq', 1, false);


--
-- Name: mdl_event_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_event_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_event_id_seq OWNER TO pidc;

--
-- Name: mdl_event_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_event_id_seq', 1, false);


--
-- Name: mdl_events_handlers_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_events_handlers_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_events_handlers_id_seq OWNER TO pidc;

--
-- Name: mdl_events_handlers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_events_handlers_id_seq', 1, false);


--
-- Name: mdl_events_queue_handlers_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_events_queue_handlers_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_events_queue_handlers_id_seq OWNER TO pidc;

--
-- Name: mdl_events_queue_handlers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_events_queue_handlers_id_seq', 1, false);


--
-- Name: mdl_events_queue_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_events_queue_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_events_queue_id_seq OWNER TO pidc;

--
-- Name: mdl_events_queue_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_events_queue_id_seq', 1, false);


--
-- Name: mdl_forum_discussions_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_forum_discussions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_forum_discussions_id_seq OWNER TO pidc;

--
-- Name: mdl_forum_discussions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_forum_discussions_id_seq', 1, false);


--
-- Name: mdl_forum_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_forum_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_forum_id_seq OWNER TO pidc;

--
-- Name: mdl_forum_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_forum_id_seq', 1, false);


--
-- Name: mdl_forum_posts_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_forum_posts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_forum_posts_id_seq OWNER TO pidc;

--
-- Name: mdl_forum_posts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_forum_posts_id_seq', 1, false);


--
-- Name: mdl_forum_queue_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_forum_queue_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_forum_queue_id_seq OWNER TO pidc;

--
-- Name: mdl_forum_queue_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_forum_queue_id_seq', 1, false);


--
-- Name: mdl_forum_ratings_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_forum_ratings_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_forum_ratings_id_seq OWNER TO pidc;

--
-- Name: mdl_forum_ratings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_forum_ratings_id_seq', 1, false);


--
-- Name: mdl_forum_read_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_forum_read_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_forum_read_id_seq OWNER TO pidc;

--
-- Name: mdl_forum_read_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_forum_read_id_seq', 1, false);


--
-- Name: mdl_forum_subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_forum_subscriptions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_forum_subscriptions_id_seq OWNER TO pidc;

--
-- Name: mdl_forum_subscriptions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_forum_subscriptions_id_seq', 1, false);


--
-- Name: mdl_forum_track_prefs_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_forum_track_prefs_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_forum_track_prefs_id_seq OWNER TO pidc;

--
-- Name: mdl_forum_track_prefs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_forum_track_prefs_id_seq', 1, false);


--
-- Name: mdl_glossary_alias_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_glossary_alias_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_glossary_alias_id_seq OWNER TO pidc;

--
-- Name: mdl_glossary_alias_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_glossary_alias_id_seq', 1, false);


--
-- Name: mdl_glossary_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_glossary_categories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_glossary_categories_id_seq OWNER TO pidc;

--
-- Name: mdl_glossary_categories_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_glossary_categories_id_seq', 1, false);


--
-- Name: mdl_glossary_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_glossary_comments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_glossary_comments_id_seq OWNER TO pidc;

--
-- Name: mdl_glossary_comments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_glossary_comments_id_seq', 1, false);


--
-- Name: mdl_glossary_entries_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_glossary_entries_categories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_glossary_entries_categories_id_seq OWNER TO pidc;

--
-- Name: mdl_glossary_entries_categories_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_glossary_entries_categories_id_seq', 1, false);


--
-- Name: mdl_glossary_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_glossary_entries_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_glossary_entries_id_seq OWNER TO pidc;

--
-- Name: mdl_glossary_entries_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_glossary_entries_id_seq', 1, false);


--
-- Name: mdl_glossary_formats_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_glossary_formats_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_glossary_formats_id_seq OWNER TO pidc;

--
-- Name: mdl_glossary_formats_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_glossary_formats_id_seq', 1, false);


--
-- Name: mdl_glossary_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_glossary_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_glossary_id_seq OWNER TO pidc;

--
-- Name: mdl_glossary_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_glossary_id_seq', 1, false);


--
-- Name: mdl_glossary_ratings_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_glossary_ratings_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_glossary_ratings_id_seq OWNER TO pidc;

--
-- Name: mdl_glossary_ratings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_glossary_ratings_id_seq', 1, false);


--
-- Name: mdl_grade_categories_history_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_categories_history_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_categories_history_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_categories_history_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_categories_history_id_seq', 1, false);


--
-- Name: mdl_grade_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_categories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_categories_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_categories_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_categories_id_seq', 1, false);


--
-- Name: mdl_grade_grades_history_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_grades_history_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_grades_history_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_grades_history_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_grades_history_id_seq', 1, false);


--
-- Name: mdl_grade_grades_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_grades_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_grades_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_grades_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_grades_id_seq', 1, false);


--
-- Name: mdl_grade_import_newitem_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_import_newitem_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_import_newitem_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_import_newitem_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_import_newitem_id_seq', 1, false);


--
-- Name: mdl_grade_import_values_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_import_values_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_import_values_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_import_values_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_import_values_id_seq', 1, false);


--
-- Name: mdl_grade_items_history_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_items_history_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_items_history_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_items_history_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_items_history_id_seq', 1, false);


--
-- Name: mdl_grade_items_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_items_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_items_id_seq', 1, false);


--
-- Name: mdl_grade_letters_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_letters_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_letters_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_letters_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_letters_id_seq', 1, false);


--
-- Name: mdl_grade_outcomes_courses_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_outcomes_courses_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_outcomes_courses_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_outcomes_courses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_outcomes_courses_id_seq', 1, false);


--
-- Name: mdl_grade_outcomes_history_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_outcomes_history_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_outcomes_history_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_outcomes_history_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_outcomes_history_id_seq', 1, false);


--
-- Name: mdl_grade_outcomes_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_outcomes_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_outcomes_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_outcomes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_outcomes_id_seq', 1, false);


--
-- Name: mdl_grade_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_grade_settings_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_grade_settings_id_seq OWNER TO pidc;

--
-- Name: mdl_grade_settings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_grade_settings_id_seq', 1, false);


--
-- Name: mdl_groupings_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_groupings_groups_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_groupings_groups_id_seq OWNER TO pidc;

--
-- Name: mdl_groupings_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_groupings_groups_id_seq', 1, false);


--
-- Name: mdl_groupings_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_groupings_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_groupings_id_seq OWNER TO pidc;

--
-- Name: mdl_groupings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_groupings_id_seq', 1, false);


--
-- Name: mdl_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_groups_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_groups_id_seq OWNER TO pidc;

--
-- Name: mdl_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_groups_id_seq', 1, false);


--
-- Name: mdl_groups_members_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_groups_members_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_groups_members_id_seq OWNER TO pidc;

--
-- Name: mdl_groups_members_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_groups_members_id_seq', 1, false);


--
-- Name: mdl_hotpot_attempts_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_hotpot_attempts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_hotpot_attempts_id_seq OWNER TO pidc;

--
-- Name: mdl_hotpot_attempts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_hotpot_attempts_id_seq', 1, false);


--
-- Name: mdl_hotpot_details_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_hotpot_details_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_hotpot_details_id_seq OWNER TO pidc;

--
-- Name: mdl_hotpot_details_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_hotpot_details_id_seq', 1, false);


--
-- Name: mdl_hotpot_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_hotpot_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_hotpot_id_seq OWNER TO pidc;

--
-- Name: mdl_hotpot_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_hotpot_id_seq', 1, false);


--
-- Name: mdl_hotpot_questions_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_hotpot_questions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_hotpot_questions_id_seq OWNER TO pidc;

--
-- Name: mdl_hotpot_questions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_hotpot_questions_id_seq', 1, false);


--
-- Name: mdl_hotpot_responses_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_hotpot_responses_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_hotpot_responses_id_seq OWNER TO pidc;

--
-- Name: mdl_hotpot_responses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_hotpot_responses_id_seq', 1, false);


--
-- Name: mdl_hotpot_strings_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_hotpot_strings_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_hotpot_strings_id_seq OWNER TO pidc;

--
-- Name: mdl_hotpot_strings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_hotpot_strings_id_seq', 1, false);


--
-- Name: mdl_journal_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_journal_entries_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_journal_entries_id_seq OWNER TO pidc;

--
-- Name: mdl_journal_entries_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_journal_entries_id_seq', 1, false);


--
-- Name: mdl_journal_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_journal_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_journal_id_seq OWNER TO pidc;

--
-- Name: mdl_journal_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_journal_id_seq', 1, false);


--
-- Name: mdl_label_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_label_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_label_id_seq OWNER TO pidc;

--
-- Name: mdl_label_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_label_id_seq', 1, false);


--
-- Name: mdl_lams_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_lams_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_lams_id_seq OWNER TO pidc;

--
-- Name: mdl_lams_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_lams_id_seq', 1, false);


--
-- Name: mdl_lesson_answers_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_lesson_answers_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_lesson_answers_id_seq OWNER TO pidc;

--
-- Name: mdl_lesson_answers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_lesson_answers_id_seq', 1, false);


--
-- Name: mdl_lesson_attempts_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_lesson_attempts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_lesson_attempts_id_seq OWNER TO pidc;

--
-- Name: mdl_lesson_attempts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_lesson_attempts_id_seq', 1, false);


--
-- Name: mdl_lesson_branch_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_lesson_branch_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_lesson_branch_id_seq OWNER TO pidc;

--
-- Name: mdl_lesson_branch_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_lesson_branch_id_seq', 1, false);


--
-- Name: mdl_lesson_default_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_lesson_default_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_lesson_default_id_seq OWNER TO pidc;

--
-- Name: mdl_lesson_default_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_lesson_default_id_seq', 1, false);


--
-- Name: mdl_lesson_grades_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_lesson_grades_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_lesson_grades_id_seq OWNER TO pidc;

--
-- Name: mdl_lesson_grades_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_lesson_grades_id_seq', 1, false);


--
-- Name: mdl_lesson_high_scores_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_lesson_high_scores_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_lesson_high_scores_id_seq OWNER TO pidc;

--
-- Name: mdl_lesson_high_scores_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_lesson_high_scores_id_seq', 1, false);


--
-- Name: mdl_lesson_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_lesson_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_lesson_id_seq OWNER TO pidc;

--
-- Name: mdl_lesson_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_lesson_id_seq', 1, false);


--
-- Name: mdl_lesson_pages_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_lesson_pages_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_lesson_pages_id_seq OWNER TO pidc;

--
-- Name: mdl_lesson_pages_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_lesson_pages_id_seq', 1, false);


--
-- Name: mdl_lesson_timer_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_lesson_timer_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_lesson_timer_id_seq OWNER TO pidc;

--
-- Name: mdl_lesson_timer_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_lesson_timer_id_seq', 1, false);


--
-- Name: mdl_log_display_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_log_display_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_log_display_id_seq OWNER TO pidc;

--
-- Name: mdl_log_display_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_log_display_id_seq', 1, false);


--
-- Name: mdl_log_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_log_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_log_id_seq OWNER TO pidc;

--
-- Name: mdl_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_log_id_seq', 1, false);


--
-- Name: mdl_message_contacts_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_message_contacts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_message_contacts_id_seq OWNER TO pidc;

--
-- Name: mdl_message_contacts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_message_contacts_id_seq', 1, false);


--
-- Name: mdl_message_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_message_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_message_id_seq OWNER TO pidc;

--
-- Name: mdl_message_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_message_id_seq', 1, false);


--
-- Name: mdl_message_read_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_message_read_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_message_read_id_seq OWNER TO pidc;

--
-- Name: mdl_message_read_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_message_read_id_seq', 1, false);


--
-- Name: mdl_mnet_application_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_mnet_application_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_mnet_application_id_seq OWNER TO pidc;

--
-- Name: mdl_mnet_application_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_mnet_application_id_seq', 1, false);


--
-- Name: mdl_mnet_enrol_assignments_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_mnet_enrol_assignments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_mnet_enrol_assignments_id_seq OWNER TO pidc;

--
-- Name: mdl_mnet_enrol_assignments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_mnet_enrol_assignments_id_seq', 1, false);


--
-- Name: mdl_mnet_enrol_course_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_mnet_enrol_course_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_mnet_enrol_course_id_seq OWNER TO pidc;

--
-- Name: mdl_mnet_enrol_course_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_mnet_enrol_course_id_seq', 1, false);


--
-- Name: mdl_mnet_host2service_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_mnet_host2service_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_mnet_host2service_id_seq OWNER TO pidc;

--
-- Name: mdl_mnet_host2service_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_mnet_host2service_id_seq', 1, false);


--
-- Name: mdl_mnet_host_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_mnet_host_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_mnet_host_id_seq OWNER TO pidc;

--
-- Name: mdl_mnet_host_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_mnet_host_id_seq', 1, false);


--
-- Name: mdl_mnet_log_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_mnet_log_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_mnet_log_id_seq OWNER TO pidc;

--
-- Name: mdl_mnet_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_mnet_log_id_seq', 1, false);


--
-- Name: mdl_mnet_rpc_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_mnet_rpc_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_mnet_rpc_id_seq OWNER TO pidc;

--
-- Name: mdl_mnet_rpc_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_mnet_rpc_id_seq', 1, false);


--
-- Name: mdl_mnet_service2rpc_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_mnet_service2rpc_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_mnet_service2rpc_id_seq OWNER TO pidc;

--
-- Name: mdl_mnet_service2rpc_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_mnet_service2rpc_id_seq', 1, false);


--
-- Name: mdl_mnet_service_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_mnet_service_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_mnet_service_id_seq OWNER TO pidc;

--
-- Name: mdl_mnet_service_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_mnet_service_id_seq', 1, false);


--
-- Name: mdl_mnet_session_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_mnet_session_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_mnet_session_id_seq OWNER TO pidc;

--
-- Name: mdl_mnet_session_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_mnet_session_id_seq', 1, false);


--
-- Name: mdl_mnet_sso_access_control_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_mnet_sso_access_control_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_mnet_sso_access_control_id_seq OWNER TO pidc;

--
-- Name: mdl_mnet_sso_access_control_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_mnet_sso_access_control_id_seq', 1, false);


--
-- Name: mdl_modules_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_modules_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_modules_id_seq OWNER TO pidc;

--
-- Name: mdl_modules_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_modules_id_seq', 1, false);


--
-- Name: mdl_post_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_post_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_post_id_seq OWNER TO pidc;

--
-- Name: mdl_post_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_post_id_seq', 1, false);


--
-- Name: mdl_question_answers_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_answers_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_answers_id_seq OWNER TO pidc;

--
-- Name: mdl_question_answers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_answers_id_seq', 1, false);


--
-- Name: mdl_question_attempts_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_attempts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_attempts_id_seq OWNER TO pidc;

--
-- Name: mdl_question_attempts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_attempts_id_seq', 1, false);


--
-- Name: mdl_question_calculated_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_calculated_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_calculated_id_seq OWNER TO pidc;

--
-- Name: mdl_question_calculated_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_calculated_id_seq', 1, false);


--
-- Name: mdl_question_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_categories_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_categories_id_seq OWNER TO pidc;

--
-- Name: mdl_question_categories_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_categories_id_seq', 1, false);


--
-- Name: mdl_question_dataset_definitions_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_dataset_definitions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_dataset_definitions_id_seq OWNER TO pidc;

--
-- Name: mdl_question_dataset_definitions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_dataset_definitions_id_seq', 1, false);


--
-- Name: mdl_question_dataset_items_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_dataset_items_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_dataset_items_id_seq OWNER TO pidc;

--
-- Name: mdl_question_dataset_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_dataset_items_id_seq', 1, false);


--
-- Name: mdl_question_datasets_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_datasets_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_datasets_id_seq OWNER TO pidc;

--
-- Name: mdl_question_datasets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_datasets_id_seq', 1, false);


--
-- Name: mdl_question_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_id_seq OWNER TO pidc;

--
-- Name: mdl_question_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_id_seq', 1, false);


--
-- Name: mdl_question_match_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_match_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_match_id_seq OWNER TO pidc;

--
-- Name: mdl_question_match_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_match_id_seq', 1, false);


--
-- Name: mdl_question_match_sub_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_match_sub_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_match_sub_id_seq OWNER TO pidc;

--
-- Name: mdl_question_match_sub_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_match_sub_id_seq', 1, false);


--
-- Name: mdl_question_multianswer_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_multianswer_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_multianswer_id_seq OWNER TO pidc;

--
-- Name: mdl_question_multianswer_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_multianswer_id_seq', 1, false);


--
-- Name: mdl_question_multichoice_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_multichoice_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_multichoice_id_seq OWNER TO pidc;

--
-- Name: mdl_question_multichoice_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_multichoice_id_seq', 1, false);


--
-- Name: mdl_question_numerical_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_numerical_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_numerical_id_seq OWNER TO pidc;

--
-- Name: mdl_question_numerical_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_numerical_id_seq', 1, false);


--
-- Name: mdl_question_numerical_units_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_numerical_units_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_numerical_units_id_seq OWNER TO pidc;

--
-- Name: mdl_question_numerical_units_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_numerical_units_id_seq', 1, false);


--
-- Name: mdl_question_randomsamatch_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_randomsamatch_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_randomsamatch_id_seq OWNER TO pidc;

--
-- Name: mdl_question_randomsamatch_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_randomsamatch_id_seq', 1, false);


--
-- Name: mdl_question_sessions_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_sessions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_sessions_id_seq OWNER TO pidc;

--
-- Name: mdl_question_sessions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_sessions_id_seq', 1, false);


--
-- Name: mdl_question_shortanswer_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_shortanswer_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_shortanswer_id_seq OWNER TO pidc;

--
-- Name: mdl_question_shortanswer_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_shortanswer_id_seq', 1, false);


--
-- Name: mdl_question_states_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_states_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_states_id_seq OWNER TO pidc;

--
-- Name: mdl_question_states_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_states_id_seq', 1, false);


--
-- Name: mdl_question_truefalse_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_question_truefalse_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_question_truefalse_id_seq OWNER TO pidc;

--
-- Name: mdl_question_truefalse_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_question_truefalse_id_seq', 1, false);


--
-- Name: mdl_quiz_attempts_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_quiz_attempts_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_quiz_attempts_id_seq OWNER TO pidc;

--
-- Name: mdl_quiz_attempts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_quiz_attempts_id_seq', 1, false);


--
-- Name: mdl_quiz_feedback_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_quiz_feedback_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_quiz_feedback_id_seq OWNER TO pidc;

--
-- Name: mdl_quiz_feedback_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_quiz_feedback_id_seq', 1, false);


--
-- Name: mdl_quiz_grades_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_quiz_grades_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_quiz_grades_id_seq OWNER TO pidc;

--
-- Name: mdl_quiz_grades_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_quiz_grades_id_seq', 1, false);


--
-- Name: mdl_quiz_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_quiz_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_quiz_id_seq OWNER TO pidc;

--
-- Name: mdl_quiz_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_quiz_id_seq', 1, false);


--
-- Name: mdl_quiz_question_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_quiz_question_instances_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_quiz_question_instances_id_seq OWNER TO pidc;

--
-- Name: mdl_quiz_question_instances_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_quiz_question_instances_id_seq', 1, false);


--
-- Name: mdl_quiz_question_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_quiz_question_versions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_quiz_question_versions_id_seq OWNER TO pidc;

--
-- Name: mdl_quiz_question_versions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_quiz_question_versions_id_seq', 1, false);


--
-- Name: mdl_resource_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_resource_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_resource_id_seq OWNER TO pidc;

--
-- Name: mdl_resource_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_resource_id_seq', 1, false);


--
-- Name: mdl_role_allow_assign_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_role_allow_assign_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_role_allow_assign_id_seq OWNER TO pidc;

--
-- Name: mdl_role_allow_assign_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_role_allow_assign_id_seq', 1, false);


--
-- Name: mdl_role_allow_override_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_role_allow_override_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_role_allow_override_id_seq OWNER TO pidc;

--
-- Name: mdl_role_allow_override_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_role_allow_override_id_seq', 1, false);


--
-- Name: mdl_role_assignments_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_role_assignments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_role_assignments_id_seq OWNER TO pidc;

--
-- Name: mdl_role_assignments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_role_assignments_id_seq', 1, false);


--
-- Name: mdl_role_capabilities_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_role_capabilities_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_role_capabilities_id_seq OWNER TO pidc;

--
-- Name: mdl_role_capabilities_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_role_capabilities_id_seq', 1, false);


--
-- Name: mdl_role_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_role_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_role_id_seq OWNER TO pidc;

--
-- Name: mdl_role_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_role_id_seq', 1, false);


--
-- Name: mdl_role_names_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_role_names_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_role_names_id_seq OWNER TO pidc;

--
-- Name: mdl_role_names_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_role_names_id_seq', 1, false);


--
-- Name: mdl_role_sortorder_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_role_sortorder_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_role_sortorder_id_seq OWNER TO pidc;

--
-- Name: mdl_role_sortorder_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_role_sortorder_id_seq', 1, false);


--
-- Name: mdl_scale_history_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_scale_history_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_scale_history_id_seq OWNER TO pidc;

--
-- Name: mdl_scale_history_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_scale_history_id_seq', 1, false);


--
-- Name: mdl_scale_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_scale_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_scale_id_seq OWNER TO pidc;

--
-- Name: mdl_scale_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_scale_id_seq', 1, false);


--
-- Name: mdl_scorm_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_scorm_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_scorm_id_seq OWNER TO pidc;

--
-- Name: mdl_scorm_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_scorm_id_seq', 1, false);


--
-- Name: mdl_scorm_scoes_data_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_scorm_scoes_data_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_scorm_scoes_data_id_seq OWNER TO pidc;

--
-- Name: mdl_scorm_scoes_data_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_scorm_scoes_data_id_seq', 1, false);


--
-- Name: mdl_scorm_scoes_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_scorm_scoes_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_scorm_scoes_id_seq OWNER TO pidc;

--
-- Name: mdl_scorm_scoes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_scorm_scoes_id_seq', 1, false);


--
-- Name: mdl_scorm_scoes_track_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_scorm_scoes_track_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_scorm_scoes_track_id_seq OWNER TO pidc;

--
-- Name: mdl_scorm_scoes_track_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_scorm_scoes_track_id_seq', 1, false);


--
-- Name: mdl_scorm_seq_mapinfo_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_scorm_seq_mapinfo_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_scorm_seq_mapinfo_id_seq OWNER TO pidc;

--
-- Name: mdl_scorm_seq_mapinfo_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_scorm_seq_mapinfo_id_seq', 1, false);


--
-- Name: mdl_scorm_seq_objective_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_scorm_seq_objective_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_scorm_seq_objective_id_seq OWNER TO pidc;

--
-- Name: mdl_scorm_seq_objective_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_scorm_seq_objective_id_seq', 1, false);


--
-- Name: mdl_scorm_seq_rolluprule_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_scorm_seq_rolluprule_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_scorm_seq_rolluprule_id_seq OWNER TO pidc;

--
-- Name: mdl_scorm_seq_rolluprule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_scorm_seq_rolluprule_id_seq', 1, false);


--
-- Name: mdl_scorm_seq_rolluprulecond_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_scorm_seq_rolluprulecond_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_scorm_seq_rolluprulecond_id_seq OWNER TO pidc;

--
-- Name: mdl_scorm_seq_rolluprulecond_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_scorm_seq_rolluprulecond_id_seq', 1, false);


--
-- Name: mdl_scorm_seq_rulecond_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_scorm_seq_rulecond_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_scorm_seq_rulecond_id_seq OWNER TO pidc;

--
-- Name: mdl_scorm_seq_rulecond_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_scorm_seq_rulecond_id_seq', 1, false);


--
-- Name: mdl_scorm_seq_ruleconds_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_scorm_seq_ruleconds_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_scorm_seq_ruleconds_id_seq OWNER TO pidc;

--
-- Name: mdl_scorm_seq_ruleconds_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_scorm_seq_ruleconds_id_seq', 1, false);


--
-- Name: mdl_stats_daily_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_stats_daily_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_stats_daily_id_seq OWNER TO pidc;

--
-- Name: mdl_stats_daily_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_stats_daily_id_seq', 1, false);


--
-- Name: mdl_stats_monthly_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_stats_monthly_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_stats_monthly_id_seq OWNER TO pidc;

--
-- Name: mdl_stats_monthly_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_stats_monthly_id_seq', 1, false);


--
-- Name: mdl_stats_user_daily_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_stats_user_daily_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_stats_user_daily_id_seq OWNER TO pidc;

--
-- Name: mdl_stats_user_daily_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_stats_user_daily_id_seq', 1, false);


--
-- Name: mdl_stats_user_monthly_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_stats_user_monthly_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_stats_user_monthly_id_seq OWNER TO pidc;

--
-- Name: mdl_stats_user_monthly_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_stats_user_monthly_id_seq', 1, false);


--
-- Name: mdl_stats_user_weekly_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_stats_user_weekly_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_stats_user_weekly_id_seq OWNER TO pidc;

--
-- Name: mdl_stats_user_weekly_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_stats_user_weekly_id_seq', 1, false);


--
-- Name: mdl_stats_weekly_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_stats_weekly_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_stats_weekly_id_seq OWNER TO pidc;

--
-- Name: mdl_stats_weekly_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_stats_weekly_id_seq', 1, false);


--
-- Name: mdl_survey_analysis_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_survey_analysis_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_survey_analysis_id_seq OWNER TO pidc;

--
-- Name: mdl_survey_analysis_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_survey_analysis_id_seq', 1, false);


--
-- Name: mdl_survey_answers_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_survey_answers_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_survey_answers_id_seq OWNER TO pidc;

--
-- Name: mdl_survey_answers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_survey_answers_id_seq', 1, false);


--
-- Name: mdl_survey_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_survey_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_survey_id_seq OWNER TO pidc;

--
-- Name: mdl_survey_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_survey_id_seq', 1, false);


--
-- Name: mdl_survey_questions_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_survey_questions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_survey_questions_id_seq OWNER TO pidc;

--
-- Name: mdl_survey_questions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_survey_questions_id_seq', 1, false);


--
-- Name: mdl_tag_correlation_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_tag_correlation_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_tag_correlation_id_seq OWNER TO pidc;

--
-- Name: mdl_tag_correlation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_tag_correlation_id_seq', 1, false);


--
-- Name: mdl_tag_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_tag_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_tag_id_seq OWNER TO pidc;

--
-- Name: mdl_tag_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_tag_id_seq', 1, false);


--
-- Name: mdl_tag_instance_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_tag_instance_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_tag_instance_id_seq OWNER TO pidc;

--
-- Name: mdl_tag_instance_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_tag_instance_id_seq', 1, false);


--
-- Name: mdl_timezone_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_timezone_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_timezone_id_seq OWNER TO pidc;

--
-- Name: mdl_timezone_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_timezone_id_seq', 1, false);


--
-- Name: mdl_user_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_user_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_user_id_seq OWNER TO pidc;

--
-- Name: mdl_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_user_id_seq', 1, false);


--
-- Name: mdl_user_info_category_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_user_info_category_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_user_info_category_id_seq OWNER TO pidc;

--
-- Name: mdl_user_info_category_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_user_info_category_id_seq', 1, false);


--
-- Name: mdl_user_info_data_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_user_info_data_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_user_info_data_id_seq OWNER TO pidc;

--
-- Name: mdl_user_info_data_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_user_info_data_id_seq', 1, false);


--
-- Name: mdl_user_info_field_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_user_info_field_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_user_info_field_id_seq OWNER TO pidc;

--
-- Name: mdl_user_info_field_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_user_info_field_id_seq', 1, false);


--
-- Name: mdl_user_lastaccess_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_user_lastaccess_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_user_lastaccess_id_seq OWNER TO pidc;

--
-- Name: mdl_user_lastaccess_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_user_lastaccess_id_seq', 1, false);


--
-- Name: mdl_user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_user_preferences_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_user_preferences_id_seq OWNER TO pidc;

--
-- Name: mdl_user_preferences_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_user_preferences_id_seq', 1, false);


--
-- Name: mdl_user_private_key_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_user_private_key_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_user_private_key_id_seq OWNER TO pidc;

--
-- Name: mdl_user_private_key_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_user_private_key_id_seq', 1, false);


--
-- Name: mdl_webdav_locks_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_webdav_locks_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_webdav_locks_id_seq OWNER TO pidc;

--
-- Name: mdl_webdav_locks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_webdav_locks_id_seq', 1, false);


--
-- Name: mdl_wiki_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_wiki_entries_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_wiki_entries_id_seq OWNER TO pidc;

--
-- Name: mdl_wiki_entries_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_wiki_entries_id_seq', 1, false);


--
-- Name: mdl_wiki_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_wiki_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_wiki_id_seq OWNER TO pidc;

--
-- Name: mdl_wiki_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_wiki_id_seq', 1, false);


--
-- Name: mdl_wiki_locks_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_wiki_locks_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_wiki_locks_id_seq OWNER TO pidc;

--
-- Name: mdl_wiki_locks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_wiki_locks_id_seq', 1, false);


--
-- Name: mdl_wiki_pages_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_wiki_pages_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_wiki_pages_id_seq OWNER TO pidc;

--
-- Name: mdl_wiki_pages_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_wiki_pages_id_seq', 1, false);


--
-- Name: mdl_workshop_assessments_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_workshop_assessments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_workshop_assessments_id_seq OWNER TO pidc;

--
-- Name: mdl_workshop_assessments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_workshop_assessments_id_seq', 1, false);


--
-- Name: mdl_workshop_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_workshop_comments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_workshop_comments_id_seq OWNER TO pidc;

--
-- Name: mdl_workshop_comments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_workshop_comments_id_seq', 1, false);


--
-- Name: mdl_workshop_elements_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_workshop_elements_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_workshop_elements_id_seq OWNER TO pidc;

--
-- Name: mdl_workshop_elements_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_workshop_elements_id_seq', 1, false);


--
-- Name: mdl_workshop_grades_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_workshop_grades_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_workshop_grades_id_seq OWNER TO pidc;

--
-- Name: mdl_workshop_grades_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_workshop_grades_id_seq', 1, false);


--
-- Name: mdl_workshop_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_workshop_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_workshop_id_seq OWNER TO pidc;

--
-- Name: mdl_workshop_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_workshop_id_seq', 1, false);


--
-- Name: mdl_workshop_rubrics_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_workshop_rubrics_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_workshop_rubrics_id_seq OWNER TO pidc;

--
-- Name: mdl_workshop_rubrics_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_workshop_rubrics_id_seq', 1, false);


--
-- Name: mdl_workshop_stockcomments_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_workshop_stockcomments_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_workshop_stockcomments_id_seq OWNER TO pidc;

--
-- Name: mdl_workshop_stockcomments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_workshop_stockcomments_id_seq', 1, false);


--
-- Name: mdl_workshop_submissions_id_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE mdl_workshop_submissions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.mdl_workshop_submissions_id_seq OWNER TO pidc;

--
-- Name: mdl_workshop_submissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('mdl_workshop_submissions_id_seq', 1, false);


--
-- Name: orders; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE orders (
    id numeric,
    type character varying(50),
    external_id numeric,
    student_id character varying(20)
);


ALTER TABLE public.orders OWNER TO pidc;

--
-- Name: orders_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE orders_seq
    START WITH 2
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.orders_seq OWNER TO pidc;

--
-- Name: orders_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('orders_seq', 2, false);


--
-- Name: people_in_group_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE people_in_group_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.people_in_group_seq OWNER TO pidc;

--
-- Name: people_in_group_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('people_in_group_seq', 1, false);


--
-- Name: people_in_group; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE people_in_group (
    id numeric DEFAULT nextval('people_in_group_seq'::regclass) NOT NULL,
    id_group numeric NOT NULL,
    id_people numeric NOT NULL,
    fio_people character varying(200) NOT NULL,
    profile character varying(50) NOT NULL
);


ALTER TABLE public.people_in_group OWNER TO pidc;

--
-- Name: people_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE people_seq
    START WITH 1706
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.people_seq OWNER TO pidc;

--
-- Name: people_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('people_seq', 1706, false);


--
-- Name: portal_messages; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE portal_messages (
    id numeric,
    title character varying(255),
    content character varying(5000),
    sort_order numeric,
    published_user numeric,
    published_date date,
    start_date date,
    end_date date,
    published_profiles character varying(255),
    school_id numeric
);


ALTER TABLE public.portal_messages OWNER TO pidc;

--
-- Name: portal_messages_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE portal_messages_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.portal_messages_seq OWNER TO pidc;

--
-- Name: portal_messages_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('portal_messages_seq', 1, false);


--
-- Name: profile_settings; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE profile_settings (
    profile_id numeric,
    modname character varying(255),
    viewer character varying(1),
    editor character varying(1)
);


ALTER TABLE public.profile_settings OWNER TO pidc;

--
-- Name: program_uploaded_files; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE program_uploaded_files (
    id numeric,
    tablename character varying(255),
    table_id numeric,
    title character varying(255),
    location character varying(255),
    uploaded_date date,
    filesize character varying(10)
);


ALTER TABLE public.program_uploaded_files OWNER TO pidc;

--
-- Name: program_uploaded_files_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE program_uploaded_files_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.program_uploaded_files_seq OWNER TO pidc;

--
-- Name: program_uploaded_files_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('program_uploaded_files_seq', 1, false);


--
-- Name: resbase; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE resbase (
    id numeric,
    school_id numeric,
    category_id numeric,
    title character varying(255),
    short_name character varying(20),
    type character varying(20),
    comments text,
    seats numeric
);


ALTER TABLE public.resbase OWNER TO pidc;

--
-- Name: resbase_categories; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE resbase_categories (
    id numeric,
    school_id numeric,
    title character varying(100),
    sort_order numeric,
    profiles character varying(255)
);


ALTER TABLE public.resbase_categories OWNER TO pidc;

--
-- Name: resbase_categories_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE resbase_categories_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.resbase_categories_seq OWNER TO pidc;

--
-- Name: resbase_categories_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('resbase_categories_seq', 2, true);


--
-- Name: resbase_events; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE resbase_events (
    id numeric,
    title character varying(100),
    description text,
    school_date date,
    start_time time without time zone,
    end_time time without time zone,
    user_id character varying(15),
    color character varying(7)
);


ALTER TABLE public.resbase_events OWNER TO pidc;

--
-- Name: resbase_events_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE resbase_events_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.resbase_events_seq OWNER TO pidc;

--
-- Name: resbase_events_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('resbase_events_seq', 1, false);


--
-- Name: resbase_in_events; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE resbase_in_events (
    resource_id character varying(25),
    event_id numeric
);


ALTER TABLE public.resbase_in_events OWNER TO pidc;

--
-- Name: resbase_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE resbase_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.resbase_seq OWNER TO pidc;

--
-- Name: resbase_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('resbase_seq', 4, true);


--
-- Name: roundcube_cache_ids; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE roundcube_cache_ids
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.roundcube_cache_ids OWNER TO pidc;

--
-- Name: roundcube_cache_ids; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('roundcube_cache_ids', 1, false);


--
-- Name: roundcube_contact_ids; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE roundcube_contact_ids
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.roundcube_contact_ids OWNER TO pidc;

--
-- Name: roundcube_contact_ids; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('roundcube_contact_ids', 1, false);


--
-- Name: roundcube_identity_ids; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE roundcube_identity_ids
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.roundcube_identity_ids OWNER TO pidc;

--
-- Name: roundcube_identity_ids; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('roundcube_identity_ids', 1, false);


--
-- Name: roundcube_message_ids; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE roundcube_message_ids
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.roundcube_message_ids OWNER TO pidc;

--
-- Name: roundcube_message_ids; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('roundcube_message_ids', 1, false);


--
-- Name: roundcube_user_ids; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE roundcube_user_ids
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.roundcube_user_ids OWNER TO pidc;

--
-- Name: roundcube_user_ids; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('roundcube_user_ids', 1, false);


--
-- Name: rss_conf_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE rss_conf_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.rss_conf_seq OWNER TO pidc;

--
-- Name: rss_conf_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('rss_conf_seq', 1, false);


--
-- Name: rss_conf; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE rss_conf (
    id numeric DEFAULT nextval('rss_conf_seq'::regclass),
    title character varying(150),
    rss_url character varying(500),
    user_id character varying(500),
    used character varying(1)
);


ALTER TABLE public.rss_conf OWNER TO pidc;

--
-- Name: saved_info; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE saved_info (
    id numeric NOT NULL,
    title character varying(100),
    user_id numeric,
    php_self character varying(5000),
    search_php_self character varying(5000),
    search_vars character varying(5000),
    school_id numeric
);


ALTER TABLE public.saved_info OWNER TO pidc;

--
-- Name: saved_info_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE saved_info_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.saved_info_seq OWNER TO pidc;

--
-- Name: saved_info_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('saved_info_seq', 1, false);


--
-- Name: school_calendar_days; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_calendar_days (
    school_year numeric NOT NULL,
    school_id numeric NOT NULL,
    school_date date NOT NULL,
    minutes numeric,
    block character varying(10),
    calendar_id numeric NOT NULL
);


ALTER TABLE public.school_calendar_days OWNER TO pidc;

--
-- Name: school_calendar_events; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_calendar_events (
    id numeric NOT NULL,
    school_year numeric,
    school_id numeric,
    school_date date,
    title character varying(50),
    description text
);


ALTER TABLE public.school_calendar_events OWNER TO pidc;

--
-- Name: school_calendar_events_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE school_calendar_events_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.school_calendar_events_seq OWNER TO pidc;

--
-- Name: school_calendar_events_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('school_calendar_events_seq', 1, false);


--
-- Name: school_calendars; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_calendars (
    school_id numeric,
    title character varying(100),
    school_year numeric,
    calendar_id numeric NOT NULL,
    default_calendar character varying(1),
    rollover_id numeric
);


ALTER TABLE public.school_calendars OWNER TO pidc;

--
-- Name: school_classlevels; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_classlevels (
    id numeric NOT NULL,
    school_id numeric,
    title character varying(50),
    next_classlevel_id numeric,
    sort_order numeric,
    short_name character varying(4)
);


ALTER TABLE public.school_classlevels OWNER TO pidc;

--
-- Name: school_classlevels_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE school_classlevels_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.school_classlevels_seq OWNER TO pidc;

--
-- Name: school_classlevels_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('school_classlevels_seq', 4, true);


--
-- Name: school_field_categories; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_field_categories (
    id numeric NOT NULL,
    title character varying(100),
    allow_teacher_modify character varying(1),
    sort_order numeric,
    columns numeric
);


ALTER TABLE public.school_field_categories OWNER TO pidc;

--
-- Name: school_field_categories_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE school_field_categories_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.school_field_categories_seq OWNER TO pidc;

--
-- Name: school_field_categories_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('school_field_categories_seq', 1, false);


--
-- Name: school_fields; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_fields (
    id numeric NOT NULL,
    type character varying(10),
    search character varying(1),
    select_options character varying(10000),
    category_id numeric,
    system_field character(1),
    default_selection character varying(255),
    log_field1_title character varying(100),
    log_field2_title character varying(100),
    log_field3_title character varying(100),
    log_field4_title character varying(100),
    log_field5_title character varying(100),
    log_field6_title character varying(100),
    log_field7_title character varying(100),
    log_field8_title character varying(100),
    log_field9_title character varying(100),
    required character(1),
    max_length numeric,
    sort_order numeric,
    select_option_codes character varying(10000),
    select_option_default_code character varying(255),
    application character varying(1),
    log_field10_title character varying(100),
    log_field11_title character varying(100),
    title character varying(100),
    field_edits text,
    log_field1 character varying(10),
    log_field2 character varying(10),
    log_field3 character varying(10),
    log_field4 character varying(10),
    log_field5 character varying(10),
    log_field6 character varying(10),
    log_field7 character varying(10),
    log_field8 character varying(10),
    log_field9 character varying(10),
    log_field10 character varying(10),
    log_field11 character varying(10),
    log_field12 character varying(10),
    log_field13 character varying(10),
    log_field14 character varying(10),
    log_field15 character varying(10),
    log_field16 character varying(10),
    log_field17 character varying(10),
    log_field18 character varying(10),
    log_field19 character varying(10),
    log_field20 character varying(10),
    log_field12_title character varying(100),
    log_field13_title character varying(100),
    log_field14_title character varying(100),
    log_field15_title character varying(100),
    log_field16_title character varying(100),
    log_field17_title character varying(100),
    log_field18_title character varying(100),
    log_field19_title character varying(100),
    log_field20_title character varying(100),
    log_field1_sort_order numeric DEFAULT 1,
    log_field2_sort_order numeric DEFAULT 2,
    log_field3_sort_order numeric DEFAULT 3,
    log_field4_sort_order numeric DEFAULT 4,
    log_field5_sort_order numeric DEFAULT 5,
    log_field6_sort_order numeric DEFAULT 6,
    log_field7_sort_order numeric DEFAULT 7,
    log_field8_sort_order numeric DEFAULT 8,
    log_field9_sort_order numeric DEFAULT 9,
    log_field10_sort_order numeric DEFAULT 10,
    log_field11_sort_order numeric DEFAULT 11,
    log_field12_sort_order numeric DEFAULT 12,
    log_field13_sort_order numeric DEFAULT 13,
    log_field14_sort_order numeric DEFAULT 14,
    log_field15_sort_order numeric DEFAULT 15,
    log_field16_sort_order numeric DEFAULT 16,
    log_field17_sort_order numeric DEFAULT 17,
    log_field18_sort_order numeric DEFAULT 18,
    log_field19_sort_order numeric DEFAULT 19,
    log_field20_sort_order numeric DEFAULT 20,
    size numeric
);


ALTER TABLE public.school_fields OWNER TO pidc;

--
-- Name: school_fields_in_cats; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_fields_in_cats (
    field_id integer NOT NULL,
    category_id integer NOT NULL,
    sort_order integer NOT NULL
);


ALTER TABLE public.school_fields_in_cats OWNER TO pidc;

--
-- Name: school_group_titles_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE school_group_titles_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.school_group_titles_seq OWNER TO pidc;

--
-- Name: school_group_titles_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('school_group_titles_seq', 3, true);


--
-- Name: school_group_titles; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_group_titles (
    id numeric DEFAULT nextval('school_group_titles_seq'::regclass) NOT NULL,
    school_id numeric,
    title character varying(100),
    short_name character varying(20),
    sort_order numeric
);


ALTER TABLE public.school_group_titles OWNER TO pidc;

--
-- Name: school_groups_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE school_groups_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.school_groups_seq OWNER TO pidc;

--
-- Name: school_groups_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('school_groups_seq', 3, true);


--
-- Name: school_groups; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_groups (
    id numeric DEFAULT nextval('school_groups_seq'::regclass) NOT NULL,
    school_id numeric,
    title character varying(50),
    short_name character varying(10),
    sort_order numeric,
    next_group_id numeric,
    group_title_id numeric NOT NULL
);


ALTER TABLE public.school_groups OWNER TO pidc;

--
-- Name: school_lf_data; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_lf_data (
    id numeric,
    school_field_id numeric,
    student_id numeric,
    school_id numeric,
    user_id numeric,
    modified_date date,
    log_field1 text,
    log_field2 text,
    log_field3 text,
    log_field4 text,
    log_field5 text,
    log_field6 text,
    log_field7 text,
    log_field8 text,
    log_field9 text,
    log_field10 text,
    log_field11 text,
    log_field12 text,
    log_field13 text,
    log_field14 text,
    log_field15 text,
    log_field16 text,
    log_field17 text,
    log_field18 text,
    log_field19 text,
    log_field20 text
);


ALTER TABLE public.school_lf_data OWNER TO pidc;

--
-- Name: school_lf_data_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE school_lf_data_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.school_lf_data_seq OWNER TO pidc;

--
-- Name: school_lf_data_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('school_lf_data_seq', 1, false);


--
-- Name: school_periods; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_periods (
    school_period_id numeric NOT NULL,
    school_year numeric,
    school_id numeric,
    sort_order numeric,
    title character varying(100),
    short_name character varying(10),
    length numeric,
    rollover_id numeric,
    block character varying(10),
    attendance character varying(1),
    length_sun numeric,
    length_mon numeric,
    length_tue numeric,
    length_wed numeric,
    length_thu numeric,
    length_fri numeric,
    length_sat numeric,
    start_time time without time zone,
    end_time time without time zone,
    start_time_sun time without time zone,
    end_time_sun time without time zone,
    start_time_mon time without time zone,
    end_time_mon time without time zone,
    start_time_tue time without time zone,
    end_time_tue time without time zone,
    start_time_wed time without time zone,
    end_time_wed time without time zone,
    start_time_thu time without time zone,
    end_time_thu time without time zone,
    start_time_fri time without time zone,
    end_time_fri time without time zone,
    start_time_sat time without time zone,
    end_time_sat time without time zone
);


ALTER TABLE public.school_periods OWNER TO pidc;

--
-- Name: school_periods_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE school_periods_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.school_periods_seq OWNER TO pidc;

--
-- Name: school_periods_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('school_periods_seq', 4, true);


--
-- Name: school_quarters; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_quarters (
    school_term_id numeric NOT NULL,
    school_year numeric,
    school_id numeric,
    semester_id numeric,
    title character varying(50),
    short_name character varying(10),
    sort_order numeric,
    start_date date,
    end_date date,
    post_start_date date,
    post_end_date date,
    rollover_id numeric,
    registration_start_date date,
    registration_end_date date,
    year_fraction numeric
);


ALTER TABLE public.school_quarters OWNER TO pidc;

--
-- Name: school_semesters; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_semesters (
    school_term_id numeric NOT NULL,
    school_year numeric,
    school_id numeric,
    title character varying(50),
    short_name character varying(10),
    sort_order numeric,
    start_date date,
    end_date date,
    post_start_date date,
    post_end_date date,
    rollover_id numeric,
    registration_start_date date,
    registration_end_date date,
    year_fraction numeric,
    year_id numeric
);


ALTER TABLE public.school_semesters OWNER TO pidc;

--
-- Name: school_term_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE school_term_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.school_term_seq OWNER TO pidc;

--
-- Name: school_term_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('school_term_seq', 31, true);


--
-- Name: school_weeks; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_weeks (
    school_term_id numeric NOT NULL,
    school_year numeric,
    school_id numeric,
    quarter_id numeric,
    title character varying(50),
    short_name character varying(10),
    sort_order numeric,
    start_date date,
    end_date date,
    post_start_date date,
    post_end_date date,
    rollover_id numeric,
    year_fraction numeric
);


ALTER TABLE public.school_weeks OWNER TO pidc;

--
-- Name: school_years; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE school_years (
    school_term_id numeric NOT NULL,
    school_year numeric,
    school_id numeric,
    title character varying(50),
    short_name character varying(10),
    sort_order numeric,
    start_date date,
    end_date date,
    post_start_date date,
    post_end_date date,
    registration_start_date date,
    registration_end_date date,
    year_fraction numeric,
    rollover_id numeric
);


ALTER TABLE public.school_years OWNER TO pidc;

--
-- Name: schools; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE schools (
    school_year numeric,
    id numeric NOT NULL,
    title character varying(100),
    address character varying(100),
    city character varying(100),
    state character varying(2),
    zipcode character varying(10),
    area_code numeric,
    phone numeric,
    principal character varying(100),
    latitude numeric,
    longitude numeric,
    state_school_id numeric,
    cfield_1 numeric,
    cfield_2 numeric,
    cfield_3 numeric,
    cfield_60319 character varying(255),
    cfield_60320 character varying(255),
    cfield_60322 character varying(10),
    cfield_60323 character varying(20),
    cfield_60324 character varying(100),
    cfield_60325 character varying(1000),
    cfield_54 character varying(255),
    cfield_4 character varying(255),
    cfield_6 character varying(255),
    cfield_8 character varying(255),
    cfield_9 character varying(255),
    cfield_10 character varying(255)
);


ALTER TABLE public.schools OWNER TO pidc;

--
-- Name: schools_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE schools_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.schools_seq OWNER TO pidc;

--
-- Name: schools_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('schools_seq', 1, true);


--
-- Name: sms_profiles_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE sms_profiles_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.sms_profiles_seq OWNER TO pidc;

--
-- Name: sms_profiles_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('sms_profiles_seq', 1, false);


--
-- Name: sms_profiles; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE sms_profiles (
    id numeric DEFAULT nextval('sms_profiles_seq'::regclass) NOT NULL,
    title character varying(50) NOT NULL,
    login character varying(50) NOT NULL,
    pass character varying(50) NOT NULL
);


ALTER TABLE public.sms_profiles OWNER TO pidc;

--
-- Name: statistics_of_visitings_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE statistics_of_visitings_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.statistics_of_visitings_seq OWNER TO pidc;

--
-- Name: statistics_of_visitings_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('statistics_of_visitings_seq', 65, true);


--
-- Name: statistics_of_visitings; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE statistics_of_visitings (
    id numeric DEFAULT nextval('statistics_of_visitings_seq'::regclass) NOT NULL,
    user_id numeric NOT NULL,
    profile character varying(50) NOT NULL,
    module character varying(50) NOT NULL,
    servicemod character varying(200) NOT NULL,
    s_count numeric NOT NULL
);


ALTER TABLE public.statistics_of_visitings OWNER TO pidc;

--
-- Name: std_counter_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE std_counter_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.std_counter_seq OWNER TO pidc;

--
-- Name: std_counter_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('std_counter_seq', 1, false);


--
-- Name: std_counter; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE std_counter (
    id numeric DEFAULT nextval('std_counter_seq'::regclass) NOT NULL,
    school_id numeric,
    school_year numeric,
    doc_id numeric NOT NULL,
    advanced character varying(1),
    counter_id numeric,
    value numeric
);


ALTER TABLE public.std_counter OWNER TO pidc;

--
-- Name: student_activities_history; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_activities_history (
    school_year numeric,
    student_id numeric,
    activity_id numeric
);


ALTER TABLE public.student_activities_history OWNER TO pidc;

--
-- Name: student_attendance_days; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_attendance_days (
    student_id numeric NOT NULL,
    school_date date NOT NULL,
    minutes_present numeric,
    state_value numeric,
    school_year numeric,
    school_term_id numeric,
    comment character varying(255),
    daily_code character varying(10),
    last_updated_date date,
    last_updated_user numeric
);


ALTER TABLE public.student_attendance_days OWNER TO pidc;

--
-- Name: student_attendance_periods; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_attendance_periods (
    student_id numeric NOT NULL,
    school_date date NOT NULL,
    school_period_id numeric NOT NULL,
    attendance_code numeric,
    attendance_teacher_code numeric,
    attendance_reason character varying(100),
    admin character varying(1),
    course_section_id numeric,
    school_term_id numeric,
    last_updated_date date,
    last_updated_user numeric
);


ALTER TABLE public.student_attendance_periods OWNER TO pidc;

--
-- Name: student_discipline_incidents; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_discipline_incidents (
    school_year numeric,
    id numeric NOT NULL,
    title character varying(100),
    cfield_214 character varying(255),
    cfield_215 date,
    cfield_216 character varying(255),
    cfield_217 character varying(255),
    cfield_218 date,
    cfield_219 character varying(255),
    cfield_220 character varying(5000),
    cfield_221 character varying(5000)
);


ALTER TABLE public.student_discipline_incidents OWNER TO pidc;

--
-- Name: student_discipline_incidents_asg_reports; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_discipline_incidents_asg_reports (
    incident_id numeric,
    referral_id numeric
);


ALTER TABLE public.student_discipline_incidents_asg_reports OWNER TO pidc;

--
-- Name: student_discipline_incidents_fields_in_cats; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_discipline_incidents_fields_in_cats (
    field_id integer NOT NULL,
    category_id integer NOT NULL,
    sort_order integer NOT NULL
);


ALTER TABLE public.student_discipline_incidents_fields_in_cats OWNER TO pidc;

--
-- Name: student_discipline_incidents_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_discipline_incidents_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_discipline_incidents_seq OWNER TO pidc;

--
-- Name: student_discipline_incidents_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_discipline_incidents_seq', 1, false);


--
-- Name: student_discipline_reports; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_discipline_reports (
    id numeric NOT NULL,
    school_year numeric NOT NULL,
    student_id numeric NOT NULL,
    school_id numeric NOT NULL,
    user_id numeric,
    entry_date date,
    referral_date date,
    category_1 character varying(1000),
    category_2 character varying(1000),
    category_3 character varying(1),
    category_4 character varying(1000),
    category_6 character varying(5000)
);


ALTER TABLE public.student_discipline_reports OWNER TO pidc;

--
-- Name: student_discipline_reports_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_discipline_reports_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_discipline_reports_seq OWNER TO pidc;

--
-- Name: student_discipline_reports_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_discipline_reports_seq', 1, false);


--
-- Name: student_emails; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_emails (
    id numeric NOT NULL,
    title character varying(255),
    default_template_id numeric,
    body text,
    school_id numeric,
    profile character varying(25),
    user_id numeric
);


ALTER TABLE public.student_emails OWNER TO pidc;

--
-- Name: student_emails_order; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_emails_order (
    letter_id integer NOT NULL,
    sid integer NOT NULL,
    stype integer NOT NULL,
    template_id integer NOT NULL,
    dt_added date,
    user_added integer,
    dt_printed date,
    user_printed integer
);


ALTER TABLE public.student_emails_order OWNER TO pidc;

--
-- Name: student_emails_order_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_emails_order_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_emails_order_seq OWNER TO pidc;

--
-- Name: student_emails_order_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_emails_order_seq', 1, false);


--
-- Name: student_emails_processing; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_emails_processing (
    trigger_id numeric NOT NULL,
    trigger_event smallint NOT NULL,
    trigger_action smallint NOT NULL,
    template_id numeric NOT NULL
);


ALTER TABLE public.student_emails_processing OWNER TO pidc;

--
-- Name: student_emails_processing_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_emails_processing_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_emails_processing_seq OWNER TO pidc;

--
-- Name: student_emails_processing_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_emails_processing_seq', 1, false);


--
-- Name: student_emails_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_emails_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_emails_seq OWNER TO pidc;

--
-- Name: student_emails_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_emails_seq', 1, false);


--
-- Name: student_field_categories; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_field_categories (
    id numeric NOT NULL,
    title character varying(100),
    allow_teacher_modify character varying(1),
    sort_order numeric,
    columns numeric,
    allow_student_modify character varying(1),
    alternative_name character varying(255),
    used_applicants character varying(1)
);


ALTER TABLE public.student_field_categories OWNER TO pidc;

--
-- Name: student_field_categories_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_field_categories_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_field_categories_seq OWNER TO pidc;

--
-- Name: student_field_categories_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_field_categories_seq', 3, true);


--
-- Name: student_fields; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_fields (
    id numeric NOT NULL,
    type character varying(10),
    search character varying(1),
    select_options character varying(10000),
    category_id numeric,
    system_field bpchar,
    default_selection character varying(255),
    log_field1_title character varying(100),
    log_field2_title character varying(100),
    log_field3_title character varying(100),
    log_field4_title character varying(100),
    log_field5_title character varying(100),
    log_field6_title character varying(100),
    log_field7_title character varying(100),
    log_field8_title character varying(100),
    log_field9_title character varying(100),
    required bpchar,
    max_length numeric,
    sort_order numeric,
    select_option_codes character varying(10000),
    select_option_default_code character varying(255),
    application character varying(1),
    log_field10_title character varying(100),
    log_field11_title character varying(100),
    title character varying(100),
    field_edits text,
    log_field1 character varying(10),
    log_field2 character varying(10),
    log_field3 character varying(10),
    log_field4 character varying(10),
    log_field5 character varying(10),
    log_field6 character varying(10),
    log_field7 character varying(10),
    log_field8 character varying(10),
    log_field9 character varying(10),
    log_field10 character varying(10),
    log_field11 character varying(10),
    log_field12 character varying(10),
    log_field13 character varying(10),
    log_field14 character varying(10),
    log_field15 character varying(10),
    log_field16 character varying(10),
    log_field17 character varying(10),
    log_field18 character varying(10),
    log_field19 character varying(10),
    log_field20 character varying(10),
    log_field12_title character varying(100),
    log_field13_title character varying(100),
    log_field14_title character varying(100),
    log_field15_title character varying(100),
    log_field16_title character varying(100),
    log_field17_title character varying(100),
    log_field18_title character varying(100),
    log_field19_title character varying(100),
    log_field20_title character varying(100),
    log_field1_sort_order numeric DEFAULT 1,
    log_field2_sort_order numeric DEFAULT 2,
    log_field3_sort_order numeric DEFAULT 3,
    log_field4_sort_order numeric DEFAULT 4,
    log_field5_sort_order numeric DEFAULT 5,
    log_field6_sort_order numeric DEFAULT 6,
    log_field7_sort_order numeric DEFAULT 7,
    log_field8_sort_order numeric DEFAULT 8,
    log_field9_sort_order numeric DEFAULT 9,
    log_field10_sort_order numeric DEFAULT 10,
    log_field11_sort_order numeric DEFAULT 11,
    log_field12_sort_order numeric DEFAULT 12,
    log_field13_sort_order numeric DEFAULT 13,
    log_field14_sort_order numeric DEFAULT 14,
    log_field15_sort_order numeric DEFAULT 15,
    log_field16_sort_order numeric DEFAULT 16,
    log_field17_sort_order numeric DEFAULT 17,
    log_field18_sort_order numeric DEFAULT 18,
    log_field19_sort_order numeric DEFAULT 19,
    log_field20_sort_order numeric DEFAULT 20,
    max_record numeric,
    use_applicants character varying(1),
    use_students character varying(1),
    use_source character varying(1),
    for_applicants character varying(1),
    values_field character varying(30),
    codes_field character varying(30),
    source_table character varying(30),
    size numeric,
    log_field1_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field2_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field3_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field4_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field5_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field6_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field7_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field8_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field9_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field10_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field11_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field12_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field13_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field14_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field15_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field16_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field17_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field18_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field19_count_total character varying(1) DEFAULT 'N'::character varying,
    log_field20_count_total character varying(1) DEFAULT 'N'::character varying
);


ALTER TABLE public.student_fields OWNER TO pidc;

--
-- Name: student_fields_in_cats; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_fields_in_cats (
    field_id integer NOT NULL,
    category_id integer NOT NULL,
    sort_order integer NOT NULL
);


ALTER TABLE public.student_fields_in_cats OWNER TO pidc;

--
-- Name: student_fields_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_fields_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_fields_seq OWNER TO pidc;

--
-- Name: student_fields_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_fields_seq', 10, true);


--
-- Name: student_gpa_progress; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_gpa_progress (
    student_id numeric,
    school_term_id numeric,
    gpa_points numeric,
    gpa_points_weighted numeric,
    divisor numeric
);


ALTER TABLE public.student_gpa_progress OWNER TO pidc;

--
-- Name: student_gpa_totals; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_gpa_totals (
    student_id numeric,
    school_term_id numeric,
    mp character varying(4),
    gpa numeric,
    weighted_gpa numeric,
    class_rank numeric,
    cumulative_gpa numeric,
    cumulative_weighted_gpa numeric,
    grade_total numeric,
    cumulative_credits numeric,
    classlevel_id numeric,
    percent_average numeric,
    credits_attempted numeric,
    credits_earned numeric,
    classgroup_rank numeric
);


ALTER TABLE public.student_gpa_totals OWNER TO pidc;

--
-- Name: student_grades_card; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_grades_card (
    school_year numeric NOT NULL,
    school_id numeric,
    student_id numeric NOT NULL,
    course_section_id numeric,
    grades_card_id numeric,
    grade_card_comment_id numeric,
    comment character varying(255),
    school_term_id character varying(10) NOT NULL,
    id numeric NOT NULL,
    course_title character varying(100),
    teacher character varying(100),
    gradelevel_title character varying(100),
    grad_subject_id numeric,
    location_title character varying(100),
    percent_grade numeric,
    credits numeric,
    modified_date date,
    modified_user_id numeric,
    gpa_points numeric,
    grade_title character varying(10),
    weighted_gpa_points numeric,
    course_num character varying(30),
    affects_gpa character varying(1),
    carries_credits character varying(1),
    grade_type_id numeric,
    course_id numeric,
    course_credit_title character varying(10),
    last_updated_date date,
    last_updated_user numeric,
    conduct character varying(5),
    cfield_1 character varying(255),
    cfield_2 character varying(255),
    cfield_3 character varying(255),
    cfield_4 character varying(255)
);


ALTER TABLE public.student_grades_card OWNER TO pidc;

--
-- Name: student_grades_card_evaluations; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_grades_card_evaluations (
    id numeric NOT NULL,
    school_year numeric NOT NULL,
    school_id numeric,
    student_id numeric NOT NULL,
    course_section_id numeric NOT NULL,
    school_term_id numeric NOT NULL,
    benchmark_id numeric NOT NULL,
    title character varying(10),
    grades_card_id numeric,
    grade_title character varying(10),
    comment character varying(255),
    longer_course_comments text
);


ALTER TABLE public.student_grades_card_evaluations OWNER TO pidc;

--
-- Name: student_grades_card_evaluations_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_grades_card_evaluations_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_grades_card_evaluations_seq OWNER TO pidc;

--
-- Name: student_grades_card_evaluations_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_grades_card_evaluations_seq', 1, false);


--
-- Name: student_grades_card_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_grades_card_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_grades_card_seq OWNER TO pidc;

--
-- Name: student_grades_card_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_grades_card_seq', 11, true);


--
-- Name: student_in_delivery_group; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_in_delivery_group (
    delivery_group_id numeric,
    student_id numeric
);


ALTER TABLE public.student_in_delivery_group OWNER TO pidc;

--
-- Name: student_lf_data; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_lf_data (
    id numeric,
    student_field_id numeric,
    student_id numeric,
    school_id numeric,
    user_id numeric,
    modified_date date,
    log_field1 text,
    log_field2 text,
    log_field3 text,
    log_field4 text,
    log_field5 text,
    log_field6 text,
    log_field7 text,
    log_field8 text,
    log_field9 text,
    log_field10 text,
    log_field11 text,
    log_field12 text,
    log_field13 text,
    log_field14 text,
    log_field15 text,
    log_field16 text,
    log_field17 text,
    log_field18 text,
    log_field19 text,
    log_field20 text
);


ALTER TABLE public.student_lf_data OWNER TO pidc;

--
-- Name: student_lf_data_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_lf_data_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_lf_data_seq OWNER TO pidc;

--
-- Name: student_lf_data_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_lf_data_seq', 1, false);


--
-- Name: student_markbook_grades; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_markbook_grades (
    student_id numeric NOT NULL,
    school_period_id numeric,
    course_section_id numeric NOT NULL,
    assignment_id numeric NOT NULL,
    points numeric,
    comment character varying(100),
    highlight character varying(1)
);


ALTER TABLE public.student_markbook_grades OWNER TO pidc;

--
-- Name: student_medical; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_medical (
    id numeric NOT NULL,
    student_id numeric,
    type character varying(25),
    medical_date date,
    comments character varying(100)
);


ALTER TABLE public.student_medical OWNER TO pidc;

--
-- Name: student_medical_alerts; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_medical_alerts (
    id numeric NOT NULL,
    student_id numeric,
    title character varying(100)
);


ALTER TABLE public.student_medical_alerts OWNER TO pidc;

--
-- Name: student_medical_alerts_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_medical_alerts_seq
    START WITH 5
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_medical_alerts_seq OWNER TO pidc;

--
-- Name: student_medical_alerts_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_medical_alerts_seq', 5, false);


--
-- Name: student_medical_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_medical_seq
    START WITH 5
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_medical_seq OWNER TO pidc;

--
-- Name: student_medical_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_medical_seq', 5, false);


--
-- Name: student_medical_visits; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_medical_visits (
    id numeric NOT NULL,
    student_id numeric,
    school_date date,
    time_in character varying(20),
    time_out character varying(20),
    reason character varying(100),
    result character varying(100),
    comments character varying(255)
);


ALTER TABLE public.student_medical_visits OWNER TO pidc;

--
-- Name: student_medical_visits_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_medical_visits_seq
    START WITH 5
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_medical_visits_seq OWNER TO pidc;

--
-- Name: student_medical_visits_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_medical_visits_seq', 5, false);


--
-- Name: student_registration; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_registration (
    id numeric NOT NULL,
    school_year numeric,
    school_id numeric,
    student_id numeric,
    classlevel_id numeric,
    start_date date,
    end_date date,
    enrollment_code numeric,
    drop_code numeric,
    next_school numeric,
    calendar_id numeric,
    include_in_class_rank character varying(1),
    distance_from_school numeric,
    cfield_1 character varying(50),
    cfield_2 character varying(50),
    cfield_3 character varying(50),
    cfield_4 character varying(50),
    cfield_5 character varying(50),
    cfield_6 character varying(50),
    cfield_7 character varying(50),
    cfield_8 character varying(50),
    cfield_9 character varying(50),
    cfield_10 character varying(50),
    cfield_11 character varying(50),
    cfield_12 character varying(50),
    group_id numeric,
    include_in_group_rank character varying(1),
    cfield_15 character varying(255)
);


ALTER TABLE public.student_registration OWNER TO pidc;

--
-- Name: student_registration_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_registration_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_registration_seq OWNER TO pidc;

--
-- Name: student_registration_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_registration_seq', 37, true);


--
-- Name: student_registration_settings; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_registration_settings (
    id numeric NOT NULL,
    school_year numeric,
    title character varying(100),
    short_name character varying(10),
    type character varying(4)
);


ALTER TABLE public.student_registration_settings OWNER TO pidc;

--
-- Name: student_registration_settings_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_registration_settings_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_registration_settings_seq OWNER TO pidc;

--
-- Name: student_registration_settings_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_registration_settings_seq', 2, true);


--
-- Name: student_relations; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_relations (
    person_id numeric NOT NULL,
    last_name character varying(25) NOT NULL,
    first_name character varying(25) NOT NULL,
    middle_name character varying(25),
    title character varying(5),
    email character varying(255),
    notificate character varying(1) DEFAULT 'N'::character varying
);


ALTER TABLE public.student_relations OWNER TO pidc;

--
-- Name: student_relations_in_contacts; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_relations_in_contacts (
    id numeric NOT NULL,
    person_id numeric,
    title character varying(100),
    value character varying(100)
);


ALTER TABLE public.student_relations_in_contacts OWNER TO pidc;

--
-- Name: student_relations_in_contacts_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_relations_in_contacts_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_relations_in_contacts_seq OWNER TO pidc;

--
-- Name: student_relations_in_contacts_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_relations_in_contacts_seq', 1, false);


--
-- Name: student_relations_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_relations_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_relations_seq OWNER TO pidc;

--
-- Name: student_relations_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_relations_seq', 3, true);


--
-- Name: student_schedule; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_schedule (
    school_year numeric NOT NULL,
    school_id numeric,
    student_id numeric NOT NULL,
    start_date date NOT NULL,
    end_date date,
    modified_date date,
    modified_by character varying(255),
    course_id numeric NOT NULL,
    course_credit_title character varying(10) NOT NULL,
    course_section_id numeric NOT NULL,
    mp character varying(3),
    school_term_id numeric,
    scheduler_lock character varying(1),
    id numeric,
    cfield_1 character varying(255),
    cfield_2 character varying(255),
    cfield_3 character varying(255),
    cfield_4 character varying(255),
    cfield_5 character varying(255),
    cfield_6 character varying(255),
    cfield_7 character varying(255),
    cfield_8 character varying(255),
    cfield_9 character varying(255),
    cfield_10 character varying(255),
    cfield_11 character varying(255),
    cfield_12 character varying(255),
    cfield_13 character varying(255),
    cfield_14 character varying(255),
    cfield_15 character varying(255),
    cfield_16 character varying(255),
    cfield_17 character varying(255),
    cfield_18 character varying(255),
    cfield_19 character varying(255),
    cfield_20 character varying(255),
    cfield_21 character varying(255),
    days character varying(255),
    checkbox_setting_1 character varying(1),
    checkbox_setting_2 character varying(1),
    checkbox_setting_3 character varying(1),
    cfield_22 character varying(255),
    cfield_23 character varying(255),
    cfield_24 character varying(255),
    cfield_25 character varying(255)
);


ALTER TABLE public.student_schedule OWNER TO pidc;

--
-- Name: student_schedule_requests; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_schedule_requests (
    school_year numeric,
    school_id numeric,
    request_id numeric NOT NULL,
    student_id numeric,
    subject_id numeric,
    course_id numeric,
    course_credit_title character varying(10),
    school_term_id numeric,
    priority numeric,
    with_teacher_id numeric,
    not_teacher_id numeric,
    with_school_period_id numeric,
    not_school_period_id numeric
);


ALTER TABLE public.student_schedule_requests OWNER TO pidc;

--
-- Name: student_schedule_requests_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_schedule_requests_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_schedule_requests_seq OWNER TO pidc;

--
-- Name: student_schedule_requests_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_schedule_requests_seq', 1, false);


--
-- Name: student_schedule_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE student_schedule_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.student_schedule_seq OWNER TO pidc;

--
-- Name: student_schedule_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('student_schedule_seq', 14, true);


--
-- Name: student_suitability_grades; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_suitability_grades (
    student_id numeric,
    school_year numeric,
    school_date date,
    school_period_id numeric,
    student_suitability_grades_code character varying(20),
    course_section_id numeric
);


ALTER TABLE public.student_suitability_grades OWNER TO pidc;

--
-- Name: student_term_comments; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE student_term_comments (
    student_id numeric NOT NULL,
    school_year numeric NOT NULL,
    school_term_id numeric NOT NULL,
    comment text,
    editor_user_ids character varying(255)
);


ALTER TABLE public.student_term_comments OWNER TO pidc;

--
-- Name: students; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE students (
    student_id numeric NOT NULL,
    last_name character varying(50) NOT NULL,
    first_name character varying(50) NOT NULL,
    middle_name character varying(50),
    name_suffix character varying(30),
    username character varying(100),
    password character varying(100),
    cfield_50000 character varying(255),
    cfield_50001 character varying(255),
    cfield_50003 character varying(255),
    cfield_50004 date,
    cfield_50005 character varying(255),
    cfield_50006 character varying(255),
    cfield_50007 character varying(255),
    cfield_50008 character varying(255),
    cfield_50009 character varying(2052),
    cfield_50010 bpchar,
    last_login timestamp without time zone,
    failed_login numeric,
    profile_id numeric,
    last_note_seen numeric,
    cfield_50012 character varying(255),
    cfield_50013 character varying(255),
    force_password_change character varying(1) DEFAULT 'N'::character varying,
    last_updated_date date,
    last_updated_user numeric,
    cfield_196 character varying(255),
    cfield_197 character varying(255),
    cfield_198 character varying(255),
    cfield_199 character varying(1),
    cfield_200 character varying(255),
    cfield_201 character varying(255),
    cfield_202 character varying(255),
    cfield_203 character varying(255),
    cfield_204 character varying(255),
    cfield_205 character varying(255),
    cfield_206 character varying(255),
    cfield_207 character varying(255),
    cfield_208 character varying(255),
    cfield_209 character varying(255),
    cfield_211 character varying(255),
    cfield_212 character varying(255),
    cfield_50002 character varying(40),
    cfield_50016 character varying(255),
    profile character varying(10),
    cfield_2 character varying(255),
    cfield_3 character varying(255),
    cfield_4 character varying(255),
    cfield_5 character varying(255),
    cfield_6 character varying(1000),
    cfield_7 date,
    cfield_8 character varying(255),
    cfield_9 character varying(255),
    cfield_10 character varying(255)
);


ALTER TABLE public.students OWNER TO pidc;

--
-- Name: students_auditlog; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE students_auditlog (
    data_element character varying(50) NOT NULL,
    student_id numeric,
    user_id numeric,
    change_date timestamp without time zone,
    change_description text,
    flags character varying(1)
);


ALTER TABLE public.students_auditlog OWNER TO pidc;

--
-- Name: students_in_address; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE students_in_address (
    id numeric NOT NULL,
    student_id numeric NOT NULL,
    address_id numeric NOT NULL,
    mailing character varying(1),
    residence character varying(1),
    bus_pickup character varying(1),
    bus_dropoff character varying(1)
);


ALTER TABLE public.students_in_address OWNER TO pidc;

--
-- Name: students_in_address_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE students_in_address_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.students_in_address_seq OWNER TO pidc;

--
-- Name: students_in_address_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('students_in_address_seq', 33, true);


--
-- Name: students_in_sr; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE students_in_sr (
    id numeric NOT NULL,
    student_id numeric NOT NULL,
    person_id numeric NOT NULL,
    address_id numeric,
    custody character varying(1),
    emergency character varying(1),
    student_relation character varying(100)
);


ALTER TABLE public.students_in_sr OWNER TO pidc;

--
-- Name: students_in_sr_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE students_in_sr_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.students_in_sr_seq OWNER TO pidc;

--
-- Name: students_in_sr_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('students_in_sr_seq', 1, false);


--
-- Name: students_in_users; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE students_in_users (
    student_id numeric NOT NULL,
    user_id numeric NOT NULL
);


ALTER TABLE public.students_in_users OWNER TO pidc;

--
-- Name: students_scores_rating; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE students_scores_rating (
    id numeric NOT NULL,
    student_id numeric NOT NULL,
    low_score numeric,
    high_score numeric,
    course_rank numeric,
    school_term_id character varying NOT NULL,
    course_id numeric NOT NULL
);


ALTER TABLE public.students_scores_rating OWNER TO pidc;

--
-- Name: students_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE students_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.students_seq OWNER TO pidc;

--
-- Name: students_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('students_seq', 1, false);


--
-- Name: suitability_teachers_filled; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE suitability_teachers_filled (
    user_id numeric NOT NULL,
    school_date date NOT NULL,
    school_period_id numeric NOT NULL
);


ALTER TABLE public.suitability_teachers_filled OWNER TO pidc;

--
-- Name: system_config; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE system_config (
    school_year numeric,
    school_id numeric,
    program character varying(255),
    title character varying(100),
    value character varying(100)
);


ALTER TABLE public.system_config OWNER TO pidc;

--
-- Name: system_user_settings; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE system_user_settings (
    username character varying(100),
    program character varying(255),
    title character varying(100),
    value text,
    school_id numeric,
    school_year numeric(4,0)
);


ALTER TABLE public.system_user_settings OWNER TO pidc;

--
-- Name: type_of_study_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE type_of_study_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.type_of_study_seq OWNER TO pidc;

--
-- Name: type_of_study_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('type_of_study_seq', 1, false);


--
-- Name: type_of_study; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE type_of_study (
    id numeric DEFAULT nextval('type_of_study_seq'::regclass)
);


ALTER TABLE public.type_of_study OWNER TO pidc;

--
-- Name: user_field_categories; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE user_field_categories (
    id numeric NOT NULL,
    title character varying(100),
    sort_order numeric,
    admin character varying(1),
    teacher character varying(1),
    parent character varying(1),
    columns numeric,
    allow_teacher_modify character varying(1)
);


ALTER TABLE public.user_field_categories OWNER TO pidc;

--
-- Name: user_field_categories_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE user_field_categories_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.user_field_categories_seq OWNER TO pidc;

--
-- Name: user_field_categories_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('user_field_categories_seq', 1, false);


--
-- Name: user_fields; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE user_fields (
    id numeric NOT NULL,
    type character varying(10),
    search character varying(1),
    select_options character varying(10000),
    category_id numeric,
    system_field bpchar,
    default_selection character varying(255),
    log_field1_title character varying(100),
    log_field2_title character varying(100),
    log_field3_title character varying(100),
    log_field4_title character varying(100),
    log_field5_title character varying(100),
    log_field6_title character varying(100),
    log_field7_title character varying(100),
    log_field8_title character varying(100),
    log_field9_title character varying(100),
    sort_order numeric,
    required bpchar,
    max_length numeric,
    select_option_codes character varying(10000),
    select_option_default_code character varying(255),
    title character varying(100),
    application character varying(1),
    log_field10_title character varying(100),
    log_field11_title character varying(100),
    field_edits text,
    log_field1 character varying(10),
    log_field2 character varying(10),
    log_field3 character varying(10),
    log_field4 character varying(10),
    log_field5 character varying(10),
    log_field6 character varying(10),
    log_field7 character varying(10),
    log_field8 character varying(10),
    log_field9 character varying(10),
    log_field10 character varying(10),
    log_field11 character varying(10),
    log_field12 character varying(10),
    log_field13 character varying(10),
    log_field14 character varying(10),
    log_field15 character varying(10),
    log_field16 character varying(10),
    log_field17 character varying(10),
    log_field18 character varying(10),
    log_field19 character varying(10),
    log_field20 character varying(10),
    log_field12_title character varying(100),
    log_field13_title character varying(100),
    log_field14_title character varying(100),
    log_field15_title character varying(100),
    log_field16_title character varying(100),
    log_field17_title character varying(100),
    log_field18_title character varying(100),
    log_field19_title character varying(100),
    log_field20_title character varying(100),
    log_field1_sort_order numeric DEFAULT 1,
    log_field2_sort_order numeric DEFAULT 2,
    log_field3_sort_order numeric DEFAULT 3,
    log_field4_sort_order numeric DEFAULT 4,
    log_field5_sort_order numeric DEFAULT 5,
    log_field6_sort_order numeric DEFAULT 6,
    log_field7_sort_order numeric DEFAULT 7,
    log_field8_sort_order numeric DEFAULT 8,
    log_field9_sort_order numeric DEFAULT 9,
    log_field10_sort_order numeric DEFAULT 10,
    log_field11_sort_order numeric DEFAULT 11,
    log_field12_sort_order numeric DEFAULT 12,
    log_field13_sort_order numeric DEFAULT 13,
    log_field14_sort_order numeric DEFAULT 14,
    log_field15_sort_order numeric DEFAULT 15,
    log_field16_sort_order numeric DEFAULT 16,
    log_field17_sort_order numeric DEFAULT 17,
    log_field18_sort_order numeric DEFAULT 18,
    log_field19_sort_order numeric DEFAULT 19,
    log_field20_sort_order numeric DEFAULT 20,
    use_source character varying(1),
    values_field character varying(30),
    codes_field character varying(30),
    source_table character varying(30),
    size numeric
);


ALTER TABLE public.user_fields OWNER TO pidc;

--
-- Name: user_fields_in_cats; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE user_fields_in_cats (
    field_id integer NOT NULL,
    category_id integer NOT NULL,
    sort_order integer NOT NULL
);


ALTER TABLE public.user_fields_in_cats OWNER TO pidc;

--
-- Name: user_fields_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE user_fields_seq
    START WITH 6
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.user_fields_seq OWNER TO pidc;

--
-- Name: user_fields_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('user_fields_seq', 6, false);


--
-- Name: user_in_delivery_group; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE user_in_delivery_group (
    delivery_group_id numeric,
    user_id numeric
);


ALTER TABLE public.user_in_delivery_group OWNER TO pidc;

--
-- Name: user_in_messages_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE user_in_messages_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.user_in_messages_seq OWNER TO pidc;

--
-- Name: user_in_messages_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('user_in_messages_seq', 1, false);


--
-- Name: user_in_messages; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE user_in_messages (
    id numeric DEFAULT nextval('user_in_messages_seq'::regclass) NOT NULL,
    message_id numeric NOT NULL,
    incoming character varying(1) DEFAULT 'N'::character varying,
    outcoming character varying(1) DEFAULT 'N'::character varying,
    from_user numeric NOT NULL,
    to_user numeric NOT NULL
);


ALTER TABLE public.user_in_messages OWNER TO pidc;

--
-- Name: user_lf_data; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE user_lf_data (
    id numeric,
    user_field_id numeric,
    user_id numeric,
    school_id numeric,
    modified_date date,
    log_field1 text,
    log_field2 text,
    log_field3 text,
    log_field4 text,
    log_field5 text,
    log_field6 text,
    log_field7 text,
    log_field8 text,
    log_field9 text,
    log_field10 text,
    log_field11 text,
    log_field12 text,
    log_field13 text,
    log_field14 text,
    log_field15 text,
    log_field16 text,
    log_field17 text,
    log_field18 text,
    log_field19 text,
    log_field20 text,
    log_date date,
    log_select character varying(255),
    log_select2 character varying(255),
    log_text1 character varying(255)
);


ALTER TABLE public.user_lf_data OWNER TO pidc;

--
-- Name: user_lf_data_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE user_lf_data_seq
    START WITH 5
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.user_lf_data_seq OWNER TO pidc;

--
-- Name: user_lf_data_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('user_lf_data_seq', 5, false);


--
-- Name: user_messages_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE user_messages_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.user_messages_seq OWNER TO pidc;

--
-- Name: user_messages_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('user_messages_seq', 1, false);


--
-- Name: user_messages; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE user_messages (
    id numeric DEFAULT nextval('user_messages_seq'::regclass) NOT NULL,
    title text,
    content text,
    send_date timestamp without time zone,
    new_message character varying(1) DEFAULT 'Y'::character varying
);


ALTER TABLE public.user_messages OWNER TO pidc;

--
-- Name: user_profiles; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE user_profiles (
    id numeric NOT NULL,
    profile character varying(30),
    title character varying(100),
    type character varying(25)
);


ALTER TABLE public.user_profiles OWNER TO pidc;

--
-- Name: user_profiles_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE user_profiles_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.user_profiles_seq OWNER TO pidc;

--
-- Name: user_profiles_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('user_profiles_seq', 2, true);


--
-- Name: user_settings; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE user_settings (
    username character varying(100),
    modname character varying(255),
    viewer character varying(1),
    editor character varying(1)
);


ALTER TABLE public.user_settings OWNER TO pidc;

--
-- Name: users; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE users (
    school_year numeric,
    user_id numeric NOT NULL,
    current_school_id numeric,
    first_name character varying(100),
    last_name character varying(100),
    middle_name character varying(100),
    username character varying(100),
    password character varying(100),
    phone character varying(100),
    email character varying(100),
    profile character varying(30),
    homeroom character varying(5),
    rollover_id numeric,
    schools character varying(255),
    profile_id numeric,
    last_note_seen numeric,
    cfield_40001 character varying(255),
    cfield_40002 character varying(255),
    title character varying(30),
    cfield_40003 character varying(255),
    last_login timestamp without time zone,
    failed_login numeric,
    force_password_change character varying(1) DEFAULT 'N'::character varying,
    cfield_40004 date,
    cfield_188 character varying(255),
    cfield_189 date,
    cfield_190 character varying(255),
    cfield_191 character varying(255),
    cfield_192 character varying(255),
    cfield_194 character varying(255),
    cfield_195 character varying(255),
    last_updated_user numeric,
    last_updated_date date,
    cfield_40005 character varying(40)
);


ALTER TABLE public.users OWNER TO pidc;

--
-- Name: users_seq; Type: SEQUENCE; Schema: public; Owner: pidc
--

CREATE SEQUENCE users_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.users_seq OWNER TO pidc;

--
-- Name: users_seq; Type: SEQUENCE SET; Schema: public; Owner: pidc
--

SELECT pg_catalog.setval('users_seq', 4, true);


--
-- Name: year_grade_report; Type: TABLE; Schema: public; Owner: pidc; Tablespace: 
--

CREATE TABLE year_grade_report (
    grade_id character varying,
    value1 character varying,
    value2 character varying,
    value3 character varying,
    value4 character varying,
    value5 character varying
);


ALTER TABLE public.year_grade_report OWNER TO pidc;

--
-- Data for Name: activity_courses; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY activity_courses (id, school_year, school_id, title, start_date, end_date) FROM stdin;
\.


--
-- Data for Name: addons_log; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY addons_log (addon_title, error_date) FROM stdin;
\.


--
-- Data for Name: address; Type: TABLE DATA; Schema: public; Owner: pidc
--

--
-- Data for Name: adodb_logsql; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY adodb_logsql (id, created, sql0, sql1, params, tracer, timer) FROM stdin;
\.


--
-- Data for Name: assignment_config; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY assignment_config (assignment_id, assignment_type_id, title, assigned_date, due_date, points, description, benchmarks, school_term_id) FROM stdin;
\.


--
-- Data for Name: assignment_type_config; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY assignment_type_config (assignment_type_id, title, final_grade_percent, school_id, hcolor) FROM stdin;
\.


--
-- Data for Name: attendance_code_cats_settings; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY attendance_code_cats_settings (id, school_year, school_id, title, rollover_id) FROM stdin;
\.


--
-- Data for Name: attendance_codes_settings; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY attendance_codes_settings (id, school_year, school_id, title, short_name, type, state_code, default_code, table_name, sort_order, is_daily_code) FROM stdin;
1	2007	1	\N	\N	teacher	P	Y	0	\N	Y
\.


--
-- Data for Name: attendance_teacher_filled; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY attendance_teacher_filled (user_id, school_date, school_period_id) FROM stdin;
\.


--
-- Data for Name: available_modprog; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY available_modprog (modname, user_id, profile_id) FROM stdin;
\.


--
-- Data for Name: billing_student_fees; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY billing_student_fees (student_id, assigned_date, due_date, comments, id, title, amount, school_id, school_year, waived_fee_id, old_id) FROM stdin;
\.


--
-- Data for Name: billing_student_fees_categories; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY billing_student_fees_categories (id, school_year, school_id, title) FROM stdin;
\.


--
-- Data for Name: billing_student_fees_old; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY billing_student_fees_old (id, category_id, school_year, school_id, title, amount, apply_all, classlevel_id, course_id, course_credit_title, activity_id, student_field_id, student_field_value, student_id, waived_fee_id) FROM stdin;
\.


--
-- Data for Name: billing_student_payments; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY billing_student_payments (id, school_year, school_id, student_id, amount, payment_date, comments, refunded_payment_id, lunch_payment, transaction_id) FROM stdin;
\.


--
-- Data for Name: block_ip; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY block_ip (id, faled_login, time_unlock, ip, date) FROM stdin;
\.


--
-- Data for Name: config; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY config (title, school_year, login, version) FROM stdin;
\.


--
-- Data for Name: course_credits; Type: TABLE DATA; Schema: public; Owner: pidc
--



--
-- Data for Name: delivery_group; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY delivery_group (id, title, short_name, sort_order, user_id, shared) FROM stdin;
\.


--
-- Data for Name: discipline_custom_fields_asg; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY discipline_custom_fields_asg (id, discipline_field_id, school_year, school_id, title, select_options, sort_order, select_codes, user_type) FROM stdin;
\.


--
-- Data for Name: discipline_incident_categories; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY discipline_incident_categories (id, title, allow_teacher_modify, sort_order, columns) FROM stdin;
\.


--
-- Data for Name: discipline_incident_fields; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY discipline_incident_fields (id, type, search, select_options, category_id, system_field, default_selection, required, max_length, sort_order, select_option_codes, select_option_default_code, application, title, field_edits, size) FROM stdin;
\.


--
-- Data for Name: discipline_incidents_asg_reports; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY discipline_incidents_asg_reports (incident_id, referral_id) FROM stdin;
\.


--
-- Data for Name: discipline_incidents_fields_in_cats; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY discipline_incidents_fields_in_cats (field_id, category_id, sort_order) FROM stdin;
\.


--
-- Data for Name: discipline_report_fields; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY discipline_report_fields (id, title, short_name, data_type, column_name, user_type) FROM stdin;
\.


--
-- Data for Name: docs_template_cells; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY docs_template_cells (id, template_id, type, style, border, sort_order, user_id, servicemod, left_cell, middle_cell, right_cell) FROM stdin;
\.


--
-- Data for Name: docs_templates; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY docs_templates (id, title, sort_order, school_id, header, footer, default_sm, default_users_sm, orientation, short_name, user_id, document_category_id, doc_type, use_inquiry, servicemod, page_breaks, schools, use_students, school_dep, school_year_dep) FROM stdin;
\.


--
-- Data for Name: docs_templates_categories; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY docs_templates_categories (id, school_id, title, servicemod, user_id, short_name, sort_order, schools) FROM stdin;
\.


--
-- Data for Name: evaluation_markpoints; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY evaluation_markpoints (school_year, student_id, score_id, type, score) FROM stdin;
\.


--
-- Data for Name: evaluation_testparts; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY evaluation_testparts (id, school_year, exam_id, title, short_name, max_score) FROM stdin;
\.


--
-- Data for Name: evaluation_tests; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY evaluation_tests (id, school_year, title, short_name, max_score) FROM stdin;
\.


--
-- Data for Name: grades_card_comments; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY grades_card_comments (id, school_year, school_id, title, sort_order) FROM stdin;
\.


--
-- Data for Name: grades_card_evaluation; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY grades_card_evaluation (id, school_year, school_id, subject_id, course_id, course_credit_title, sort_order, standard_id, subtitle, title) FROM stdin;
\.


--
-- Data for Name: grades_card_settings; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY grades_card_settings (id, school_year, school_id, title, sort_order, gpa_value, default_breakoff, scale_id, credits, weighted_gpa_value, description) FROM stdin;
6	2007	1	A	1	4.00	\N	2	Y	\N	90-100%
7	2007	1	B	2	3.00	\N	2	Y	\N	80-89%
8	2007	1	C	3	2.00	\N	2	Y	\N	70-79%
9	2007	1	D	4	1.00	\N	2	Y	\N	60-69%
10	2007	1	F	5	0	\N	2	\N	\N	Below 60%
1	2007	1	A	1	4.00	\N	1	Y	\N	90-100%
2	2007	1	B	2	3.00	\N	1	Y	\N	80-89%
3	2007	1	C	3	2.00	\N	1	Y	\N	70-79%
4	2007	1	D	4	1.00	\N	1	Y	\N	60-69%
5	2007	1	F	5	0.00	\N	1	Y	\N	Below 60%
\.


--
-- Data for Name: grades_card_tests; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY grades_card_tests (id, school_year, school_id, subject_id, course_id, course_credit_title, title, sort_order, grading_scale_id, rollover_id, subtitle) FROM stdin;
\.


--
-- Data for Name: grades_card_types; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY grades_card_types (id, school_year, school_id, title, default_scale, rollover_id) FROM stdin;
1	2007	1	A	\N	\N
2	2007	1	1 Credit Course	\N	\N
\.


--
-- Data for Name: graduation_req_subjects; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY graduation_req_subjects (id, school_id, title, sort_order, credits, short_name) FROM stdin;
\.


--
-- Data for Name: graduation_requirements; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY graduation_requirements (id, title, short_name) FROM stdin;
\.


--
-- Data for Name: graduation_rp_in_course_req; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY graduation_rp_in_course_req (program_id, recomended_gradelevel, title, number_required, courses) FROM stdin;
\.


--
-- Data for Name: graduation_rp_in_subjects; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY graduation_rp_in_subjects (program_id, subject_id, credits) FROM stdin;
\.


--
-- Data for Name: in_inbox_message; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY in_inbox_message (id, from_user, to_user, title, msg, date, status, to_user_profile, from_user_profile) FROM stdin;
\.


--
-- Data for Name: in_outbox_message; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY in_outbox_message (id, from_user, to_users, title, msg, date) FROM stdin;
\.


--
-- Data for Name: info_saves; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY info_saves (id, title, url) FROM stdin;
\.


--
-- Data for Name: intermediate_report; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY intermediate_report (id, title, short_name, gpavalue, school_id) FROM stdin;
\.


--
-- Data for Name: lh_template_cells; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY lh_template_cells (id, template_id, type, style, border, sort_order, left_cell, middle_cell, right_cell) FROM stdin;
\.


--
-- Data for Name: lh_templates; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY lh_templates (id, title, sort_order, school_id, header, footer, default_program, default_program_for_teachers, orientation, page_breaks) FROM stdin;
\.


--
-- Data for Name: listing_fields_settings; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY listing_fields_settings (student_id, html_field_title, field_name, select_options, select_codes) FROM stdin;
\.


--
-- Data for Name: login_history; Type: TABLE DATA; Schema: public; Owner: pidc
--



--
-- Data for Name: lunch_period; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY lunch_period (student_id, school_date, school_period_id, attendance_code, attendance_teacher_code, attendance_reason, admin, course_section_id, school_term_id, table_name) FROM stdin;
\.


--
-- Data for Name: mailing_of_group; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY mailing_of_group (id, title, sort, user_id) FROM stdin;
\.


--
-- Data for Name: markbook_assignment_types; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY markbook_assignment_types (assignment_type_id, user_id, course_id, title, final_grade_percent, hcolor) FROM stdin;
\.


--
-- Data for Name: markbook_assignments; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY markbook_assignments (assignment_id, user_id, school_term_id, course_section_id, course_id, assignment_type_id, title, assigned_date, due_date, points, description, benchmarks) FROM stdin;
\.


--
-- Data for Name: markbook_teachers_filled; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY markbook_teachers_filled (user_id, school_period_id, school_term_id, course_section_id) FROM stdin;
\.


--
-- Data for Name: orders; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY orders (id, type, external_id, student_id) FROM stdin;
\.


--
-- Data for Name: people_in_group; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY people_in_group (id, id_group, id_people, fio_people, profile) FROM stdin;
\.


--
-- Data for Name: portal_messages; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY portal_messages (id, title, content, sort_order, published_user, published_date, start_date, end_date, published_profiles, school_id) FROM stdin;
\.


--
-- Data for Name: profile_settings; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY profile_settings (profile_id, modname, viewer, editor) FROM stdin;
1	mod_apply/Applicants.php&category_id=1	N	N
1	mod_apply/Applicants.php&category_id=2	N	N
\.


--
-- Data for Name: program_uploaded_files; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY program_uploaded_files (id, tablename, table_id, title, location, uploaded_date, filesize) FROM stdin;
\.


--
-- Data for Name: resbase; Type: TABLE DATA; Schema: public; Owner: pidc
--



--
-- Data for Name: resbase_categories; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY resbase_categories (id, school_id, title, sort_order, profiles) FROM stdin;
1	1	Facility	\N	,,,1,
\.


--
-- Data for Name: resbase_events; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY resbase_events (id, title, description, school_date, start_time, end_time, user_id, color) FROM stdin;
\.


--
-- Data for Name: resbase_in_events; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY resbase_in_events (resource_id, event_id) FROM stdin;
\.


--
-- Data for Name: rss_conf; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY rss_conf (id, title, rss_url, user_id, used) FROM stdin;
\.


--
-- Data for Name: saved_info; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY saved_info (id, title, user_id, php_self, search_php_self, search_vars, school_id) FROM stdin;
\.


--
-- Data for Name: school_calendar_days; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY school_calendar_days (school_year, school_id, school_date, minutes, block, calendar_id) FROM stdin;
\.


--
-- Data for Name: school_calendar_events; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY school_calendar_events (id, school_year, school_id, school_date, title, description) FROM stdin;
\.


--
-- Data for Name: school_calendars; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY school_calendars (school_id, title, school_year, calendar_id, default_calendar, rollover_id) FROM stdin;
1	2007-2008	2007	6	\N	\N
\.


--
-- Data for Name: school_classlevels; Type: TABLE DATA; Schema: public; Owner: pidc
--



--
-- Data for Name: school_field_categories; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY school_field_categories (id, title, allow_teacher_modify, sort_order, columns) FROM stdin;
1	General Info	\N	1	\N
\.


--
-- Data for Name: school_fields; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY school_fields (id, type, search, select_options, category_id, system_field, default_selection, log_field1_title, log_field2_title, log_field3_title, log_field4_title, log_field5_title, log_field6_title, log_field7_title, log_field8_title, log_field9_title, required, max_length, sort_order, select_option_codes, select_option_default_code, application, log_field10_title, log_field11_title, title, field_edits, log_field1, log_field2, log_field3, log_field4, log_field5, log_field6, log_field7, log_field8, log_field9, log_field10, log_field11, log_field12, log_field13, log_field14, log_field15, log_field16, log_field17, log_field18, log_field19, log_field20, log_field12_title, log_field13_title, log_field14_title, log_field15_title, log_field16_title, log_field17_title, log_field18_title, log_field19_title, log_field20_title, log_field1_sort_order, log_field2_sort_order, log_field3_sort_order, log_field4_sort_order, log_field5_sort_order, log_field6_sort_order, log_field7_sort_order, log_field8_sort_order, log_field9_sort_order, log_field10_sort_order, log_field11_sort_order, log_field12_sort_order, log_field13_sort_order, log_field14_sort_order, log_field15_sort_order, log_field16_sort_order, log_field17_sort_order, log_field18_sort_order, log_field19_sort_order, log_field20_sort_order, size) FROM stdin;
6	text	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	2	\N	\N	\N	\N	\N	Address	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N
8	text	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	3	\N	\N	\N	\N	\N	Email	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N
9	text	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	4	\N	\N	\N	\N	\N	Phone	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N
4	text	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	\N	\N	\N	\N	\N	Principal	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N
10	text	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	5	\N	\N	\N	\N	\N	School website	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N
\.


--
-- Data for Name: school_fields_in_cats; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY school_fields_in_cats (field_id, category_id, sort_order) FROM stdin;
\.


--
-- Data for Name: school_group_titles; Type: TABLE DATA; Schema: public; Owner: pidc
--



--
-- Data for Name: school_groups; Type: TABLE DATA; Schema: public; Owner: pidc
--



--
-- Data for Name: school_lf_data; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY school_lf_data (id, school_field_id, student_id, school_id, user_id, modified_date, log_field1, log_field2, log_field3, log_field4, log_field5, log_field6, log_field7, log_field8, log_field9, log_field10, log_field11, log_field12, log_field13, log_field14, log_field15, log_field16, log_field17, log_field18, log_field19, log_field20) FROM stdin;
\.


--
-- Data for Name: school_periods; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY school_periods (school_period_id, school_year, school_id, sort_order, title, short_name, length, rollover_id, block, attendance, length_sun, length_mon, length_tue, length_wed, length_thu, length_fri, length_sat, start_time, end_time, start_time_sun, end_time_sun, start_time_mon, end_time_mon, start_time_tue, end_time_tue, start_time_wed, end_time_wed, start_time_thu, end_time_thu, start_time_fri, end_time_fri, start_time_sat, end_time_sat) FROM stdin;
2	2011	1	\N	Teaching the Bible	THB	1.5	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
4	2007	1	1	Fall Spring 07-08	07-08	60	\N	\N	Y	\N	\N	\N	\N	\N	\N	\N	06:00:00	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\.


--
-- Data for Name: school_quarters; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY school_quarters (school_term_id, school_year, school_id, semester_id, title, short_name, sort_order, start_date, end_date, post_start_date, post_end_date, rollover_id, registration_start_date, registration_end_date, year_fraction) FROM stdin;
26	2007	1	5	Term Fall 07	TF07	\N	\N	\N	\N	\N	\N	\N	\N	\N
29	2007	1	6	Term Spring 08	TS08	2	\N	\N	\N	\N	\N	\N	\N	\N
\.


--
-- Data for Name: school_semesters; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY school_semesters (school_term_id, school_year, school_id, title, short_name, sort_order, start_date, end_date, post_start_date, post_end_date, rollover_id, registration_start_date, registration_end_date, year_fraction, year_id) FROM stdin;
5	2007	1	Fall 2007	Fall 07	\N	\N	\N	\N	\N	\N	\N	\N	\N	4
6	2007	1	Spring 2008	Spring 08	\N	\N	\N	\N	\N	\N	\N	\N	\N	4
13	2008	1	Fall 2008	Fall 08	1	2008-09-06	2008-12-21	\N	\N	\N	\N	\N	\N	12
14	2008	1	Spring 2009	Spring 09	2	2009-01-06	2009-05-06	\N	\N	\N	\N	\N	\N	12
17	2009	1	Spring 2010	Spring 10	2	2010-01-06	2010-05-06	\N	\N	\N	\N	\N	\N	15
16	2009	1	Fall 2009	Fall 09	1	2009-09-06	2009-12-21	\N	\N	\N	\N	\N	\N	15
19	2010	1	Spring 2011	Spring 11	\N	2011-01-06	2011-05-06	\N	\N	\N	\N	\N	\N	18
21	2011	1	Fall 2011	Fall 11	1	2011-09-12	2011-12-21	\N	\N	\N	\N	\N	\N	20
22	2011	1	Spring 2012	Spring 12	\N	2012-01-15	2012-05-04	\N	\N	\N	2012-12-04	2012-01-31	\N	20
\.


--
-- Data for Name: school_weeks; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY school_weeks (school_term_id, school_year, school_id, quarter_id, title, short_name, sort_order, start_date, end_date, post_start_date, post_end_date, rollover_id, year_fraction) FROM stdin;
30	2007	1	29	Progress1	P1	\N	\N	\N	\N	\N	\N	\N
31	2007	1	26	Period 1	P1	\N	\N	\N	\N	\N	\N	\N
\.


--
-- Data for Name: school_years; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY school_years (school_term_id, school_year, school_id, title, short_name, sort_order, start_date, end_date, post_start_date, post_end_date, registration_start_date, registration_end_date, year_fraction, rollover_id) FROM stdin;
4	2007	1	2007-2008	07-08	\N	\N	\N	\N	\N	\N	\N	\N	\N
3	2007	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
1	2007	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
2	2007	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
12	2008	1	2008-2009	08-09	\N	2008-09-06	2009-05-06	\N	\N	\N	\N	\N	\N
15	2009	1	2009-2010	09-10	\N	2009-09-06	2010-05-06	\N	\N	\N	\N	\N	\N
18	2010	1	2010-2011	10-11	\N	2010-09-06	2011-05-06	\N	\N	\N	\N	\N	\N
20	2011	1	2011-2012	11-12	\N	2011-08-29	2012-05-05	\N	\N	\N	\N	\N	\N
\.


--
-- Data for Name: schools; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY schools (school_year, id, title, address, city, state, zipcode, area_code, phone, principal, latitude, longitude, state_school_id, cfield_1, cfield_2, cfield_3, cfield_60319, cfield_60320, cfield_60322, cfield_60323, cfield_60324, cfield_60325, cfield_54, cfield_4, cfield_6, cfield_8, cfield_9, cfield_10) FROM stdin;
2011	1	Purpose Institute and Discipleship Center	\N	\N	\N	\N	\N	\N	Mr. Principal	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	Lutissua D Ballard, Psy.D.	4500 E Speedway Blvd, Ste 112	lballard@dci.nu	5203238852	www.pidc.info
\.


--
-- Data for Name: sms_profiles; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY sms_profiles (id, title, login, pass) FROM stdin;
\.


--
-- Data for Name: statistics_of_visitings; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY statistics_of_visitings (id, user_id, profile, module, servicemod, s_count) FROM stdin;
14	1	admin	mod_messaging	mod_messaging/Internal_mail.php	24
37	1	admin	mod_curriculum	mod_curriculum/ScdStudSchedWizard.php	9
31	1	admin	mod_discipline	mod_discipline/DisAddViolator.php	2
8	1	admin	mod_students	mod_students/StuClassifcnReport.php	1
24	1	admin	mod_users	mod_users/Users.php	27
49	1	admin	mod_students	mod_students/StuAuditLog.php	3
41	1	admin	mod_ssetup	mod_ssetup/SchEndTerm.php	14
11	1	admin	mod_students	mod_students/StuDocTemplate.php	3
16	1	admin	mod_ssetup	mod_ssetup/SchProperties.php	5
13	1	admin	mod_activity	mod_activity/ActStudMain.php	1
29	1	admin	mod_users	mod_users/UsrPrefnProper.php	25
20	1	admin	mod_ssetup	mod_ssetup/SchCalendarStd.php	63
27	1	admin	mod_ssetup	mod_ssetup/SchInventoryCenter.php	53
25	1	admin	mod_ssetup	mod_ssetup/SchGroups.php	27
26	1	admin	mod_ssetup	mod_ssetup/SchFieldsProperties.php	6
1	1	admin	mod_students	mod_students/AddStud.php	267
43	1	admin	mod_curriculum	mod_curriculum/ScdMSReport.php	2
64	1	admin	mod_curriculum	mod_curriculum/ScdStudSchedReport.php	4
21	1	admin	mod_ssetup	mod_ssetup/SchGradeLvlProperties.php	19
19	1	admin	mod_ssetup	mod_ssetup/SchReportTemplatesWorkspace.php	1
35	1	admin	mod_users	mod_users/UsrFieldsProperties.php	5
53	1	admin	mod_grades	mod_grades/GrdBookTeacher.php	4
4	1	admin	mod_grades	mod_grades/GrdStudentPrintGC.php	2
60	1	admin	mod_grades	mod_grades/AssignmentConfig.php	1
45	1	admin	mod_students	mod_students/MassDelStud.php	72
39	1	admin	mod_curriculum	mod_curriculum/ScdTotalSchedRemove.php	1
40	1	admin	mod_ssetup	mod_ssetup/SchLoginHistory.php	2
28	1	admin	mod_ssetup	mod_ssetup/SchSysPrefnProper.php	35
12	1	admin	mod_students	mod_students/StuAddlInfo.php	3
17	1	admin	mod_ssetup	mod_ssetup/SchProperties.php?new_school=true	3
42	1	admin	mod_activity	mod_activity/ActList.php	1
32	1	admin	mod_messaging	mod_messaging/Mailing_of_group.php	1
52	1	admin	mod_users	mod_users/UsrProfile.php	7
47	1	admin	mod_students	mod_students/StuPrintSpecDocs.php	1
10	1	admin	mod_students	mod_students/StuAdvancedReport.php	8
62	1	admin	mod_users	mod_users/TeacherWorkspace.php?include=mod_grades/GrdBookConfiguration.php	7
38	1	admin	mod_curriculum	mod_curriculum/ScdMajorAddSchedule.php	34
65	1	admin	mod_grades	mod_grades/GrdBook.php	5
7	1	admin	mod_curriculum	mod_curriculum/ScdStudReqProperties.php	2
46	1	admin	mod_attendance	mod_attendance/AttdManagement.php	6
3	1	admin	mod_curriculum	mod_curriculum/Curriculum.php	21
63	1	admin	mod_users	mod_users/TeacherWorkspace.php?include=mod_grades/GrdBookAssignments.php	2
2	1	admin	mod_users	mod_users/UsrAdvancedReport.php	2
23	1	admin	mod_users	mod_users/AddUser.php	4
44	1	admin	mod_students	mod_students/StuRegLogProperties.php	6
18	1	admin	mod_ssetup	mod_ssetup/SchDupTerms.php	2
54	1	admin	mod_attendance	mod_attendance/AttdSetup.php	2
22	1	admin	mod_savedinfo	mod_savedinfo/SISaveLink.php	5
30	1	admin	mod_students	mod_students/StuFieldsProperties.php	91
9	1	admin	mod_students	mod_students/StuEnrollAD.php	4
48	1	admin	mod_students	mod_students/StuFormReport.php	2
59	1	admin	mod_grades	mod_grades/GrdBookManualGPACalculation.php	5
58	1	admin	mod_grades	mod_grades/GrdRCProperties.php	27
50	1	admin	mod_curriculum	mod_curriculum/ScdReqUnActList.php	2
55	1	admin	mod_users	mod_users/TeacherWorkspace.php?include=mod_attendance/AttdMarkVisitation.php	4
56	1	admin	mod_grades	mod_grades/MassTeacherAssign.php	1
61	1	admin	mod_users	mod_users/TeacherWorkspace.php?include=mod_grades/Grades.php	6
15	1	admin	mod_grades	mod_grades/GrdPrintStudGrades.php	41
57	1	admin	mod_users	mod_users/TeacherWorkspace.php?include=mod_grades/GrdBookEnterFinalGrades.php	72
51	1	admin	mod_users	mod_users/TeacherWorkspace.php?include=mod_evaluation/SuitPostingIntrProgress.php	3
36	1	admin	mod_ssetup	mod_ssetup/SchTimePeriods.php	21
6	1	admin	mod_students	mod_students/Students.php	321
5	1	admin	mod_curriculum	mod_curriculum/ScdCourseProperties.php	394
33	1	admin	mod_ssetup	mod_ssetup/SchTermsProperties.php	300
34	1	admin	mod_billing	mod_billing/BilStudFeesList.php	5
\.


--
-- Data for Name: std_counter; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY std_counter (id, school_id, school_year, doc_id, advanced, counter_id, value) FROM stdin;
\.


--
-- Data for Name: student_activities_history; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_activities_history (school_year, student_id, activity_id) FROM stdin;
\.


--
-- Data for Name: student_attendance_days; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_attendance_days (student_id, school_date, minutes_present, state_value, school_year, school_term_id, comment, daily_code, last_updated_date, last_updated_user) FROM stdin;
\.


--
-- Data for Name: student_attendance_periods; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_attendance_periods (student_id, school_date, school_period_id, attendance_code, attendance_teacher_code, attendance_reason, admin, course_section_id, school_term_id, last_updated_date, last_updated_user) FROM stdin;
\.


--
-- Data for Name: student_discipline_incidents; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_discipline_incidents (school_year, id, title, cfield_214, cfield_215, cfield_216, cfield_217, cfield_218, cfield_219, cfield_220, cfield_221) FROM stdin;
\.


--
-- Data for Name: student_discipline_incidents_asg_reports; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_discipline_incidents_asg_reports (incident_id, referral_id) FROM stdin;
\.


--
-- Data for Name: student_discipline_incidents_fields_in_cats; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_discipline_incidents_fields_in_cats (field_id, category_id, sort_order) FROM stdin;
\.


--
-- Data for Name: student_discipline_reports; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_discipline_reports (id, school_year, student_id, school_id, user_id, entry_date, referral_date, category_1, category_2, category_3, category_4, category_6) FROM stdin;
\.


--
-- Data for Name: student_emails; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_emails (id, title, default_template_id, body, school_id, profile, user_id) FROM stdin;
\.


--
-- Data for Name: student_emails_order; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_emails_order (letter_id, sid, stype, template_id, dt_added, user_added, dt_printed, user_printed) FROM stdin;
\.


--
-- Data for Name: student_emails_processing; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_emails_processing (trigger_id, trigger_event, trigger_action, template_id) FROM stdin;
\.


--
-- Data for Name: student_field_categories; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_field_categories (id, title, allow_teacher_modify, sort_order, columns, allow_student_modify, alternative_name, used_applicants) FROM stdin;
3	Educational Summary	\N	\N	\N	\N	\N	\N
2	Personal Data	Y	\N	\N	Y	\N	\N
1	General	\N	\N	\N	\N	\N	\N
\.


--
-- Data for Name: student_fields; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_fields (id, type, search, select_options, category_id, system_field, default_selection, log_field1_title, log_field2_title, log_field3_title, log_field4_title, log_field5_title, log_field6_title, log_field7_title, log_field8_title, log_field9_title, required, max_length, sort_order, select_option_codes, select_option_default_code, application, log_field10_title, log_field11_title, title, field_edits, log_field1, log_field2, log_field3, log_field4, log_field5, log_field6, log_field7, log_field8, log_field9, log_field10, log_field11, log_field12, log_field13, log_field14, log_field15, log_field16, log_field17, log_field18, log_field19, log_field20, log_field12_title, log_field13_title, log_field14_title, log_field15_title, log_field16_title, log_field17_title, log_field18_title, log_field19_title, log_field20_title, log_field1_sort_order, log_field2_sort_order, log_field3_sort_order, log_field4_sort_order, log_field5_sort_order, log_field6_sort_order, log_field7_sort_order, log_field8_sort_order, log_field9_sort_order, log_field10_sort_order, log_field11_sort_order, log_field12_sort_order, log_field13_sort_order, log_field14_sort_order, log_field15_sort_order, log_field16_sort_order, log_field17_sort_order, log_field18_sort_order, log_field19_sort_order, log_field20_sort_order, max_record, use_applicants, use_students, use_source, for_applicants, values_field, codes_field, source_table, size, log_field1_count_total, log_field2_count_total, log_field3_count_total, log_field4_count_total, log_field5_count_total, log_field6_count_total, log_field7_count_total, log_field8_count_total, log_field9_count_total, log_field10_count_total, log_field11_count_total, log_field12_count_total, log_field13_count_total, log_field14_count_total, log_field15_count_total, log_field16_count_total, log_field17_count_total, log_field18_count_total, log_field19_count_total, log_field20_count_total) FROM stdin;
50002	text	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	\N	\N	\N	\N	\N	Cell phone number for notification	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N	\N	\N	\N	\N	\N	\N	\N	\N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N
2	text	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	Y	\N	2	\N	\N	Y	\N	\N	E-mail	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N	Y	Y	\N	Y	\N	\N	\N	\N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N
3	text	\N	\N	2	\N	AZ	\N	\N	\N	\N	\N	\N	\N	\N	\N	Y	\N	1	\N	\N	Y	\N	\N	U.S. Citizen, legal state of residence?	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N	Y	Y	\N	Y	\N	\N	\N	\N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N
5	select	\N	U.S. Citizen\nStudent Visa\nVisitor Visa\nImmigrant Visa (Permanent Resident)	2	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	Y	\N	3	\N	\N	Y	\N	\N	Type of Resident	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N	Y	Y	\N	Y	\N	\N	\N	\N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N
6	multiple	\N	Caucasian American\nBlack/African-American\nHispanic\nAmerican Indian\nAsian or Pacific\nForeign or Other	2	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	Y	\N	4	\N	\N	Y	\N	\N	National Origin	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N	Y	Y	\N	Y	\N	\N	\N	\N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N
7	date	\N	\N	2	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	Y	\N	5	\N	\N	Y	\N	\N	Birth Date	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N	Y	Y	\N	Y	\N	\N	\N	\N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N
8	select_one	\N	Male\nFemale	2	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	6	\N	\N	Y	\N	\N	Sex	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N	N	Y	\N	\N	\N	\N	\N	\N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N
9	text	\N	\N	2	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	7	\N	\N	Y	\N	\N	Denomination/Church Afflilation/Local Church	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N	N	Y	\N	\N	\N	\N	\N	\N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N
10	select_one	\N	High School Diploma\nGED\nCollege	3	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	\N	\N	Y	\N	\N	Highest Level of Education	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N	N	Y	\N	\N	\N	\N	\N	\N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N
4	text	\N	\N	2	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	2	\N	\N	Y	\N	\N	Non U.S. Citizen, What is your nationality?	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N	\N	Y	\N	\N	\N	\N	\N	\N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N	N
\.


--
-- Data for Name: student_fields_in_cats; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_fields_in_cats (field_id, category_id, sort_order) FROM stdin;
\.


--
-- Data for Name: student_gpa_progress; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_gpa_progress (student_id, school_term_id, gpa_points, gpa_points_weighted, divisor) FROM stdin;
\.


--
-- Data for Name: student_gpa_totals; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_gpa_totals (student_id, school_term_id, mp, gpa, weighted_gpa, class_rank, cumulative_gpa, cumulative_weighted_gpa, grade_total, cumulative_credits, classlevel_id, percent_average, credits_attempted, credits_earned, classgroup_rank) FROM stdin;
\.


--
-- Data for Name: student_grades_card; Type: TABLE DATA; Schema: public; Owner: pidc
--



--
-- Data for Name: student_grades_card_evaluations; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_grades_card_evaluations (id, school_year, school_id, student_id, course_section_id, school_term_id, benchmark_id, title, grades_card_id, grade_title, comment, longer_course_comments) FROM stdin;
\.


--
-- Data for Name: student_in_delivery_group; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_in_delivery_group (delivery_group_id, student_id) FROM stdin;
\.


--
-- Data for Name: student_lf_data; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_lf_data (id, student_field_id, student_id, school_id, user_id, modified_date, log_field1, log_field2, log_field3, log_field4, log_field5, log_field6, log_field7, log_field8, log_field9, log_field10, log_field11, log_field12, log_field13, log_field14, log_field15, log_field16, log_field17, log_field18, log_field19, log_field20) FROM stdin;
\N	999999	9144	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	9144	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	9144	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	9144	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	874	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	\N	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	2816	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	8819	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	8819	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	3925	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	2776	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	874	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	2636	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	2636	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	7575	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	7575	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	7220	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	1195	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	5857	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	874	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	874	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	3473	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	3473	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	5691	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	7067	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	60	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	515	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	9937	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	3451	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	5891	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	1826	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	1232	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	1232	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	3126	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\N	999999	7124	1	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\.


--
-- Data for Name: student_markbook_grades; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_markbook_grades (student_id, school_period_id, course_section_id, assignment_id, points, comment, highlight) FROM stdin;
\.


--
-- Data for Name: student_medical; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_medical (id, student_id, type, medical_date, comments) FROM stdin;
\.


--
-- Data for Name: student_medical_alerts; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_medical_alerts (id, student_id, title) FROM stdin;
\.


--
-- Data for Name: student_medical_visits; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_medical_visits (id, student_id, school_date, time_in, time_out, reason, result, comments) FROM stdin;
\.


--
-- Data for Name: student_registration; Type: TABLE DATA; Schema: public; Owner: pidc
--


--
-- Data for Name: student_registration_settings; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_registration_settings (id, school_year, title, short_name, type) FROM stdin;
1	2011	Credit	CR	\N
2	2011	Audit	AU	\N
\.


--
-- Data for Name: student_relations; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_relations (person_id, last_name, first_name, middle_name, title, email, notificate) FROM stdin;
\.


--
-- Data for Name: student_relations_in_contacts; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_relations_in_contacts (id, person_id, title, value) FROM stdin;
\.


--
-- Data for Name: student_schedule; Type: TABLE DATA; Schema: public; Owner: pidc
--



--
-- Data for Name: student_schedule_requests; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_schedule_requests (school_year, school_id, request_id, student_id, subject_id, course_id, course_credit_title, school_term_id, priority, with_teacher_id, not_teacher_id, with_school_period_id, not_school_period_id) FROM stdin;
\.


--
-- Data for Name: student_suitability_grades; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_suitability_grades (student_id, school_year, school_date, school_period_id, student_suitability_grades_code, course_section_id) FROM stdin;
\.


--
-- Data for Name: student_term_comments; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY student_term_comments (student_id, school_year, school_term_id, comment, editor_user_ids) FROM stdin;
\.


--
-- Data for Name: students; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY students (student_id, last_name, first_name, middle_name, name_suffix, username, password, cfield_50000, cfield_50001, cfield_50003, cfield_50004, cfield_50005, cfield_50006, cfield_50007, cfield_50008, cfield_50009, cfield_50010, last_login, failed_login, profile_id, last_note_seen, cfield_50012, cfield_50013, force_password_change, last_updated_date, last_updated_user, cfield_196, cfield_197, cfield_198, cfield_199, cfield_200, cfield_201, cfield_202, cfield_203, cfield_204, cfield_205, cfield_206, cfield_207, cfield_208, cfield_209, cfield_211, cfield_212, cfield_50002, cfield_50016, profile, cfield_2, cfield_3, cfield_4, cfield_5, cfield_6, cfield_7, cfield_8, cfield_9, cfield_10) FROM stdin;
6	Test	Student	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	Y	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	student	\N	\N	\N	\N	\N	\N	\N	\N	\N
\.


--
-- Data for Name: students_auditlog; Type: TABLE DATA; Schema: public; Owner: pidc
--


--
-- Data for Name: students_in_sr; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY students_in_sr (id, student_id, person_id, address_id, custody, emergency, student_relation) FROM stdin;
\.


--
-- Data for Name: students_in_users; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY students_in_users (student_id, user_id) FROM stdin;
\.


--
-- Data for Name: students_scores_rating; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY students_scores_rating (id, student_id, low_score, high_score, course_rank, school_term_id, course_id) FROM stdin;
\.


--
-- Data for Name: suitability_teachers_filled; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY suitability_teachers_filled (user_id, school_date, school_period_id) FROM stdin;
\.


--
-- Data for Name: system_config; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY system_config (school_year, school_id, program, title, value) FROM stdin;
\N	\N	applicants	REGISTRATION_TYPE	SIMPLE
\N	\N	Preferences	ANALITICAL_REPORT	GD
\N	\N	system	ADVANCED_FIELDS	N
\N	\N	Preferences	HIGHLIGHT	4871b0
\N	\N	Preferences	HIGHLIGHT_MENU	blue
\N	\N	Preferences	HIGHLIGHT_FRAME	blue
\N	\N	Preferences	HIGHLIGHT_WINDOW	c4d9fa
\N	\N	Preferences	HIGHLIGHT_BACKGROUND	e6ecf4
\N	\N	Preferences	LANGUAGE	en_US
\N	\N	Preferences	MONTH_DAY	dmy
\N	\N	Preferences	LOGIN_DATE_FORMAT	24
\N	\N	Preferences	CALENDAR	Mon
\N	\N	Preferences	WEEKDAY	D
\N	\N	Preferences	MONTH	M
\N	\N	Preferences	DAY	j
\N	\N	Preferences	YEAR	Y
\N	\N	Preferences	CURRENCY_SL	Right
\N	\N	Preferences	HIDDEN	Y
\N	\N	system	VARIABLE_PERIOD_LENGTH	N
\N	\N	system	ONE_LONGER_COMMENT_PER_COURSE	N
\N	\N	system	ONE_LONGER_COMMENT_PER_STUDENT	N
\N	\N	system	COMMENTS_CONDUCT	N
\N	\N	system	USE_BLOCKS	N
\N	\N	system	USE_PREFIX	N
\N	\N	system	USE_SUFFIX	N
\N	\N	system	ODD_EVEN_WEEKS	N
\N	\N	system	USE_KLADR	N
\N	\N	Gradebook	ROUNDING	NORMAL
\N	\N	Gradebook	DEFAULT_DUE_DATE	tomorrow
\N	\N	Gradebook	ASSIGNMENT_SORTING	ASSIGNMENT_ID
\N	\N	Gradebook	DISPLAY_GRADEBOOK_PERCENTAGES	Y
\N	\N	Gradebook	WEIGHT	N
\N	\N	Gradebook	APPLY_ALL_DEFAULT	N
\N	\N	Gradebook	PERCENT_MODE	N
\N	\N	Preferences	SORT	Name
\N	\N	Preferences	SEARCH	Y
\N	\N	Preferences	DISPLAY_STUDENT_ID	Y
\N	\N	Preferences	DISPLAY_CLASSLEVEL	Y
\N	\N	Preferences	DISPLAY_GROUP	Y
\N	\N	Preferences	NAME_FORMAT	WOCM
\N	\N	Preferences	DELIMITER	Tab
\N	\N	Preferences	DEFAULT_CUSTOMIZED_LIST	N
\N	\N	Preferences	DEFAULT_ALL_SCHOOLS	N
\N	\N	system	VIEW_PAST_STUDENT_ATTENDANCE_DAYS	10
\N	\N	system	EDIT_PAST_STUDENT_ATTENDANCE_DAYS	10
\N	\N	system	MIN_FULLDAY	300
\N	\N	system	MIN_HALFDAY	150
\N	\N	system	EDIT_ATTENDANCE_AFTER_SAVE	Y
\N	\N	system	REPORT_CARD	grade
\N	\N	system	DEFAULT_CREDITS	3
\N	\N	system	GPA_POINTS_OR_PERCENT_GRADE	GPA_POINTS
\N	\N	system	FORMULA	WAVGGRD
\N	\N	system	USE_CREDITS	Y
\N	\N	system	USE_REQUESTS	Y
\N	\N	system	DISPLAY_GPA	Y
\N	\N	system	SCHOOL_YEAR_TITLE	YYYY-YYYY
\N	\N	system	STUDENTS_CAN_SCHEDULE	Y
\N	\N	system	STUDENTS_CAN_REQUEST	Y
\N	\N	system	DECIMAL	.
\N	\N	system	CURRENCY	р
\N	\N	system	DEFAULT_CITY	Tucson
\N	\N	system	DEFAULT_STATE	AZ
\N	\N	system	DEFAULT_AREACODE	520
\N	\N	system	AUTO_STUDENT_USERNAMES	Y
\N	\N	system	SHORT_COMMENTS_PER_COURSE	Y
\N	\N	system	CALC_GPA_AUTOMATICALLY	Y
\N	\N	system	ROUND_GPA_POINTS	3
\N	\N	system	ROUND_AVERAGE_POINTS	3
\N	\N	system	APPLY_MODE	Y
\N	\N	system	NAME_FORMAT	N
\N	\N	system	WEIGHTS	N
\N	\N	system	FINAL_EXAMS	N
\N	\N	system	FY_EXAMS	N
\N	\N	system	QTR_EXAMS	N
\N	\N	system	OVERRIDE_SCORE_BREAKOFFS	N
\N	\N	system	OVERRIDE_SEMESTER_GRADE_WEIGHTS	N
\N	\N	system	BUS_ADDRESSES	N
\N	\N	system	MAILING_ADDRESSES	N
\N	\N	system	GUARDIANS	N
\N	\N	system	WEIGHTED_GPA	N
\.


--
-- Data for Name: system_user_settings; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY system_user_settings (username, program, title, value, school_id, school_year) FROM stdin;
admin	Preferences	HIGHLIGHT	4871b0	\N	\N
admin	Preferences	HIGHLIGHT_MENU	blue	\N	\N
admin	Preferences	HIGHLIGHT_FRAME	blue	\N	\N
admin	Preferences	HIGHLIGHT_WINDOW	c4d9fa	\N	\N
admin	Preferences	HIGHLIGHT_BACKGROUND	e6ecf4	\N	\N
admin	Preferences	LANGUAGE	en_US	\N	\N
admin	Preferences	MONTH_DAY	mdy	\N	\N
admin	Preferences	LOGIN_DATE_FORMAT	24	\N	\N
admin	Preferences	CALENDAR	Mon	\N	\N
admin	Preferences	WEEKDAY	D	\N	\N
admin	Preferences	MONTH	M	\N	\N
admin	Preferences	DAY	j	\N	\N
admin	Preferences	YEAR	Y	\N	\N
admin	Preferences	CURRENCY_SL	Right	\N	\N
admin	Preferences	HIDDEN	Y	\N	\N
atigney	Gradebook	ROUNDING	NORMAL	\N	\N
atigney	Gradebook	DEFAULT_DUE_DATE	tomorrow	\N	\N
atigney	Gradebook	ASSIGNMENT_SORTING	ASSIGNMENT_ID	\N	\N
atigney	Gradebook	WEIGHT	N	\N	\N
atigney	Gradebook	APPLY_ALL_DEFAULT	N	\N	\N
atigney	Gradebook	PERCENT_MODE	N	\N	\N
atigney	Gradebook	DISPLAY_GRADEBOOK_PERCENTAGES	N	\N	\N
atigney	Gradebook	ALLOW_FINAL_GRADE_UG_CALC	N	\N	\N
\.


--
-- Data for Name: type_of_study; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY type_of_study (id) FROM stdin;
\.


--
-- Data for Name: user_field_categories; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY user_field_categories (id, title, sort_order, admin, teacher, parent, columns, allow_teacher_modify) FROM stdin;
1	General Info	1	Y	Y	\N	\N	\N
\.


--
-- Data for Name: user_fields; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY user_fields (id, type, search, select_options, category_id, system_field, default_selection, log_field1_title, log_field2_title, log_field3_title, log_field4_title, log_field5_title, log_field6_title, log_field7_title, log_field8_title, log_field9_title, sort_order, required, max_length, select_option_codes, select_option_default_code, title, application, log_field10_title, log_field11_title, field_edits, log_field1, log_field2, log_field3, log_field4, log_field5, log_field6, log_field7, log_field8, log_field9, log_field10, log_field11, log_field12, log_field13, log_field14, log_field15, log_field16, log_field17, log_field18, log_field19, log_field20, log_field12_title, log_field13_title, log_field14_title, log_field15_title, log_field16_title, log_field17_title, log_field18_title, log_field19_title, log_field20_title, log_field1_sort_order, log_field2_sort_order, log_field3_sort_order, log_field4_sort_order, log_field5_sort_order, log_field6_sort_order, log_field7_sort_order, log_field8_sort_order, log_field9_sort_order, log_field10_sort_order, log_field11_sort_order, log_field12_sort_order, log_field13_sort_order, log_field14_sort_order, log_field15_sort_order, log_field16_sort_order, log_field17_sort_order, log_field18_sort_order, log_field19_sort_order, log_field20_sort_order, use_source, values_field, codes_field, source_table, size) FROM stdin;
40005	text	\N	\N	1	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	\N	\N	\N	\N	Cell phone number for notification	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	1	2	3	4	5	6	7	8	9	10	11	12	13	14	15	16	17	18	19	20	\N	\N	\N	\N	\N
\.


--
-- Data for Name: user_fields_in_cats; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY user_fields_in_cats (field_id, category_id, sort_order) FROM stdin;
\.


--
-- Data for Name: user_in_delivery_group; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY user_in_delivery_group (delivery_group_id, user_id) FROM stdin;
\.


--
-- Data for Name: user_in_messages; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY user_in_messages (id, message_id, incoming, outcoming, from_user, to_user) FROM stdin;
\.


--
-- Data for Name: user_lf_data; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY user_lf_data (id, user_field_id, user_id, school_id, modified_date, log_field1, log_field2, log_field3, log_field4, log_field5, log_field6, log_field7, log_field8, log_field9, log_field10, log_field11, log_field12, log_field13, log_field14, log_field15, log_field16, log_field17, log_field18, log_field19, log_field20, log_date, log_select, log_select2, log_text1) FROM stdin;
\.


--
-- Data for Name: user_messages; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY user_messages (id, title, content, send_date, new_message) FROM stdin;
\.


--
-- Data for Name: user_profiles; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY user_profiles (id, profile, title, type) FROM stdin;
1	admin	System Administrator	\N
2	teacher	Arthur W Tigney, Jr.	\N
\.


--
-- Data for Name: user_settings; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY user_settings (username, modname, viewer, editor) FROM stdin;
\.


--
-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY users (school_year, user_id, current_school_id, first_name, last_name, middle_name, username, password, phone, email, profile, homeroom, rollover_id, schools, profile_id, last_note_seen, cfield_40001, cfield_40002, title, cfield_40003, last_login, failed_login, force_password_change, cfield_40004, cfield_188, cfield_189, cfield_190, cfield_191, cfield_192, cfield_194, cfield_195, last_updated_user, last_updated_date, cfield_40005) FROM stdin;
2007	4	\N	Arthur	Tigney	W	atigney	ATigney	\N	\N	teacher	\N	\N	,1,	\N	\N	\N	\N	\N	\N	\N	\N	Y	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	5204400952
\N	1	1	School	Administrator	\N	admin	Pidc12	\N	\N	admin	\N	\N	\N	1	\N	\N	\N	\N	\N	2011-11-30 04:44:45	\N	N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N
\.


--
-- Data for Name: year_grade_report; Type: TABLE DATA; Schema: public; Owner: pidc
--

COPY year_grade_report (grade_id, value1, value2, value3, value4, value5) FROM stdin;
\.


--
-- Name: assignment_config_pkey; Type: CONSTRAINT; Schema: public; Owner: pidc; Tablespace: 
--

ALTER TABLE ONLY assignment_config
    ADD CONSTRAINT assignment_config_pkey PRIMARY KEY (assignment_id);


--
-- Name: assignment_type_config_pkey; Type: CONSTRAINT; Schema: public; Owner: pidc; Tablespace: 
--

ALTER TABLE ONLY assignment_type_config
    ADD CONSTRAINT assignment_type_config_pkey PRIMARY KEY (assignment_type_id);


--
-- Name: mdl_adodlogs_id_pk; Type: CONSTRAINT; Schema: public; Owner: pidc; Tablespace: 
--

ALTER TABLE ONLY adodb_logsql
    ADD CONSTRAINT mdl_adodlogs_id_pk PRIMARY KEY (id);


--
-- Name: activity_courses_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX activity_courses_ind1 ON activity_courses USING btree (school_id, school_year);


--
-- Name: activity_courses_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX activity_courses_pkey ON activity_courses USING btree (id);


--
-- Name: address_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX address_ind1 ON address USING btree (lower((address)::text));


--
-- Name: address_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX address_ind2 ON address USING btree (lower((city)::text));


--
-- Name: address_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX address_ind3 ON address USING btree (lower((state)::text));


--
-- Name: address_ind4; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX address_ind4 ON address USING btree (zipcode, plus4);


--
-- Name: address_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX address_pkey ON address USING btree (address_id);


--
-- Name: attendance_code_cats_settings_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX attendance_code_cats_settings_ind1 ON attendance_code_cats_settings USING btree (id);


--
-- Name: attendance_code_cats_settings_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX attendance_code_cats_settings_ind2 ON attendance_code_cats_settings USING btree (school_year, school_id);


--
-- Name: attendance_code_cats_settings_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX attendance_code_cats_settings_pkey ON attendance_code_cats_settings USING btree (id);


--
-- Name: attendance_codes_settings_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX attendance_codes_settings_ind2 ON attendance_codes_settings USING btree (school_year, school_id);


--
-- Name: attendance_codes_settings_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX attendance_codes_settings_ind3 ON attendance_codes_settings USING btree (short_name);


--
-- Name: attendance_codes_settings_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX attendance_codes_settings_pkey ON attendance_codes_settings USING btree (id);


--
-- Name: attendance_teacher_filled_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX attendance_teacher_filled_pkey ON attendance_teacher_filled USING btree (user_id, school_date, school_period_id);


--
-- Name: billing_student_fees_categories_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX billing_student_fees_categories_pkey ON billing_student_fees_categories USING btree (id);


--
-- Name: billing_student_fees_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX billing_student_fees_ind1 ON billing_student_fees_old USING btree (category_id);


--
-- Name: billing_student_fees_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX billing_student_fees_ind2 ON billing_student_fees_old USING btree (amount);


--
-- Name: billing_student_fees_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX billing_student_fees_ind3 ON billing_student_fees_old USING btree (waived_fee_id);


--
-- Name: billing_student_fees_old_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX billing_student_fees_old_pkey ON billing_student_fees_old USING btree (id);


--
-- Name: billing_student_fees_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX billing_student_fees_pkey ON billing_student_fees USING btree (id);


--
-- Name: billing_student_payments_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX billing_student_payments_ind1 ON billing_student_payments USING btree (student_id);


--
-- Name: billing_student_payments_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX billing_student_payments_ind2 ON billing_student_payments USING btree (amount);


--
-- Name: billing_student_payments_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX billing_student_payments_ind3 ON billing_student_payments USING btree (refunded_payment_id);


--
-- Name: billing_student_payments_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX billing_student_payments_pkey ON billing_student_payments USING btree (id);


--
-- Name: cfield_desc_ind; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX cfield_desc_ind ON student_fields USING btree (id);


--
-- Name: cfield_desc_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX cfield_desc_ind2 ON student_fields USING btree (type);


--
-- Name: cfield_user_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX cfield_user_ind1 ON users USING btree (cfield_40003);


--
-- Name: course_credits_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX course_credits_pkey ON course_credits USING btree (course_id, course_credit_title);


--
-- Name: course_sections_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX course_sections_ind1 ON course_sections USING btree (school_year);


--
-- Name: course_sections_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX course_sections_ind2 ON course_sections USING btree (course_id, course_credit_title, school_year, school_id);


--
-- Name: course_sections_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX course_sections_ind3 ON course_sections USING btree (course_section_id);


--
-- Name: course_sections_ind4; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX course_sections_ind4 ON course_sections USING btree (school_period_id);


--
-- Name: course_sections_ind5; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX course_sections_ind5 ON course_sections USING btree (parent_id);


--
-- Name: course_sections_ind6; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX course_sections_ind6 ON course_sections USING btree (teacher_id);


--
-- Name: course_sections_ind7; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX course_sections_ind7 ON course_sections USING btree (days);


--
-- Name: course_sections_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX course_sections_pkey ON course_sections USING btree (course_section_id);


--
-- Name: course_subjects_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX course_subjects_ind1 ON course_subjects USING btree (school_year, school_id, subject_id);


--
-- Name: course_subjects_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX course_subjects_pkey ON course_subjects USING btree (subject_id);


--
-- Name: courses_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX courses_ind1 ON courses USING btree (course_id, school_year);


--
-- Name: courses_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX courses_ind2 ON courses USING btree (subject_id);


--
-- Name: courses_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX courses_pkey ON courses USING btree (course_id);


--
-- Name: delyvery_groups_ind; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX delyvery_groups_ind ON delivery_group USING btree (id);


--
-- Name: discipline_custom_fields_asg_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX discipline_custom_fields_asg_pkey ON discipline_custom_fields_asg USING btree (id);


--
-- Name: discipline_report_fields_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX discipline_report_fields_pkey ON discipline_report_fields USING btree (id);


--
-- Name: grades_card_comments_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX grades_card_comments_ind1 ON grades_card_comments USING btree (school_year, school_id);


--
-- Name: grades_card_comments_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX grades_card_comments_pkey ON grades_card_comments USING btree (id);


--
-- Name: grades_card_evaluation_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX grades_card_evaluation_ind1 ON grades_card_evaluation USING btree (school_year, school_id, subject_id, course_id, course_credit_title);


--
-- Name: grades_card_evaluation_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX grades_card_evaluation_pkey ON grades_card_evaluation USING btree (id);


--
-- Name: grades_card_settings_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX grades_card_settings_ind1 ON grades_card_settings USING btree (school_year, school_id);


--
-- Name: grades_card_settings_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX grades_card_settings_pkey ON grades_card_settings USING btree (id);


--
-- Name: grades_card_tests_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX grades_card_tests_pkey ON grades_card_tests USING btree (id);


--
-- Name: grades_card_types_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX grades_card_types_pkey ON grades_card_types USING btree (id);


--
-- Name: graduation_req_subjects_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX graduation_req_subjects_pkey ON graduation_req_subjects USING btree (id);


--
-- Name: graduation_requirements_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX graduation_requirements_pkey ON graduation_requirements USING btree (id);


--
-- Name: groups_ind; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX groups_ind ON school_groups USING btree (id);


--
-- Name: groups_title_ind; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX groups_title_ind ON school_group_titles USING btree (id);


--
-- Name: lh_templates_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX lh_templates_pkey ON lh_templates USING btree (id);


--
-- Name: lunch_period_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX lunch_period_ind1 ON lunch_period USING btree (course_section_id, school_date, table_name);


--
-- Name: markbook_assignment_types_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX markbook_assignment_types_ind1 ON markbook_assignment_types USING btree (user_id, course_id);


--
-- Name: markbook_assignment_types_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX markbook_assignment_types_pkey ON markbook_assignment_types USING btree (assignment_type_id);


--
-- Name: markbook_assignments_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX markbook_assignments_ind1 ON markbook_assignments USING btree (user_id);


--
-- Name: markbook_assignments_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX markbook_assignments_ind2 ON markbook_assignments USING btree (course_id);


--
-- Name: markbook_assignments_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX markbook_assignments_ind3 ON markbook_assignments USING btree (assignment_type_id);


--
-- Name: markbook_assignments_ind4; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX markbook_assignments_ind4 ON markbook_assignments USING btree (school_term_id);


--
-- Name: markbook_assignments_ind5; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX markbook_assignments_ind5 ON markbook_assignments USING btree (course_section_id);


--
-- Name: markbook_assignments_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX markbook_assignments_pkey ON markbook_assignments USING btree (assignment_id);


--
-- Name: name; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX name ON students USING btree (last_name, first_name, middle_name);


--
-- Name: portal_messages_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX portal_messages_pkey ON portal_messages USING btree (id);


--
-- Name: profile_settings_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX profile_settings_ind1 ON profile_settings USING btree (profile_id);


--
-- Name: profile_settings_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX profile_settings_ind2 ON profile_settings USING btree (viewer);


--
-- Name: profile_settings_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX profile_settings_ind3 ON profile_settings USING btree (editor);


--
-- Name: program_uploaded_files_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX program_uploaded_files_pkey ON program_uploaded_files USING btree (id);


--
-- Name: relations_meets_2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX relations_meets_2 ON students_in_sr USING btree (person_id);


--
-- Name: relations_meets_6; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX relations_meets_6 ON students_in_sr USING btree (custody, emergency);


--
-- Name: resbase_categories_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX resbase_categories_pkey ON resbase_categories USING btree (id);


--
-- Name: resbase_events_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX resbase_events_pkey ON resbase_events USING btree (id);


--
-- Name: resbase_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX resbase_pkey ON resbase USING btree (id);


--
-- Name: saved_info_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX saved_info_pkey ON saved_info USING btree (id);


--
-- Name: school_calendar_days_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX school_calendar_days_ind1 ON school_calendar_days USING btree (calendar_id);


--
-- Name: school_calendar_days_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX school_calendar_days_pkey ON school_calendar_days USING btree (school_year, school_id, school_date, calendar_id);


--
-- Name: school_calendar_events_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX school_calendar_events_pkey ON school_calendar_events USING btree (id);


--
-- Name: school_calendars_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX school_calendars_pkey ON school_calendars USING btree (calendar_id);


--
-- Name: school_classlevels_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX school_classlevels_ind1 ON school_classlevels USING btree (school_id);


--
-- Name: school_classlevels_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX school_classlevels_pkey ON school_classlevels USING btree (id);


--
-- Name: school_periods_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX school_periods_ind1 ON school_periods USING btree (school_period_id, school_year);


--
-- Name: school_periods_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX school_periods_pkey ON school_periods USING btree (school_period_id);


--
-- Name: school_quarters_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX school_quarters_ind1 ON school_quarters USING btree (semester_id);


--
-- Name: school_quarters_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX school_quarters_ind2 ON school_quarters USING btree (school_year, school_id, start_date, end_date);


--
-- Name: school_quarters_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX school_quarters_pkey ON school_quarters USING btree (school_term_id);


--
-- Name: school_semesters_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX school_semesters_ind2 ON school_semesters USING btree (school_year, school_id, start_date, end_date);


--
-- Name: school_semesters_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX school_semesters_pkey ON school_semesters USING btree (school_term_id);


--
-- Name: school_weeks_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX school_weeks_ind1 ON school_weeks USING btree (quarter_id);


--
-- Name: school_weeks_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX school_weeks_ind2 ON school_weeks USING btree (school_year, school_id, start_date, end_date);


--
-- Name: school_weeks_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX school_weeks_pkey ON school_weeks USING btree (school_term_id);


--
-- Name: school_years_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX school_years_ind1 ON school_years USING btree (school_year);


--
-- Name: school_years_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX school_years_pkey ON school_years USING btree (school_term_id);


--
-- Name: schools_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX schools_ind1 ON schools USING btree (school_year);


--
-- Name: schools_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX schools_pkey ON schools USING btree (id);


--
-- Name: schoolscfield_ind10; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX schoolscfield_ind10 ON schools USING btree (lower((cfield_10)::text));


--
-- Name: schoolscfield_ind4; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX schoolscfield_ind4 ON schools USING btree (lower((cfield_4)::text));


--
-- Name: schoolscfield_ind54; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX schoolscfield_ind54 ON schools USING btree (lower((cfield_54)::text));


--
-- Name: schoolscfield_ind6; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX schoolscfield_ind6 ON schools USING btree (lower((cfield_6)::text));


--
-- Name: schoolscfield_ind8; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX schoolscfield_ind8 ON schools USING btree (lower((cfield_8)::text));


--
-- Name: schoolscfield_ind9; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX schoolscfield_ind9 ON schools USING btree (lower((cfield_9)::text));


--
-- Name: stu_addr_meets_2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX stu_addr_meets_2 ON students_in_address USING btree (address_id);


--
-- Name: student_activities_history_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_activities_history_ind1 ON student_activities_history USING btree (student_id);


--
-- Name: student_attendance_days_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_attendance_days_ind1 ON student_attendance_days USING btree (school_date);


--
-- Name: student_attendance_days_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_attendance_days_ind2 ON student_attendance_days USING btree (daily_code);


--
-- Name: student_attendance_days_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_attendance_days_pkey ON student_attendance_days USING btree (student_id, school_date);


--
-- Name: student_attendance_periods_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_attendance_periods_ind1 ON student_attendance_periods USING btree (student_id);


--
-- Name: student_attendance_periods_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_attendance_periods_ind2 ON student_attendance_periods USING btree (school_period_id);


--
-- Name: student_attendance_periods_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_attendance_periods_ind3 ON student_attendance_periods USING btree (attendance_code);


--
-- Name: student_attendance_periods_ind4; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_attendance_periods_ind4 ON student_attendance_periods USING btree (school_date);


--
-- Name: student_attendance_periods_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_attendance_periods_pkey ON student_attendance_periods USING btree (student_id, school_date, school_period_id);


--
-- Name: student_discipline_incidents_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_incidents_ind1 ON student_discipline_incidents USING btree (school_year);


--
-- Name: student_discipline_incidents_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_discipline_incidents_pkey ON student_discipline_incidents USING btree (id);


--
-- Name: student_discipline_incidentscfield_ind214; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_incidentscfield_ind214 ON student_discipline_incidents USING btree (lower((cfield_214)::text));


--
-- Name: student_discipline_incidentscfield_ind215; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_incidentscfield_ind215 ON student_discipline_incidents USING btree (cfield_215);


--
-- Name: student_discipline_incidentscfield_ind216; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_incidentscfield_ind216 ON student_discipline_incidents USING btree (lower((cfield_216)::text));


--
-- Name: student_discipline_incidentscfield_ind217; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_incidentscfield_ind217 ON student_discipline_incidents USING btree (lower((cfield_217)::text));


--
-- Name: student_discipline_incidentscfield_ind218; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_incidentscfield_ind218 ON student_discipline_incidents USING btree (cfield_218);


--
-- Name: student_discipline_incidentscfield_ind219; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_incidentscfield_ind219 ON student_discipline_incidents USING btree (lower((cfield_219)::text));


--
-- Name: student_discipline_incidentscfield_ind220; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_incidentscfield_ind220 ON student_discipline_incidents USING btree (cfield_220);


--
-- Name: student_discipline_incidentscfield_ind221; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_incidentscfield_ind221 ON student_discipline_incidents USING btree (cfield_221);


--
-- Name: student_discipline_reports_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_reports_ind1 ON student_discipline_reports USING btree (category_1);


--
-- Name: student_discipline_reports_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_reports_ind2 ON student_discipline_reports USING btree (category_2);


--
-- Name: student_discipline_reports_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_reports_ind3 ON student_discipline_reports USING btree (category_3);


--
-- Name: student_discipline_reports_ind4; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_reports_ind4 ON student_discipline_reports USING btree (category_4);


--
-- Name: student_discipline_reports_ind6; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_discipline_reports_ind6 ON student_discipline_reports USING btree (category_6);


--
-- Name: student_discipline_reports_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_discipline_reports_pkey ON student_discipline_reports USING btree (id);


--
-- Name: student_emails_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_emails_pkey ON student_emails USING btree (id);


--
-- Name: student_emails_processing_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_emails_processing_ind1 ON student_emails_processing USING btree (trigger_id);


--
-- Name: student_field_categories_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_field_categories_pkey ON student_field_categories USING btree (id);


--
-- Name: student_fields_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_fields_ind3 ON student_fields USING btree (category_id);


--
-- Name: student_fields_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_fields_pkey ON student_fields USING btree (id);


--
-- Name: student_gpa_progress_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_gpa_progress_ind1 ON student_gpa_progress USING btree (school_term_id, student_id);


--
-- Name: student_gpa_totals_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_gpa_totals_ind1 ON student_gpa_totals USING btree (student_id);


--
-- Name: student_gpa_totals_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_gpa_totals_ind2 ON student_gpa_totals USING btree (school_term_id);


--
-- Name: student_gpa_totals_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_gpa_totals_ind3 ON student_gpa_totals USING btree (mp);


--
-- Name: student_grades_card_evaluations_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_grades_card_evaluations_ind1 ON student_grades_card_evaluations USING btree (school_year);


--
-- Name: student_grades_card_evaluations_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_grades_card_evaluations_ind2 ON student_grades_card_evaluations USING btree (student_id);


--
-- Name: student_grades_card_evaluations_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_grades_card_evaluations_ind3 ON student_grades_card_evaluations USING btree (school_term_id);


--
-- Name: student_grades_card_evaluations_ind4; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_grades_card_evaluations_ind4 ON student_grades_card_evaluations USING btree (course_section_id);


--
-- Name: student_grades_card_evaluations_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_grades_card_evaluations_pkey ON student_grades_card_evaluations USING btree (id);


--
-- Name: student_grades_card_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_grades_card_ind1 ON student_grades_card USING btree (school_id);


--
-- Name: student_grades_card_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_grades_card_ind2 ON student_grades_card USING btree (school_year, student_id, course_section_id, school_term_id);


--
-- Name: student_grades_card_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_grades_card_pkey ON student_grades_card USING btree (id);


--
-- Name: student_lf_data_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_lf_data_ind1 ON student_lf_data USING btree (student_field_id);


--
-- Name: student_lf_data_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_lf_data_ind2 ON student_lf_data USING btree (student_id);


--
-- Name: student_lf_data_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_lf_data_pkey ON student_lf_data USING btree (id);


--
-- Name: student_markbook_grades_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_markbook_grades_ind1 ON student_markbook_grades USING btree (assignment_id);


--
-- Name: student_markbook_grades_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_markbook_grades_ind2 ON student_markbook_grades USING btree (course_section_id);


--
-- Name: student_markbook_grades_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_markbook_grades_pkey ON student_markbook_grades USING btree (student_id, assignment_id, course_section_id);


--
-- Name: student_medical_alerts_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_medical_alerts_ind1 ON student_medical_alerts USING btree (student_id);


--
-- Name: student_medical_alerts_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_medical_alerts_pkey ON student_medical_alerts USING btree (id);


--
-- Name: student_medical_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_medical_ind1 ON student_medical USING btree (student_id);


--
-- Name: student_medical_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_medical_pkey ON student_medical USING btree (id);


--
-- Name: student_medical_visits_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_medical_visits_ind1 ON student_medical_visits USING btree (student_id);


--
-- Name: student_medical_visits_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_medical_visits_pkey ON student_medical_visits USING btree (id);


--
-- Name: student_registration_1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_registration_1 ON student_registration USING btree (student_id, enrollment_code);


--
-- Name: student_registration_2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_registration_2 ON student_registration USING btree (classlevel_id);


--
-- Name: student_registration_3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_registration_3 ON student_registration USING btree (school_year, student_id, school_id, classlevel_id);


--
-- Name: student_registration_6; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_registration_6 ON student_registration USING btree (start_date, end_date);


--
-- Name: student_registration_7; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_registration_7 ON student_registration USING btree (school_id);


--
-- Name: student_registration_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_registration_pkey ON student_registration USING btree (id);


--
-- Name: student_registration_settings_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_registration_settings_pkey ON student_registration_settings USING btree (id);


--
-- Name: student_relations_1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_relations_1 ON student_relations USING btree (last_name, first_name);


--
-- Name: student_relations_3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_relations_3 ON student_relations USING btree (person_id, last_name, first_name, middle_name);


--
-- Name: student_relations_in_contacts_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_relations_in_contacts_ind1 ON student_relations_in_contacts USING btree (person_id);


--
-- Name: student_relations_in_contacts_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_relations_in_contacts_ind2 ON student_relations_in_contacts USING btree (lower((title)::text));


--
-- Name: student_relations_in_contacts_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_relations_in_contacts_pkey ON student_relations_in_contacts USING btree (id);


--
-- Name: student_relations_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_relations_pkey ON student_relations USING btree (person_id);


--
-- Name: student_report_card_grade_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_report_card_grade_ind3 ON student_grades_card USING btree (school_term_id);


--
-- Name: student_report_card_grade_ind4; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_report_card_grade_ind4 ON student_grades_card USING btree (student_id);


--
-- Name: student_schedule_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_ind1 ON student_schedule USING btree (course_id, course_credit_title);


--
-- Name: student_schedule_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_ind2 ON student_schedule USING btree (course_section_id);


--
-- Name: student_schedule_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_ind3 ON student_schedule USING btree (student_id);


--
-- Name: student_schedule_ind4; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_ind4 ON student_schedule USING btree (school_year, school_id);


--
-- Name: student_schedule_ind5; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_ind5 ON student_schedule USING btree (school_term_id);


--
-- Name: student_schedule_ind6; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_ind6 ON student_schedule USING btree (start_date, end_date);


--
-- Name: student_schedule_ind7; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_ind7 ON student_schedule USING btree (id);


--
-- Name: student_schedule_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_schedule_pkey ON student_schedule USING btree (school_year, student_id, course_id, course_credit_title, course_section_id, start_date);


--
-- Name: student_schedule_requests_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_requests_ind1 ON student_schedule_requests USING btree (student_id, course_id, course_credit_title, school_year, school_id);


--
-- Name: student_schedule_requests_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_requests_ind2 ON student_schedule_requests USING btree (school_year, school_id);


--
-- Name: student_schedule_requests_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_requests_ind3 ON student_schedule_requests USING btree (course_id, course_credit_title, school_year, school_id);


--
-- Name: student_schedule_requests_ind4; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_requests_ind4 ON student_schedule_requests USING btree (with_teacher_id);


--
-- Name: student_schedule_requests_ind5; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_requests_ind5 ON student_schedule_requests USING btree (not_teacher_id);


--
-- Name: student_schedule_requests_ind6; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_requests_ind6 ON student_schedule_requests USING btree (with_school_period_id);


--
-- Name: student_schedule_requests_ind7; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_requests_ind7 ON student_schedule_requests USING btree (not_school_period_id);


--
-- Name: student_schedule_requests_ind8; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_schedule_requests_ind8 ON student_schedule_requests USING btree (request_id);


--
-- Name: student_schedule_requests_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_schedule_requests_pkey ON student_schedule_requests USING btree (request_id);


--
-- Name: student_suitability_grades_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX student_suitability_grades_ind1 ON student_suitability_grades USING btree (student_id, course_section_id, school_date);


--
-- Name: student_term_comments_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX student_term_comments_pkey ON student_term_comments USING btree (student_id, school_year, school_term_id);


--
-- Name: students_in_address_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX students_in_address_ind1 ON students_in_address USING btree (student_id);


--
-- Name: students_in_address_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX students_in_address_pkey ON students_in_address USING btree (id);


--
-- Name: students_in_sr_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX students_in_sr_ind1 ON students_in_sr USING btree (student_id);


--
-- Name: students_in_sr_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX students_in_sr_ind2 ON students_in_sr USING btree (lower((student_relation)::text));


--
-- Name: students_in_sr_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX students_in_sr_ind3 ON students_in_sr USING btree (address_id);


--
-- Name: students_in_sr_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX students_in_sr_pkey ON students_in_sr USING btree (id);


--
-- Name: students_in_users_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX students_in_users_pkey ON students_in_users USING btree (student_id, user_id);


--
-- Name: students_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX students_ind1 ON students USING btree (lower((last_name)::text));


--
-- Name: students_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX students_ind2 ON students USING btree (lower((first_name)::text));


--
-- Name: students_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX students_pkey ON students USING btree (student_id);


--
-- Name: studentscfield_ind10; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind10 ON students USING btree (cfield_10);


--
-- Name: studentscfield_ind196; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind196 ON students USING btree (cfield_196);


--
-- Name: studentscfield_ind197; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind197 ON students USING btree (cfield_197);


--
-- Name: studentscfield_ind198; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind198 ON students USING btree (cfield_198);


--
-- Name: studentscfield_ind199; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind199 ON students USING btree (cfield_199);


--
-- Name: studentscfield_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind2 ON students USING btree (lower((cfield_2)::text));


--
-- Name: studentscfield_ind200; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind200 ON students USING btree (cfield_200);


--
-- Name: studentscfield_ind201; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind201 ON students USING btree (lower((cfield_201)::text));


--
-- Name: studentscfield_ind202; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind202 ON students USING btree (lower((cfield_202)::text));


--
-- Name: studentscfield_ind203; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind203 ON students USING btree (lower((cfield_203)::text));


--
-- Name: studentscfield_ind204; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind204 ON students USING btree (cfield_204);


--
-- Name: studentscfield_ind205; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind205 ON students USING btree (lower((cfield_205)::text));


--
-- Name: studentscfield_ind206; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind206 ON students USING btree (lower((cfield_206)::text));


--
-- Name: studentscfield_ind207; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind207 ON students USING btree (lower((cfield_207)::text));


--
-- Name: studentscfield_ind208; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind208 ON students USING btree (cfield_208);


--
-- Name: studentscfield_ind209; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind209 ON students USING btree (cfield_209);


--
-- Name: studentscfield_ind211; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind211 ON students USING btree (cfield_211);


--
-- Name: studentscfield_ind212; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind212 ON students USING btree (cfield_212);


--
-- Name: studentscfield_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind3 ON students USING btree (lower((cfield_3)::text));


--
-- Name: studentscfield_ind4; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind4 ON students USING btree (lower((cfield_4)::text));


--
-- Name: studentscfield_ind5; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind5 ON students USING btree (cfield_5);


--
-- Name: studentscfield_ind6; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind6 ON students USING btree (cfield_6);


--
-- Name: studentscfield_ind7; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind7 ON students USING btree (cfield_7);


--
-- Name: studentscfield_ind8; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind8 ON students USING btree (cfield_8);


--
-- Name: studentscfield_ind9; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX studentscfield_ind9 ON students USING btree (lower((cfield_9)::text));


--
-- Name: suitability_teachers_filled_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX suitability_teachers_filled_pkey ON suitability_teachers_filled USING btree (user_id, school_date, school_period_id);


--
-- Name: sys_c007322; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX sys_c007322 ON students_in_address USING btree (id, student_id, address_id);


--
-- Name: system_config_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX system_config_ind1 ON system_config USING btree (program, school_id, school_year);


--
-- Name: system_user_settings_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX system_user_settings_ind1 ON system_user_settings USING btree (username, program);


--
-- Name: user_field_categories_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX user_field_categories_pkey ON user_field_categories USING btree (id);


--
-- Name: user_fields_ind1; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX user_fields_ind1 ON user_fields USING btree (id);


--
-- Name: user_fields_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX user_fields_pkey ON user_fields USING btree (id);


--
-- Name: user_ind2; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX user_ind2 ON users USING btree (profile);


--
-- Name: user_ind3; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX user_ind3 ON users USING btree (schools);


--
-- Name: user_ind5; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX user_ind5 ON users USING btree (lower((last_name)::text));


--
-- Name: user_ind6; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX user_ind6 ON users USING btree (lower((first_name)::text));


--
-- Name: user_lf_data_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX user_lf_data_pkey ON user_lf_data USING btree (id);


--
-- Name: user_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX user_pkey ON users USING btree (user_id);


--
-- Name: user_profiles_pkey; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE UNIQUE INDEX user_profiles_pkey ON user_profiles USING btree (id);


--
-- Name: userscfield_ind188; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX userscfield_ind188 ON users USING btree (cfield_188);


--
-- Name: userscfield_ind189; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX userscfield_ind189 ON users USING btree (cfield_189);


--
-- Name: userscfield_ind190; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX userscfield_ind190 ON users USING btree (cfield_190);


--
-- Name: userscfield_ind191; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX userscfield_ind191 ON users USING btree (lower((cfield_191)::text));


--
-- Name: userscfield_ind192; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX userscfield_ind192 ON users USING btree (lower((cfield_192)::text));


--
-- Name: userscfield_ind194; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX userscfield_ind194 ON users USING btree (cfield_194);


--
-- Name: userscfield_ind195; Type: INDEX; Schema: public; Owner: pidc; Tablespace: 
--

CREATE INDEX userscfield_ind195 ON users USING btree (cfield_195);


--
-- Name: public; Type: ACL; Schema: -; Owner: postgres
--

REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM postgres;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO PUBLIC;


--
-- PostgreSQL database dump complete
--

