create profile rpc

This commit is contained in:
Priec
2026-09-13 22:26:14 +02:00
parent dfb76b6711
commit 6548343aba
6 changed files with 127 additions and 2 deletions

View File

@@ -9,6 +9,9 @@ import "common.proto";
// logical "profiles" (schemas). Each table has stored structure, links, and
// validation rules.
service TableDefinition {
// Creates a profile with default modules and managed structures, without a user table.
rpc CreateProfile(CreateProfileRequest) returns (CreateProfileResponse);
rpc GetModuleConfiguration(GetModuleConfigurationRequest) returns (ModuleConfiguration);
rpc SetModuleConfiguration(SetModuleConfigurationRequest) returns (ModuleConfiguration);
@@ -108,6 +111,16 @@ service TableDefinition {
rpc DeleteProfile(DeleteProfileRequest) returns (DeleteProfileResponse);
}
message CreateProfileRequest {
string profile_name = 1;
// Omit to leave the bookkeeping currency unconfigured.
optional string accounting_currency = 2;
}
message CreateProfileResponse {
int64 profile_id = 1;
}
message ModuleScope {
oneof target {
komp_ac.common.Empty defaults = 1;