using EventFlow.Aggregates;

namespace Books.Api.Domain.FiscalYears.Events;

public class FiscalYearCreatedEvent(
    string companyId,
    string name,
    DateOnly startDate,
    DateOnly endDate) : AggregateEvent<FiscalYearAggregate, FiscalYearId>
{
    public string CompanyId { get; } = companyId;
    public string Name { get; } = name;
    public DateOnly StartDate { get; } = startDate;
    public DateOnly EndDate { get; } = endDate;
}
