添加项目文件。
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user