trustieplus/app/models/tiding.rb

20 lines
1.2 KiB
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 使用请了解以下描述,不清楚请@Hjqreturn
#
# user_id: 信息接收人
# trigger_user_id: 信息的触发者具体情况可能有所不同。eg产生消息的用户ID处理消息的用户ID等
# container_id消息实体的ID。egissue的id
# container_type消息实体的类型。eg:“Issue""Board"
# parent_container_id消息实体的父实体消息的id是为了生成url时使用避免反复查数据库。egmessage中的board 的id
# parent_container_type消息实体的父实体消息类型便于分类。eg“Message""Board"
# belong_container_id消息实体所属的实体ID。egproject_idcourse_idorganization_id
# belong_container_type消息实体所属的实体类型。eg“Project”“Course”,"Shixun"
# status消息实体的状态。eg“已处理”“未处理”
# viewed消息是否已读。eg1 -> 已读; 0 -> 未读
#
class Tiding < ActiveRecord::Base
attr_accessible :belong_container_id, :belong_container_type, :container_id, :container_type, :parent_container_id,
:parent_container_type, :status, :trigger_user_id, :user_id, :viewed
end