-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31bcbfa
commit e1a9a8c
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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}) |