Update nodeinfo

This commit is contained in:
Mirai Kumiko 2025-06-14 18:50:54 +02:00
parent fd15cc089b
commit 49ac2bbe6f
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
3 changed files with 40 additions and 7 deletions

View file

@ -5,6 +5,7 @@ defmodule Nulla.Repo.Migrations.CreateUsers do
create table(:users, primary_key: false) do
add :id, :bigint, primary_key: true
add :username, :string, null: false, unique: true
add :domain, :string, null: false
add :email, :string
add :password, :string
add :is_moderator, :boolean, default: false, null: false
@ -12,7 +13,7 @@ defmodule Nulla.Repo.Migrations.CreateUsers do
add :bio, :text
add :location, :string
add :birthday, :date
add :fields, :map
add :fields, :jsonb, default: "[]", null: false
add :tags, {:array, :string}
add :follow_approval, :boolean, default: false, null: false
add :is_bot, :boolean, default: false, null: false
@ -23,6 +24,7 @@ defmodule Nulla.Repo.Migrations.CreateUsers do
add :public_key, :string, null: false
add :avatar, :string
add :banner, :string
add :last_active_at, :utc_datetime
timestamps(type: :utc_datetime)
end