Update media_attachment

This commit is contained in:
Mirai Kumiko 2025-06-20 16:46:58 +02:00
parent 4929ce21fd
commit 867f94572d
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
2 changed files with 25 additions and 10 deletions

View file

@ -4,10 +4,13 @@ defmodule Nulla.Repo.Migrations.CreateMediaAttachments do
def change do
create table(:media_attachments, primary_key: false) do
add :id, :bigint, primary_key: true
add :type, :string, null: false
add :mediaType, :string, null: false
add :url, :string, null: false
add :name, :string
add :width, :integer
add :height, :integer
add :note_id, references(:notes, on_delete: :delete_all), null: false
add :file, :string, null: false
add :mime_type, :string
add :description, :string
timestamps(type: :utc_datetime)
end