class ClassImport

Schema Information

Table name: class_imports

id                           :bigint           not null, primary key
academic_year                :integer          not null
changed_record_count         :integer
csv_data                     :text
csv_filename                 :text
csv_removed_at               :datetime
exact_duplicate_record_count :integer
new_record_count             :integer
processed_at                 :datetime
reviewed_at                  :datetime         default([]), not null, is an Array
reviewed_by_user_ids         :bigint           default([]), not null, is an Array
rows_count                   :integer
serialized_errors            :jsonb
status                       :integer          default("pending_import"), not null
year_groups                  :integer          default([]), not null, is an Array
created_at                   :datetime         not null
updated_at                   :datetime         not null
location_id                  :bigint           not null
team_id                      :bigint           not null
uploaded_by_user_id          :bigint           not null

Indexes

index_class_imports_on_location_id          (location_id)
index_class_imports_on_team_id              (team_id)
index_class_imports_on_uploaded_by_user_id  (uploaded_by_user_id)

Foreign Keys

fk_rails_...  (location_id => locations.id)
fk_rails_...  (team_id => teams.id)
fk_rails_...  (uploaded_by_user_id => users.id)