model and Dto

This commit is contained in:
mmrbnjd
2025-06-28 15:31:07 +03:30
parent 1f6ca5ee5f
commit c0b47129d4
38 changed files with 905 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
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 ConversationItem : BaseEntity
{
#region Key
public int ID { get; set; }
public int ConversationID { get; set; }
public string? ExperID { get; set; }
#endregion
#region Fild
public bool IsRead { get; set; } = false;
public ConversationType Type { get; set; }
public string Text { get; set; }
public string? FileName { get; set; }
public string? FileType { get; set; }
public byte[]? FileContent { get; set; }
public DateTime? ReadDateTime { get; set; }
public DateTime Cdatetime
{ get; set; } = DateTime.Now;
#endregion
#region Navigation
[ForeignKey("ConversationID")]
public Conversation conversation { get; set; }
[ForeignKey("ExperID")]
public Exper? Exper { get; set; }
#endregion
}
}