sloanelybutsurely.com/lib/schema/post.ex

12 lines
215 B
Elixir

defmodule Schema.Post do
@moduledoc false
use Ecto.Schema
@primary_key {:id, :binary_id, autogenerate: true}
schema "posts" do
field :title, :string
field :body, :string
timestamps()
end
end