chore: add migrations to git

This commit is contained in:
2026-05-12 16:00:46 +02:00
parent 68136d1602
commit 25f411a3df
9 changed files with 109 additions and 1 deletions
@@ -0,0 +1,15 @@
defmodule Localiser.Repo.Migrations.CreateSensorCalibrations do
use Ecto.Migration
def change do
create table(:sensor_calibrations) do
add :sensor_id, references(:sensors, on_delete: :delete_all), null: false
add :rssi_ref, :integer, null: false
add :path_loss_exp, :float, null: false
add :calibrated_at, :utc_datetime, null: false
add :inserted_at, :utc_datetime, null: false
end
create index(:sensor_calibrations, [:sensor_id])
end
end