Class: Tina4::Realtime::ChannelMember

Inherits:
ORM
  • Object
show all
Defined in:
lib/tina4/realtime/channel_member.rb

Overview

ChannelMember - a user's membership of a channel plus their read cursor. user_id is a string so it holds any identity shape the app puts in the JWT (an integer id, a UUID, an email). last_read_at is the read-receipt cursor.

Method Summary

Methods inherited from ORM

all, auto_crud, auto_crud=, auto_map, auto_map=, belongs_to, clear_rel_cache, count, create, create_table, db, db=, #delete, eager_load, #errors, exists, field_mapping, field_mapping=, find, find_by_id, find_or_fail, #force_delete, from_hash, get_db, get_db_column, #get_error, has_many, has_one, inherited, #initialize, #last_error, #load, model_subclasses, #persisted?, query, relationship_definitions, #restore, #save, scope, select, #select, select_one, soft_delete, soft_delete=, soft_delete_field, soft_delete_field=, #to_array, #to_h, #to_json, #to_s, #validate, where, with_trashed

Methods included from FieldTypes

included

Constructor Details

This class inherits a constructor from Tina4::ORM