Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
blockscout/priv/repo/migrations/20180221001948_create_inter...

24 lines
924 B

defmodule Explorer.Repo.Migrations.CreateInternalTransactions do
use Ecto.Migration
def change do
create table(:internal_transactions) do
add :transaction_id, references(:transactions), null: false
add :to_address_id, references(:addresses), null: false
add :from_address_id, references(:addresses), null: false
add :index, :integer, null: false
add :call_type, :string, null: false
add :trace_address, {:array, :integer}, null: false
add :value, :numeric, precision: 100, null: false
add :gas, :numeric, precision: 100, null: false
add :gas_used, :numeric, precision: 100, null: false
add :input, :string
add :output, :string
timestamps null: false
end
create index(:internal_transactions, :transaction_id)
create index(:internal_transactions, :to_address_id)
create index(:internal_transactions, :from_address_id)
end
end