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

View File

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

View File

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

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,