Add campaign manager

This commit is contained in:
2025-10-27 10:02:58 +09:00
parent 891d462af1
commit 7c35c9a7df
18 changed files with 250 additions and 41 deletions

View 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;
}
}