add defaults for channel

This commit is contained in:
Inhji 2023-07-09 19:56:47 +02:00
parent ca5c0ca1dd
commit aaa525267e

View file

@ -14,14 +14,16 @@ defmodule Chiya.Channels.Channel do
:public,
:private,
:unlisted
]
],
default: :private
field :layout, Ecto.Enum,
values: [
:default,
:microblog,
:gallery
]
],
default: :default
many_to_many :notes, Chiya.Notes.Note,
join_through: "channels_notes",