Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

468 B
Raw Blame
defmodule Plausible.Repo.Migrations.CreateGoogleSearchConsoleIntegration do
  use Ecto.Migration

  def change do
    create table(:google_auth) do
      add :user_id, references(:users), null: false
      add :email, :string, null: false
      add :refresh_token, :string, null: false
      add :access_token, :string, null: false
      add :expires, :naive_datetime, null: false

      timestamps()
    end

    create unique_index(:google_auth, :user_id)
  end
end