ft/adds email_address and phone_number tables ft/adds email and phone endpoints ft/adds account_level query
37 lines
1.6 KiB
Protocol Buffer
37 lines
1.6 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pb;
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
import "protoc-gen-openapiv2/options/annotations.proto";
|
|
|
|
option go_package = "github.com/itsscb/df/pb";
|
|
|
|
message Person {
|
|
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
|
|
json_schema: {
|
|
title: "Person";
|
|
};
|
|
example: "{\"id\": \"1\",\"email\": \"john.doe@example.com\", \"firstname\": \"John\", \"lastname\": \"Doe\", \"phone\": \"\", \"street\": \"Death Star 2\", \"zip\": \"0815\", \"city\": \"New York\", \"country\": \"USA\", \"birthday\": \"1990-10-05T00:00:00Z\", \"privacy_accepted\": false, \"privacy_accepted_date\": \"0001-01-01T00:00:00Z\", \"creator\": \"john.doe@example.com\", \"created\": \"2023-10-05T02:30:53Z\", \"changer\": \"john.doe@example.com\", \"changed\": \"2023-10-05T02:30:53Z\"}";
|
|
};
|
|
uint64 id = 1;
|
|
uint64 account_id = 2;
|
|
string firstname = 3;
|
|
string lastname = 4;
|
|
string street = 5;
|
|
string city = 6;
|
|
string zip = 7;
|
|
string country = 8;
|
|
google.protobuf.Timestamp birthday = 9 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"1990-10-05T00:00:00Z\""
|
|
}];
|
|
string creator = 10;
|
|
google.protobuf.Timestamp created = 11 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"2023-10-05T00:00:00Z\""
|
|
}];
|
|
string changer = 12;
|
|
google.protobuf.Timestamp changed = 13 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
example: "\"2023-10-05T00:00:00Z\""
|
|
}];
|
|
optional string relationship = 14;
|
|
} |