diff --git a/lib/chiya/notes/note.ex b/lib/chiya/notes/note.ex index 27c0e8a..6a49a82 100644 --- a/lib/chiya/notes/note.ex +++ b/lib/chiya/notes/note.ex @@ -5,7 +5,7 @@ defmodule Chiya.Notes.Note do @derive {Jason.Encoder, only: [:id, :name, :content, :slug, :channels]} schema "notes" do field :content, :string - field :kind, Ecto.Enum, values: [:post, :bookmark] + field :kind, Ecto.Enum, values: [:post, :bookmark], default: :post field :name, :string field :published_at, :naive_datetime field :slug, :string