using Fantasy.Entitas;
using MongoDB.Bson.Serialization.Attributes;
namespace NB.Chat;
///
/// 聊天频道实体
///
public class ChatChannel : Entity
{
[BsonElement("type")] public uint ChannelType;
///
/// 频道Id
///
[BsonElement("cid")] public long ChannelId;
///
/// 频道名称
///
[BsonElement("name")] public string Name = "";
///
/// 创建者
///
[BsonElement("cr")] public long Creator;
///
/// 创建时间
///
[BsonElement("ct")] public long CreateTime;
///
/// 频道地区
///
[BsonElement("region")] public int Region;
[BsonElement("ids")] public readonly HashSet Units = new HashSet();
}