-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unable to get to either add_another_user or add_moar_users update (#154)
actions on user
- Loading branch information
1 parent
afcc7ae
commit 78c9b6c
Showing
2 changed files
with
28 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
defmodule Demo.Accounts.NewUser do | ||
@moduledoc """ | ||
TODO | ||
""" | ||
use Ash.Resource, data_layer: :embedded | ||
|
||
actions do | ||
defaults [:create] | ||
end | ||
|
||
attributes do | ||
uuid_primary_key :id | ||
|
||
attribute :email, :string, allow_nil?: false | ||
attribute :first_name, :string, allow_nil?: false | ||
attribute :last_name, :string, allow_nil?: false | ||
attribute :mobile, :string, allow_nil?: false | ||
attribute :address, :string, allow_nil?: false | ||
end | ||
end |
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