1 defmodule Pleroma.Repo.Migrations.CreateMfaTokens do
5 create table(:mfa_tokens) do
6 add(:user_id, references(:users, type: :uuid, on_delete: :delete_all))
7 add(:authorization_id, references(:oauth_authorizations, on_delete: :delete_all))
9 add(:valid_until, :naive_datetime_usec)
14 create(unique_index(:mfa_tokens, :token))