- Added SendEngineDbContext for managing database interactions. - Created SendEngineDbContextFactory for design-time database context creation. - Established dependency injection for the infrastructure layer. - Defined entity configurations for Tenant, MailingList, Subscriber, ListMember, EventInbox, Campaign, SendJob, SendBatch, DeliverySummary, AuthClient, AuthClientKey, and WebhookNonce. - Generated initial database migration snapshot. - Implemented installer program for database migration commands.
16 lines
530 B
C#
16 lines
530 B
C#
namespace SendEngine.Domain.Entities;
|
|
|
|
public sealed class SendJob
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid TenantId { get; set; }
|
|
public Guid ListId { get; set; }
|
|
public Guid CampaignId { get; set; }
|
|
public DateTimeOffset? ScheduledAt { get; set; }
|
|
public DateTimeOffset? WindowStart { get; set; }
|
|
public DateTimeOffset? WindowEnd { get; set; }
|
|
public string Status { get; set; } = "pending";
|
|
public DateTimeOffset CreatedAt { get; set; }
|
|
public DateTimeOffset UpdatedAt { get; set; }
|
|
}
|