This commit is contained in:
Mirai Kumiko 2025-06-23 09:16:27 +00:00
parent aac9bcb6e4
commit 3f329cf59e
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
13 changed files with 191 additions and 119 deletions

View file

@ -6,14 +6,14 @@ defmodule Nulla.Repo.Migrations.CreateActivities do
add :id, :bigint, primary_key: true
add :ap_id, :string, null: false
add :type, :string, null: false
add :actor_id, references(:actors, type: :bigint, on_delete: :nothing), null: false
add :object, :map, null: false
add :to, {:array, :string}, default: []
add :actor, :string, null: false
add :object, :text, null: false
timestamps()
end
create index(:activities, [:ap_id])
create index(:activities, [:type])
create index(:activities, [:actor_id])
create index(:activities, [:actor])
end
end