36 lines
936 B
C#
36 lines
936 B
C#
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; }
|
|
} |