Update nodeinfo
This commit is contained in:
parent
fd15cc089b
commit
49ac2bbe6f
3 changed files with 40 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue