syntax = "proto3"; option go_package = "git.coopgo.io/coopgo-platform/fleets/grpcapi"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; message Vehicle { string id = 1; string namespace = 2; string type = 3; repeated string administrators = 4; google.protobuf.Struct data = 5; repeated Booking bookings = 6; } message Booking { string id = 1; string vehicleid = 2; string driver = 3; google.protobuf.Timestamp startdate = 4; google.protobuf.Timestamp enddate = 5; google.protobuf.Timestamp unavailablefrom = 6; google.protobuf.Timestamp unavailableto = 7; google.protobuf.Struct data = 8; Vehicle vehicle = 9; bool deleted = 10; string manual_status = 11; repeated StatusHistoryEntry status_history = 12; } message StatusHistoryEntry { string from_status = 1; string to_status = 2; string user_id = 3; string user_name = 4; string group_id = 5; string group_name = 6; google.protobuf.Timestamp date = 7; string comment = 8; }