Files
Hushian/Hushian.Domain/Entites/Conversation.cs

41 lines
1.2 KiB
C#
Raw Normal View History

2025-06-28 15:31:07 +03:30
using Common.Enums;
using Hushian.Domain.Abstracts;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hushian.Domain.Entites
{
public class Conversation : BaseEntity
{
#region Key
public int ID { get; set; }
public int CompanyID { get; set; }
public int UserID { get; set; }
public int? GroupID { get; set; }
#endregion
#region Fild
2025-07-06 01:49:34 +03:30
public ConversationStatus Status { get; set; }
= ConversationStatus.InProgress;
2025-06-28 15:31:07 +03:30
public DateTime? FinishedDateTime { get; set; }
public DateTime Cdatetime
{ get; set; } = DateTime.Now;
#endregion
#region Navigation
[ForeignKey("CompanyID")]
public Company Company { get; set; }
[ForeignKey("UserID")]
public User User { get; set; }
[ForeignKey("GroupID")]
public Group? Group { get; set; }
2025-07-06 01:49:34 +03:30
public ICollection<ConversationResponse> ConversationResponses { get; set; }
= new List<ConversationResponse>();
2025-06-28 15:31:07 +03:30
#endregion
}
}