qunatity ledger in table definition

This commit is contained in:
Priec
2026-07-29 20:25:24 +02:00
parent 7da9b6fe1e
commit 06447e13f3
12 changed files with 23 additions and 8 deletions

Binary file not shown.

View File

@@ -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)]

View File

@@ -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,