31 lines
684 B
Protocol Buffer
Executable File
31 lines
684 B
Protocol Buffer
Executable File
syntax = "proto3";
|
|
|
|
option go_package = "git.coopgo.io/coopgo-platform/mobility-accounts/grpcapi";
|
|
|
|
import "google/protobuf/struct.proto";
|
|
|
|
message Account {
|
|
string id = 1;
|
|
string namespace = 2;
|
|
AccountAuth authentication = 3;
|
|
google.protobuf.Struct data = 4;
|
|
}
|
|
|
|
message AccountAuth {
|
|
optional LocalAuth local = 7;
|
|
//TODO SSO
|
|
}
|
|
|
|
message LocalAuth {
|
|
optional string username = 10;
|
|
string password = 11;
|
|
optional string email = 12;
|
|
optional string phone_number = 13;
|
|
optional Validation email_validation = 14;
|
|
optional Validation phone_number_validation = 15;
|
|
}
|
|
|
|
message Validation {
|
|
bool validated = 20;
|
|
string validation_code = 21;
|
|
} |