implement step 2 stuff

This commit is contained in:
2021-12-04 16:57:47 -05:00
parent d32dc8c2cb
commit 5de53e23ea
14 changed files with 121 additions and 20 deletions

View File

@@ -36,6 +36,7 @@ defmodule Entendu.Links do
"""
def get_link!(id), do: Repo.get!(Link, id)
def get_link(id), do: Repo.get(Link, id)
@doc """
Creates a link.

View File

@@ -11,6 +11,8 @@ defmodule Entendu.Links.Link do
field :filetype, :string
field :text_content, :string
field :file_content, :string
field :recipient, :string
field :service, :string
timestamps()
end
@@ -24,7 +26,9 @@ defmodule Entendu.Links.Link do
:filename,
:filetype,
:text_content,
:file_content
:file_content,
:recipient,
:service
])
end
end