Update migrations
This commit is contained in:
parent
50abfe4748
commit
57efda7638
12 changed files with 56 additions and 35 deletions
33
priv/repo/migrations/20250615130714_create_actors.exs
Normal file
33
priv/repo/migrations/20250615130714_create_actors.exs
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue