model and Dto
This commit is contained in:
40
Hushian.Domain/Entites/Conversation.cs
Normal file
40
Hushian.Domain/Entites/Conversation.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
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
|
||||
public string Title { get; set; }
|
||||
public ConversationStatus Status { get; set; }
|
||||
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; }
|
||||
public ICollection<ConversationItem> conversationItems { get; set; }
|
||||
= new List<ConversationItem>();
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user