farmbot_os/farmbot_core/priv/asset/migrations/20181019165701_create_point...

22 lines
595 B
Elixir

defmodule Farmbot.Asset.Repo.Migrations.CreatePointsTable do
use Ecto.Migration
def change do
create table("points", primary_key: false) do
add(:local_id, :binary_id, primary_key: true)
add(:id, :id)
add(:meta, :map)
add(:name, :string)
add(:plant_stage, :string)
add(:planted_at, :utc_datetime)
add(:pointer_type, :string)
add(:radius, :float)
add(:x, :float)
add(:y, :float)
add(:z, :float)
add(:monitor, :boolean, default: true)
timestamps(inserted_at: :created_at, type: :utc_datetime)
end
end
end