syntax = "proto3";

message Revision {
    int64 base_rev_id = 1;
    int64 rev_id = 2;
    bytes delta_data = 3;
    string md5 = 4;
    string object_id = 5;
    RevType ty = 6;
    string user_id = 7;
}
message RepeatedRevision {
    repeated Revision items = 1;
}
message RevId {
    int64 value = 1;
}
message RevisionRange {
    int64 start = 1;
    int64 end = 2;
}
enum RevisionState {
    Sync = 0;
    Ack = 1;
}
enum RevType {
    DeprecatedLocal = 0;
    DeprecatedRemote = 1;
}
