30 lines
910 B
C#
30 lines
910 B
C#
|
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
||
|
|
using Volo.Abp.MultiTenancy;
|
||
|
|
|
||
|
|
namespace Sozsoft.Platform.Entities;
|
||
|
|
|
||
|
|
public class MessengerConversation : FullAuditedEntity<Guid>, IMultiTenant
|
||
|
|
{
|
||
|
|
protected MessengerConversation()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public MessengerConversation(Guid id) : base(id)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public Guid? TenantId { get; set; }
|
||
|
|
public string? Title { get; set; }
|
||
|
|
public string ParticipantKey { get; set; } = string.Empty;
|
||
|
|
public string ParticipantIdsJson { get; set; } = "[]";
|
||
|
|
public bool IsGroup { get; set; }
|
||
|
|
public Guid? LastSenderId { get; set; }
|
||
|
|
public string? LastMessagePreview { get; set; }
|
||
|
|
public DateTime? LastMessageTime { get; set; }
|
||
|
|
public int MessageCount { get; set; }
|
||
|
|
|
||
|
|
public virtual ICollection<MessengerConversationMessage> Messages { get; set; } = new List<MessengerConversationMessage>();
|
||
|
|
}
|