medicode / priv /repo /migrations /20240202211853_create_transcriptions.exs
timgremore's picture
chore: Rename app to Medicode
3f219b5
raw
history blame
No virus
453 Bytes
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