init commit

This commit is contained in:
2024-07-13 15:12:19 -04:00
commit 8668405143
61 changed files with 3123 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
[
import_deps: [:ecto_sql],
inputs: ["*.exs"]
]

View File

@@ -0,0 +1,12 @@
defmodule HereIAm.Repo.Migrations.CreateDevices do
use Ecto.Migration
def change do
create table(:devices) do
add :ip_address, :string
add :audio, :string
timestamps(type: :utc_datetime)
end
end
end

11
priv/repo/seeds.exs Normal file
View File

@@ -0,0 +1,11 @@
# Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# HereIAm.Repo.insert!(%HereIAm.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail if something goes wrong.