bump_server/lib/bump/senders/sender.ex

19 lines
304 B
Elixir
Raw Permalink Normal View History

defmodule Bump.Senders.Sender do
use Ecto.Schema
import Ecto.Changeset
schema "senders" do
field :sender, :string
field :firebase_token, :string, default: ""
timestamps()
end
def changeset(sender, params) do
sender
|> cast(params, [:sender, :firebase_token])
end
end