Update
This commit is contained in:
parent
aac9bcb6e4
commit
3f329cf59e
13 changed files with 191 additions and 119 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue