Add campaign manager
This commit is contained in:
27
Hcs.WebApp/Data/Hcs/Campaign.cs
Normal file
27
Hcs.WebApp/Data/Hcs/Campaign.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Hcs.WebApp.Data.Hcs
|
||||
{
|
||||
public class Campaign
|
||||
{
|
||||
public enum CampaignType
|
||||
{
|
||||
ExportRequiredRegistryElements_15_7_0_1
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public CampaignType Type { get; set; }
|
||||
|
||||
public string InitiatorId { get; set; }
|
||||
|
||||
public DateTime StartedAt { get; set; }
|
||||
|
||||
public DateTime? EndedAt { get; set; }
|
||||
|
||||
public virtual ICollection<Operation> Operations { get; set; } = [];
|
||||
|
||||
[NotMapped]
|
||||
public bool Completed => EndedAt.HasValue;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user