syntax = "proto2";

package maps_adv.adv_store.proto.campaign_status;

import "google/protobuf/timestamp.proto";

message CampaignStatus {
    enum Enum {
        ACTIVE = 1;
        ARCHIVED = 2;
        DONE = 3;
        DRAFT = 4;
        PAUSED = 5;
        REJECTED = 6;
        REVIEW = 7;
    }
}

message CampaignStatusLogEntry {
    required uint64 initiator_id = 1;
    required CampaignStatus.Enum status = 2;
    required google.protobuf.Timestamp changed_at = 3;
    required string note = 4;
}

message CampaignStatusHistory {
    repeated CampaignStatusLogEntry entries = 1;
}

message CampaignStatusChangeInput {
    required uint64 initiator_id = 1;
    required CampaignStatus.Enum status = 2;
    optional string note = 3;
}
