typst files stored in the db from now on2

This commit is contained in:
Filipriec
2026-08-29 23:19:53 +02:00
parent 36d401f3a4
commit eb2d6bea5d
9 changed files with 203 additions and 69 deletions

View File

@@ -255,8 +255,8 @@ pub struct ColumnDefinition {
/// MONEY rounding applied before a value is stored.
#[prost(enumeration = "MoneyRounding", tag = "3")]
pub rounding: i32,
/// When true, this numeric or Boolean column is server-owned and projected
/// from ledger contributions.
/// When true, this numeric column is server-owned and projected
/// from quantity-ledger contributions.
#[prost(bool, tag = "4")]
pub quantity_ledger: bool,
/// Canonical uppercase ISO-4217 currency code. Required for MONEY and forbidden
@@ -266,11 +266,11 @@ pub struct ColumnDefinition {
/// When true, the server rejects omitted or explicitly null values.
#[prost(bool, tag = "6")]
pub required: bool,
/// Required for Boolean ledger columns and forbidden otherwise. ANY means
/// Enables a Boolean ledger on Boolean columns. ANY means
/// one true contribution wins; ALL means one false contribution wins.
#[prost(enumeration = "BooleanLedgerOperator", tag = "7")]
#[serde(default)]
pub boolean_ledger_operator: i32,
#[serde(default, alias = "boolean_ledger_operator")]
pub boolean_ledger: i32,
}
/// Response after table creation (success + DDL preview).
#[derive(serde::Serialize, serde::Deserialize)]
@@ -620,6 +620,9 @@ pub mod list_column_types_response {
/// Whether ColumnDefinition.quantity_ledger may be set on this type.
#[prost(bool, tag = "8")]
pub allows_quantity_ledger: bool,
/// Whether ColumnDefinition.boolean_ledger may be set on this type.
#[prost(bool, tag = "11")]
pub allows_boolean_ledger: bool,
/// Optional name grouping several types a client offers behind one choice —
/// "temporal" for the date and time types, "gtin" for the GTIN lengths.
/// Empty when the type stands on its own.