Initial commit

This commit is contained in:
2022-08-12 14:49:16 +02:00
commit b9b0c10e1c
22 changed files with 3737 additions and 0 deletions

28
grpcapi/vehicles.proto Normal file
View 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;
}