Files
BuYuHouDuan/CustomerSrc/CustomerService.Domain/Entity/MessageEntity.cs
T

36 lines
936 B
C#
Raw Normal View History

2026-10-12 16:22:04 +08:00
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoRepository;
using MongoRepository.Attributes;
using MongoRepository.Config;
namespace CustomerService.Domain.Entity;
[BsonCollection("message", ServiceDatabases.Customer)]
[BsonIgnoreExtraElements]
public class MessageEntity : MongoBaseEntity
{
[BsonElement("conversationid")]
public string? ConversationId { get; set; }
[BsonElement("sendertype")]
public int SenderType { get; set; }
[BsonElement("senderid")]
public string? SenderId { get; set; }
[BsonElement("sendername")]
public string? SenderName { get; set; }
[BsonElement("senderavatar")]
public string? SenderAvatar { get; set; }
[BsonElement("contenttype")]
public int ContentType { get; set; }
[BsonElement("content")]
public string? Content { get; set; }
[BsonElement("createtime")]
public DateTime CreateTime { get; set; }
}