Add all
This commit is contained in:
parent
b35e18cd20
commit
82f55f7afe
80 changed files with 6687 additions and 5 deletions
21
priv/repo/migrations/20250702151805_create_activities.exs
Normal file
21
priv/repo/migrations/20250702151805_create_activities.exs
Normal file
|
@ -0,0 +1,21 @@
|
|||
defmodule Nulla.Repo.Migrations.CreateActivities do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:activities, primary_key: false) do
|
||||
add :id, :bigint, primary_key: true
|
||||
add :ap_id, :string
|
||||
add :type, :string
|
||||
add :actor, :string
|
||||
add :object, :string
|
||||
add :to, {:array, :string}
|
||||
add :cc, {:array, :string}
|
||||
|
||||
timestamps(type: :utc_datetime)
|
||||
end
|
||||
|
||||
create index(:activities, [:ap_id])
|
||||
create index(:activities, [:type])
|
||||
create index(:activities, [:actor])
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue