Initial Commit

This commit is contained in:
2026-02-12 17:10:03 -06:00
commit 6992a06105
135 changed files with 18014 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
defmodule RiverConnect.Audio.Message do
use Ecto.Schema
import Ecto.Changeset
@derive {Jason.Encoder, only: [:id, :user_id, :file_path, :duration_ms, :status, :inserted_at]}
schema "audio_messages" do
field :status, :string
field :user_id, :string
field :file_path, :string
field :duration_ms, :integer
timestamps(type: :utc_datetime)
end
@doc false
def changeset(message, attrs) do
message
|> cast(attrs, [:user_id, :file_path, :duration_ms, :status])
|> validate_required([:user_id, :file_path, :status])
end
end