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,33 @@
defmodule Nulla.Repo.Migrations.CreateActors do
use Ecto.Migration
def change do
create table(:actors, primary_key: false) do
add :id, :bigint, primary_key: true
add :type, :string
add :following, :string
add :followers, :string
add :inbox, :string
add :outbox, :string
add :featured, :string
add :featuredTags, :string
add :preferredUsername, :string
add :name, :string
add :summary, :string
add :url, :string
add :manuallyApprovesFollowers, :boolean
add :discoverable, :boolean, default: true
add :indexable, :boolean, default: true
add :published, :utc_datetime
add :memorial, :boolean, default: false
add :publicKey, :map
add :tag, {:array, :map}
add :attachment, {:array, :map}
add :endpoints, :map
add :icon, :map
add :image, :map
add :vcard_bday, :date
add :vcard_Address, :string
end
end
end