defmodule Medicode.Repo.Migrations.CreateTranscriptions do use Ecto.Migration def change do create table(:transcriptions, primary_key: false) do add :id, :binary_id, primary_key: true add :filename, :string, null: false add :recording_length_in_seconds, :integer, null: true add :user_id, references(:users, type: :binary_id, on_delete: :delete_all), null: false timestamps(type: :utc_datetime) end end end