File size: 480 Bytes
3f219b5 7625517 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
defmodule Medicode.Repo.Migrations.CreateTranscriptionChunkKeywords do
use Ecto.Migration
def change do
create table(:transcription_chunk_keywords, primary_key: false) do
add :id, :binary_id, primary_key: true
add :keyword, :string
add :score, :float
add :transcription_chunk_id,
references(:transcription_chunks, type: :binary_id, on_delete: :delete_all),
null: false
timestamps(type: :utc_datetime)
end
end
end
|