syntax = "proto2";

package maps_adv.manul.proto.clients;

message ClientInput {
    required string name = 1;
    optional uint64 account_manager_id = 2;
}

// Client set account manager payload
message ClientSetAccountManagerInput {
    required uint64 client_id = 1;
    required uint64 account_manager_id = 2;
}

message ClientOutput {
    required uint64 id = 1;
    required string name = 2;
    optional uint32 orders_count = 3;
    optional uint64 account_manager_id = 4;
}

message ClientsList {
    repeated ClientOutput clients = 1;
}
