This repository has been archived on 2022-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
dedibox_prices/priv/repo/migrations/20220811200636_create_offer...

25 lines
615 B
Elixir

defmodule DediboxPrices.Repo.Migrations.CreateOffers do
use Ecto.Migration
def change do
create table(:offers, primary_key: false) do
add(:id, :binary_id, null: false, primary_key: true)
add :name, :string, null: false
add :tag, :text, null: false
add :cpu, :string
add :memory, :integer
add :disk_amount, :integer
add :disk_size, :integer
add :disk_properties, :string
add :bandwith, :integer
add :rpn, :string
add :disponibility, :integer
add :price, :float
timestamps()
end
create index(:offers, [:name])
end
end