batch_history

1727 rows


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id int4 10 √ null
curation_feedback.batch_history_id curation_feedback_batch_history_id_05e74a52_fk_batch_history_id R
batch_type varchar 10 null
sesar_code varchar 10 null
sample_count int4 10 √ null
upload_time timestamptz 35,6 null
processed_time timestamptz 35,6 √ null
filename varchar 64 √ null
deleted_time timestamptz 35,6 √ null
processed_by int4 10 √ null
sesar_user.id batch_history_processed_by_37feae3a_fk_sesar_user_sesar_user_id R
upload_by int4 10 null
sesar_user.id batch_history_upload_by_a6bbf7d5_fk_sesar_user_sesar_user_id R
batch_template_id int8 19 √ null
batch_template.id batch_history_batch_template_id_8ceda8c4_fk_batch_template_id R
team_owner_id int8 19 √ null
team.id batch_history_team_owner_id_3cbdb12e_fk_team_id R
user_owner_id int4 10 √ null
sesar_user.id batch_history_user_owner_id_cc508e42_fk_sesar_user_id R

Indexes

Constraint Name Type Sort Column(s)
batch_history_pkey Primary key Asc id
batch_hist_type_processed_idx Performance Asc/Asc batch_type + processed_time
batch_hist_type_upload_idx Performance Asc/Asc batch_type + upload_time
batch_histo_team_ow_98838b_idx Performance Asc team_owner_id
batch_histo_user_ow_2b4279_idx Performance Asc user_owner_id
batch_history_batch_template_id_8ceda8c4 Performance Asc batch_template_id
batch_history_processed_by_37feae3a Performance Asc processed_by
batch_history_team_owner_id_3cbdb12e Performance Asc team_owner_id
batch_history_upload_by_a6bbf7d5 Performance Asc upload_by
batch_history_user_owner_id_cc508e42 Performance Asc user_owner_id

Check Constraints

Constraint Name Constraint
batch_history_exactly_one_owner (((team_owner_id IS NULL) AND (user_owner_id IS NOT NULL)) OR ((team_owner_id IS NOT NULL) AND (user_owner_id IS NULL)))

Relationships