Add Autor schema

This commit is contained in:
Thelonius Kort
2023-03-02 23:12:42 +01:00
parent 3fe4a331ac
commit cbea9450e4
4 changed files with 17 additions and 4 deletions

View File

@ -0,0 +1,13 @@
defmodule Outlook.Public.Autor do
use Ecto.Schema
alias Outlook.Public.Artikel
embedded_schema do
field :name, :string
field :description, :string
field :homepage_name, :string
field :homepage_url, :string
has_many :artikel, Artikel
end
end