SPMS_API/SPMS.Domain/Entities/Message.cs

22 lines
740 B
C#

namespace SPMS.Domain.Entities;
public class Message : BaseEntity
{
public long ServiceId { get; set; }
public string MessageCode { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public string Body { get; set; } = string.Empty;
public string? ImageUrl { get; set; }
public string? LinkUrl { get; set; }
public string? LinkType { get; set; }
public string? CustomData { get; set; }
public DateTime CreatedAt { get; set; }
public long CreatedBy { get; set; }
public bool IsDeleted { get; set; }
public DateTime? DeletedAt { get; set; }
// Navigation
public Service Service { get; set; } = null!;
public Admin CreatedByAdmin { get; set; } = null!;
}