Skip to content

Commit

Permalink
Add base resources to seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Nov 28, 2023
1 parent 31bcbfa commit e1a9a8c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions priv/repo/seeds.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,22 @@
#
# mix run priv/repo/seeds.exs
#
alias Radiator.{Accounts, Outline}
alias Radiator.{Accounts, Outline, Podcasts}

{:ok, _user} =
{:ok, _user_bob} =
Accounts.register_user(%{email: "[email protected]", password: "supersupersecret"})

{:ok, _admin} =
Accounts.register_user(%{email: "tim@radiator.de", password: "supersupersecret"})
{:ok, _user_jim} =
Accounts.register_user(%{email: "jim@radiator.de", password: "supersupersecret"})

{:ok, _node} =
Outline.create_node(%{content: "This is a node"})

{:ok, station} =
Podcasts.create_station(%{title: "Podcast networ"})

{:ok, podcast} =
Podcasts.create_podcast(%{title: "Tech Weekly", station: station})

{:ok, _episode} =
Podcasts.create_episode(%{title: "42", podcast: podcast})

0 comments on commit e1a9a8c

Please sign in to comment.