boolean quantity ledger
This commit is contained in:
@@ -291,8 +291,8 @@ message ColumnDefinition {
|
||||
// MONEY rounding applied before a value is stored.
|
||||
MoneyRounding rounding = 3;
|
||||
|
||||
// When true, this numeric column is server-owned and projected from the
|
||||
// profile quantity ledger.
|
||||
// When true, this numeric or Boolean column is server-owned and projected
|
||||
// from ledger contributions.
|
||||
bool quantity_ledger = 4;
|
||||
|
||||
// Canonical uppercase ISO-4217 currency code. Required for MONEY and forbidden
|
||||
@@ -301,6 +301,16 @@ message ColumnDefinition {
|
||||
|
||||
// When true, the server rejects omitted or explicitly null values.
|
||||
bool required = 6;
|
||||
|
||||
// Required for Boolean ledger columns and forbidden otherwise. ANY means
|
||||
// one true contribution wins; ALL means one false contribution wins.
|
||||
BooleanLedgerOperator boolean_ledger_operator = 7;
|
||||
}
|
||||
|
||||
enum BooleanLedgerOperator {
|
||||
BOOLEAN_LEDGER_OPERATOR_UNSPECIFIED = 0;
|
||||
BOOLEAN_LEDGER_OPERATOR_ANY = 1;
|
||||
BOOLEAN_LEDGER_OPERATOR_ALL = 2;
|
||||
}
|
||||
|
||||
// Response after table creation (success + DDL preview).
|
||||
|
||||
Reference in New Issue
Block a user