architex/lib/matrix_server/schema/device_transaction.ex
Pim Kunis c42fc7c350 Implement client send message endpoint
Fix state res and authorization to handle missing state_keys
2021-08-31 16:32:04 +02:00

18 lines
365 B
Elixir

defmodule MatrixServer.DeviceTransaction do
use Ecto.Schema
alias MatrixServer.Device
@type t :: %__MODULE__{
txn_id: String.t(),
event_id: String.t(),
device_id: integer()
}
@primary_key {:txn_id, :string, []}
schema "device_transactions" do
field :event_id, :string
belongs_to :device, Device
end
end