aboutsummaryrefslogtreecommitdiff
path: root/web/models
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--web/models/audio_file.ex6
-rw-r--r--web/models/audio_file_api.ex2
2 files changed, 4 insertions, 4 deletions
diff --git a/web/models/audio_file.ex b/web/models/audio_file.ex
index 46cf05f..f7be8de 100644
--- a/web/models/audio_file.ex
+++ b/web/models/audio_file.ex
@@ -3,7 +3,7 @@ defmodule TheTranscriberBackend.AudioFile do
schema "audio_file" do
field :audio_path, :string
- field :transcription_file_path, :string
+ field :audio_name, :string
field :audio_duration, :string
timestamps()
@@ -15,7 +15,7 @@ defmodule TheTranscriberBackend.AudioFile do
def changeset(struct, params \\ %{}) do
struct
- |> cast(params, [:audio_path, :transcription_file_path, :audio_duration])
- |> validate_required([:audio_path, :transcription_file_path, :audio_duration])
+ |> cast(params, [:audio_path, :audio_name, :audio_duration])
+ |> validate_required([:audio_path, :audio_name, :audio_duration])
end
end
diff --git a/web/models/audio_file_api.ex b/web/models/audio_file_api.ex
index 15f2e42..802d179 100644
--- a/web/models/audio_file_api.ex
+++ b/web/models/audio_file_api.ex
@@ -6,7 +6,7 @@ defmodule TheTranscriberBackend.AudioFileAPI do
schema "audio_file" do
field :audio_path, :string
- field :transcription_file_path, :string
+ field :audio_name, :string
field :audio_duration, :string
timestamps()