1 defmodule Pleroma.Repo.Migrations.CreateScheduledActivities do
5 create 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(index(:scheduled_activities, [:scheduled_at]))
14 create(index(:scheduled_activities, [:user_id]))