mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-03-11 04:26:11 -04:00
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com> Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
33 lines
967 B
C#
33 lines
967 B
C#
using System;
|
|
using Kavita.Models.Entities.Interfaces;
|
|
using Kavita.Models.Entities.User;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Kavita.Models.Entities;
|
|
|
|
/// <summary>
|
|
/// Records all emails that are sent from Kavita
|
|
/// </summary>
|
|
[Index("Sent", "AppUserId", "EmailTemplate", "SendDate")]
|
|
public class EmailHistory : IEntityDate
|
|
{
|
|
public long Id { get; set; }
|
|
public bool Sent { get; set; }
|
|
public DateTime SendDate { get; set; } = DateTime.UtcNow;
|
|
public string EmailTemplate { get; set; }
|
|
public string Subject { get; set; }
|
|
public string Body { get; set; }
|
|
|
|
public string DeliveryStatus { get; set; }
|
|
public string ErrorMessage { get; set; }
|
|
|
|
public int AppUserId { get; set; }
|
|
public virtual AppUser AppUser { get; set; }
|
|
|
|
|
|
public DateTime Created { get; set; }
|
|
public DateTime CreatedUtc { get; set; }
|
|
public DateTime LastModified { get; set; }
|
|
public DateTime LastModifiedUtc { get; set; }
|
|
}
|