money without backwards compatibility
This commit is contained in:
@@ -14,16 +14,10 @@ service TableDefinition {
|
||||
// Also inserts metadata and default validation rules. Entirely transactional.
|
||||
rpc PostTableDefinition(PostTableDefinitionRequest) returns (TableDefinitionResponse);
|
||||
|
||||
// Creates a table using the money-aware definition contract.
|
||||
rpc PostMoneyTableDefinition(PostMoneyTableDefinitionRequest) returns (TableDefinitionResponse);
|
||||
|
||||
// Appends new user-defined columns to an existing table.
|
||||
// Existing columns, links, and table logic are never changed by this call.
|
||||
rpc AddTableColumns(AddTableColumnsRequest) returns (TableDefinitionResponse);
|
||||
|
||||
// Adds columns using the money-aware definition contract.
|
||||
rpc AddMoneyTableColumns(AddMoneyTableColumnsRequest) returns (TableDefinitionResponse);
|
||||
|
||||
// Lists all profiles (schemas) and their tables with declared dependencies.
|
||||
// This provides a tree-like overview of table relationships.
|
||||
rpc GetProfileTree(komp_ac.common.Empty) returns (ProfileTreeResponse);
|
||||
@@ -84,12 +78,9 @@ message PostTableDefinitionRequest {
|
||||
// like "public", "information_schema", or ones starting with "pg_".
|
||||
string profile_name = 5;
|
||||
|
||||
}
|
||||
string base_currency = 6;
|
||||
repeated MoneyColumnOptions money_columns = 7;
|
||||
|
||||
message PostMoneyTableDefinitionRequest {
|
||||
PostTableDefinitionRequest definition = 1;
|
||||
string base_currency = 2;
|
||||
repeated MoneyColumnOptions money_columns = 3;
|
||||
}
|
||||
|
||||
// Defines append-only column additions for an existing table.
|
||||
@@ -106,12 +97,9 @@ message AddTableColumnsRequest {
|
||||
// Optional indexes for the new columns only.
|
||||
repeated string indexes = 4;
|
||||
|
||||
}
|
||||
repeated MoneyColumnOptions money_columns = 5;
|
||||
string base_currency = 6;
|
||||
|
||||
message AddMoneyTableColumnsRequest {
|
||||
AddTableColumnsRequest definition = 1;
|
||||
repeated MoneyColumnOptions money_columns = 2;
|
||||
string base_currency = 3;
|
||||
}
|
||||
|
||||
enum MoneyRounding {
|
||||
|
||||
Reference in New Issue
Block a user