Commit d952139d authored by Miguel Basticioto's avatar Miguel Basticioto
Browse files

feat: tabela de devices

parent 26748cc8
......@@ -20,4 +20,20 @@ defmodule NotificationDispatcher.Migration do
create index(:notification_messages, [:notification_type])
def create devices() do
create table(:devices, primary_key: false) do
add :id, :uuid, primary_key: true
add :user_id, references(:users, type: :uuid)
add :device_token, :text, null: false
add :os, :integer
create index(:devices, :user_id)
create unique_index(:devices, :device_token)
create index(:devices, :os)
\ No newline at end of file
......@@ -5,7 +5,7 @@ defmodule NotificationDispatcher.MixProject do
def project do
app: :notification_dispatcher,
version: "0.1.0",
version: "0.1.1",
elixir: "~> 1.10.2",
start_permanent: Mix.env() == :prod,
deps: deps(),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment