Starting to get things rolling

This commit is contained in:
Adam Mohammed
2023-05-30 14:19:38 -04:00
parent 1e6a5fa8a9
commit 28e381f1dc
6 changed files with 43 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
defmodule ResourceOwner.Application do
use Application
@impl true
def start(_type, _args) do
children = [
ResourceOwner.Repo,
]
opts = [strategy: :one_for_one, name: ResourceOwner.Supervisor]
Supervisor.start_link(children, opts)
end
end

View File

@@ -0,0 +1,7 @@
defmodule ResourceOwner.Organization do
use Ecto.Schema
schema "organizations" do
field :name, :string
end
end

View File

@@ -0,0 +1,5 @@
defmodule ResourceOwner.Repo do
use Ecto.Repo,
otp_app: :resource_owner,
adapter: Ecto.Adapters.Postgres
end