Initial commit
This commit is contained in:
28
grpcapi/vehicles.proto
Normal file
28
grpcapi/vehicles.proto
Normal file
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user