add more ammo type fields, filter index columns

This commit is contained in:
2022-02-15 22:33:36 -05:00
parent f30acd7fe2
commit 2ac379adaf
11 changed files with 192 additions and 108 deletions

View File

@ -13,6 +13,10 @@ defmodule Cannery.Repo.Migrations.CreateAmmoTypes do
add :cartridge, :string
add :caliber, :string
add :case_material, :string
add :jacket_type, :string
add :muzzle_velocity, :integer
add :powder_type, :string
add :powder_grains_per_charge, :integer
add :grains, :integer
add :pressure, :string
add :primer_type, :string
@ -23,7 +27,7 @@ defmodule Cannery.Repo.Migrations.CreateAmmoTypes do
add :corrosive, :boolean, null: false, default: false
add :manufacturer, :string
add :sku, :string
add :upc, :string
add :user_id, references(:users, on_delete: :delete_all, type: :binary_id)