delete empty profile

This commit is contained in:
Priec
2026-09-03 16:05:07 +02:00
parent bde15e7f2d
commit 0420108ff0
6 changed files with 131 additions and 2 deletions

View File

@@ -85,6 +85,10 @@ service TableDefinition {
// Drops a table and its metadata, then deletes the profile if it becomes empty.
rpc DeleteTable(DeleteTableRequest) returns (DeleteTableResponse);
// Deletes an entire profile only when none of its user or backend-managed
// tables, audit stores, document stores, or accounting stores contain data.
rpc DeleteProfile(DeleteProfileRequest) returns (DeleteProfileResponse);
}
message CreateCustomExchangeRatesTableRequest {
@@ -716,6 +720,16 @@ message DeleteTableResponse {
string message = 2;
}
message DeleteProfileRequest {
string profile_name = 1;
}
message DeleteProfileResponse {
bool success = 1;
string message = 2;
int32 tables_deleted = 3;
}
// How a column type is spelled in ColumnDefinition.field_type.
enum ColumnTypeSpelling {
// The name is the whole spelling: "text", "money", "gtin_13".