1 defmodule Pleroma.Repo.Migrations.CreateScheduledActivities do
5 create_if_not_exists table(:scheduled_activities) do
6 add(:user_id, references(:users, type: :uuid, on_delete: :delete_all))
7 add(:scheduled_at, :naive_datetime, null: false)
8 add(:params, :map, null: false)
13 create_if_not_exists(index(:scheduled_activities, [:scheduled_at]))
14 create_if_not_exists(index(:scheduled_activities, [:user_id]))