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

export class PrePlantingContractSignedEvent implements DomainEvent {
  readonly type = 'PrePlantingContractSigned';
  readonly aggregateType = 'PrePlantingMerge';
  readonly occurredAt: Date;

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