fleets/grpcapi/vehicles.proto

28 lines
730 B
Protocol Buffer

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;
bool deleted = 10;
Vehicle vehicle = 9;
}