defmodule App.Chat.ChannelMember do
attributes do
attribute :channel_last_read_at, :utc_datetime_usec
end
relationships do
belongs_to :channel, App.Chat.Channel, primary_key?: true, allow_nil?: false
belongs_to :user, App.Account.User, primary_key?: true, allow_nil?: false
end
end
defmodule App.Chat.ChannelMember do
attributes do
attribute :channel_last_read_at, :utc_datetime_usec
end
relationships do
belongs_to :channel, App.Chat.Channel, primary_key?: true, allow_nil?: false
belongs_to :user, App.Account.User, primary_key?: true, allow_nil?: false
end
end