Add snowflake IDs

This commit is contained in:
Mirai Kumiko 2025-06-13 15:10:17 +02:00
parent 4a890a39f4
commit 44b484de21
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
24 changed files with 116 additions and 14 deletions

View file

@ -2,7 +2,8 @@ defmodule Nulla.Repo.Migrations.CreateModerationLogs do
use Ecto.Migration
def change do
create table(:moderation_logs) do
create table(:moderation_logs, primary_key: false) do
add :id, :bigint, primary_key: true
add :moderator_id, references(:users, on_delete: :nilify_all), null: false
add :target_type, :string, null: false
add :target_id, :string, null: false