qunatity ledger in table definition
This commit is contained in:
@@ -197,7 +197,9 @@ message ColumnDefinition {
|
||||
// MONEY rounding applied before a value is stored.
|
||||
MoneyRounding rounding = 4;
|
||||
|
||||
reserved 5;
|
||||
// When true, this numeric column is server-owned and projected from the
|
||||
// profile quantity ledger.
|
||||
bool quantity_ledger = 5;
|
||||
}
|
||||
|
||||
// Response after table creation (success + DDL preview).
|
||||
|
||||
@@ -73,9 +73,8 @@ message TableColumn {
|
||||
// Typically true for the "id" column created by the system.
|
||||
bool is_primary_key = 4;
|
||||
|
||||
// True for a user-defined column whose logic should be recomputed whenever
|
||||
// one of its dependencies changes. False for system and foreign-key columns.
|
||||
reserved 5;
|
||||
// True when this column is projected from the profile quantity ledger.
|
||||
bool quantity_ledger = 5;
|
||||
|
||||
// True when the server created this as a companion of another logical column.
|
||||
bool generated = 6;
|
||||
|
||||
Binary file not shown.
@@ -166,6 +166,10 @@ pub struct ColumnDefinition {
|
||||
/// MONEY rounding applied before a value is stored.
|
||||
#[prost(enumeration = "MoneyRounding", tag = "4")]
|
||||
pub rounding: i32,
|
||||
/// When true, this numeric column is server-owned and projected from the
|
||||
/// profile quantity ledger.
|
||||
#[prost(bool, tag = "5")]
|
||||
pub quantity_ledger: bool,
|
||||
}
|
||||
/// Response after table creation (success + DDL preview).
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
|
||||
@@ -55,6 +55,9 @@ pub struct TableColumn {
|
||||
/// Typically true for the "id" column created by the system.
|
||||
#[prost(bool, tag = "4")]
|
||||
pub is_primary_key: bool,
|
||||
/// True when this column is projected from the profile quantity ledger.
|
||||
#[prost(bool, tag = "5")]
|
||||
pub quantity_ledger: bool,
|
||||
/// True when the server created this as a companion of another logical column.
|
||||
#[prost(bool, tag = "6")]
|
||||
pub generated: bool,
|
||||
|
||||
Reference in New Issue
Block a user