Add snowflake IDs
This commit is contained in:
parent
4a890a39f4
commit
44b484de21
24 changed files with 116 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue