# Assistance with Schema Mix

**URL:** <https://forum.devtalk.com/t/assistance-with-schema-mix/48215>\
**Category:** Backend Questions/Help\
**Tags:** ecto, elixir, troubleshooting, mix, phoenix\
**Created:** [2 April 2022 18:55 UTC](https://forum.devtalk.com/t/assistance-with-schema-mix/48215 "2022-04-02T18:55:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![AntonRich](https://forum.devtalk.com/user_avatar/forum.devtalk.com/antonrich/32/3165_2.png) [@AntonRich](https://forum.devtalk.com/u/AntonRich)\
**Post date:** [2 April 2022 19:17 UTC](https://forum.devtalk.com/t/assistance-with-schema-mix/48215/3 "2022-04-02T19:17:32Z")

</div>

mix phx.gen.html - a command that will generate Context module and Schema  
[https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.Html.html](https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.Html.html)

while  
mix phx.gen.schema - will generate Schema  
[https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.Schema.html](https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.Schema.html)

P.S. Sorry, posted too early. You already mentioned using mix pxh.gen.schema  
P.P.S I think it’s supposed to be mix phx.gen.schema Delish. **Food** - ‘food’ should be started with a capital latter to indicate a module.

---

_[View the full topic](https://forum.devtalk.com/t/assistance-with-schema-mix/48215)._
