syntax = "proto3";
import "google/protobuf/struct.proto";

package wix.common.domainevents;

import "wix/api/annotations.proto";

option java_multiple_files = true;
option java_package = "com.wix.common.domainevents";

message AttributeUpdated {
    option (.wix.api.decomposition_minimum_fields) = {
        field: "previous_value"
        field: "value"
    };
    // previous_value should ONLY be set if you have the previous value in hand. Do NOT add additional DB calls for it unless your domain mandates it.
    // leave next line empty so that comment will be kept internal and not confuse external parties
    google.protobuf.Value previous_value = 4; 
    google.protobuf.Value value = 5;
}