import { DomainEvent } from '../../../domain/events/domain-event.interface';

export class PrePlantingMergedEvent implements DomainEvent {
  readonly type = 'PrePlantingMerged';
  readonly aggregateType = 'PrePlantingMerge';
  readonly occurredAt: Date;

  constructor(
    public readonly aggregateId: string,
    public readonly data: {
      mergeNo: string;
      userId: string;
      accountSequence: string;
      sourceOrderNos: string[];
      treeCount: number;
      provinceCode: string;
      cityCode: string;
      totalTreesMergedAfter: number;
    },
  ) {
    this.occurredAt = new Date();
  }
}
