File size: 485 Bytes
3f219b5 a4b994e cf5a59c a4b994e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
defmodule Medicode.Repo.Migrations.CreateTranscriptionChunks do
use Ecto.Migration
def change do
create table(:transcription_chunks, primary_key: false) do
add :id, :binary_id, primary_key: true
add :text, :string
add :start_mark, :string
add :end_mark, :string
add :transcription_id,
references(:transcriptions, type: :binary_id, on_delete: :delete_all),
null: false
timestamps(type: :utc_datetime)
end
end
end
|