Update migrations

This commit is contained in:
Mirai Kumiko 2025-06-15 19:33:40 +02:00
parent 50abfe4748
commit 57efda7638
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
12 changed files with 56 additions and 35 deletions

View file

@ -0,0 +1,18 @@
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 :type, :string, null: false
add :actor, :string, null: false
add :object, :map, null: false
add :to, {:array, :string}, default: []
timestamps()
end
create index(:activities, [:actor])
create index(:activities, [:type])
end
end