Refactor and add securities controller

This commit is contained in:
2025-01-28 16:13:39 +01:00
parent 55a5ece466
commit 3df76ec650
16 changed files with 509 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
defmodule Tradex.Repo.Migrations.CreateSecurities do
use Ecto.Migration
def change do
create table(:securities, primary_key: false) do
add :id, :binary_id, primary_key: true
add :name, :string
add :ticker, :string
add :wkn, :string
add :isin, :string
add :expiration_date, :date
add :strike_price, :decimal
timestamps(type: :utc_datetime)
end
end
end