Add featured route

This commit is contained in:
Mirai Kumiko 2025-07-06 09:49:03 +02:00
parent b17e177335
commit f90a7133bc
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
8 changed files with 118 additions and 3 deletions

View file

@ -4,6 +4,7 @@ defmodule Nulla.Repo.Migrations.CreateNotes do
def change do
create table(:notes, primary_key: false) do
add :id, :bigint, primary_key: true
add :ap_id, :string
add :inReplyTo, :string
add :published, :utc_datetime
add :url, :string
@ -13,6 +14,7 @@ defmodule Nulla.Repo.Migrations.CreateNotes do
add :sensitive, :boolean, default: false, null: false
add :content, :string
add :language, :string
add :featured, :boolean, default: false, null: false
add :actor_id, references(:actors, on_delete: :delete_all)
timestamps(type: :utc_datetime)