2018-10-11 15:37:39 +00:00
|
|
|
defmodule Mobilizon.Repo.Migrations.Guardian.DB do
|
2018-01-13 22:33:03 +00:00
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
|
|
|
create table(:guardian_tokens, primary_key: false) do
|
|
|
|
add(:jti, :string, primary_key: true)
|
|
|
|
add(:aud, :string, primary_key: true)
|
|
|
|
add(:typ, :string)
|
|
|
|
add(:iss, :string)
|
|
|
|
add(:sub, :string)
|
|
|
|
add(:exp, :bigint)
|
|
|
|
add(:jwt, :text)
|
|
|
|
add(:claims, :map)
|
|
|
|
timestamps()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|