class SessionNotification

Schema Information

Table name: session_notifications

id              :bigint           not null, primary key
sent_at         :datetime         not null
session_date    :date             not null
type            :integer          not null
patient_id      :bigint           not null
sent_by_user_id :bigint
session_id      :bigint           not null

Indexes

idx_on_patient_id_session_id_session_date_f7f30a3aa3  (patient_id,session_id,session_date)
index_session_notifications_on_sent_by_user_id        (sent_by_user_id)
index_session_notifications_on_session_id             (session_id)

Foreign Keys

fk_rails_...  (patient_id => patients.id)
fk_rails_...  (sent_by_user_id => users.id)
fk_rails_...  (session_id => sessions.id)