add ammo type stuff

This commit is contained in:
2022-02-05 16:22:02 -05:00
parent 4e3292f60b
commit 6f6402cf17
7 changed files with 302 additions and 108 deletions

View File

@ -6,10 +6,23 @@ defmodule Cannery.Repo.Migrations.CreateAmmoTypes do
add :id, :binary_id, primary_key: true
add :name, :string
add :desc, :text
add :case_material, :string
# https://en.wikipedia.org/wiki/Bullet#Abbreviations
add :bullet_type, :string
add :grain, :integer
add :bullet_core, :string
add :cartridge, :string
add :caliber, :string
add :case_material, :string
add :grains, :integer
add :pressure, :string
add :rimfire, :boolean, null: false, default: false
add :tracer, :boolean, null: false, default: false
add :incendiary, :boolean, null: false, default: false
add :blank, :boolean, null: false, default: false
add :corrosive, :boolean, null: false, default: false
add :manufacturer, :string
add :sku, :string
timestamps()
end