class Batch

Schema Information

Table name: batches

id          :bigint           not null, primary key
archived_at :datetime
expiry      :date
number      :string           not null
created_at  :datetime         not null
updated_at  :datetime         not null
team_id     :bigint
vaccine_id  :bigint           not null

Indexes

index_batches_on_team_id_and_number_and_expiry_and_vaccine_id  (team_id,number,expiry,vaccine_id) UNIQUE
index_batches_on_vaccine_id                                    (vaccine_id)

Foreign Keys

fk_rails_...  (team_id => teams.id)
fk_rails_...  (vaccine_id => vaccines.id)