package de.effigenix.domain.production;

import java.util.UUID;

public record ProductionStepId(String value) {

    public ProductionStepId {
        if (value == null || value.isBlank()) {
            throw new IllegalArgumentException("ProductionStepId must not be blank");
        }
    }

    public static ProductionStepId generate() {
        return new ProductionStepId(UUID.randomUUID().toString());
    }

    public static ProductionStepId of(String value) {
        return new ProductionStepId(value);
    }
}
