mirror of
https://github.com/kevin-DL/phoenix_api_template.git
synced 2026-01-19 21:55:24 +00:00
hopefully done
This commit is contained in:
17
priv/repo/migrations/20230218175046_guardiandb.exs
Normal file
17
priv/repo/migrations/20230218175046_guardiandb.exs
Normal file
@@ -0,0 +1,17 @@
|
||||
defmodule PhoenixApiTemplate.Repo.Migrations.CreateGuardianDBTokensTable do
|
||||
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
|
||||
Reference in New Issue
Block a user