Skip to content

Instantly share code, notes, and snippets.

@dvanderbeek
Last active December 11, 2017 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvanderbeek/b1c55d7d76f9b38f7746a20793f1c0ef to your computer and use it in GitHub Desktop.
Save dvanderbeek/b1c55d7d76f9b38f7746a20793f1c0ef to your computer and use it in GitHub Desktop.
$ mix phx.gen.context Chat Customer customers name:string
$ mix phx.gen.context Chat Agent agents image_url:string slack_user_id:string slack_user_name:string
$ mix phx.gen.context Chat Conversation conversations agent_id:references:agents customer_id:references:customers slack_channel_index:integer
$ mix phx.gen.context Chat Message messages agent_id:references:agents conversation_id:references:conversations text:string
$ mix ecto.migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment