versioning of FK for archiving

This commit is contained in:
Priec
2026-08-11 21:07:21 +02:00
parent 077d69d756
commit dcc07ee708
13 changed files with 529 additions and 11 deletions

View File

@@ -37,6 +37,10 @@ pub struct PostTableDefinitionRequest {
/// to this one when they reach the ledger.
#[prost(string, tag = "8")]
pub accounting_currency: ::prost::alloc::string::String,
/// When true, the table is stored once in the global physical schema and is
/// visible from every profile. profile_name and accounting_currency are ignored.
#[prost(bool, tag = "9")]
pub global: bool,
}
/// Defines the input for explicitly creating tables backed by one invoice
/// template. typst_source must contain exactly one field declaration:
@@ -215,6 +219,9 @@ pub mod profile_tree_response {
/// "dynamic" for user-defined tables, "system" for backend-managed tables.
#[prost(string, tag = "5")]
pub table_kind: ::prost::alloc::string::String,
/// True when this table is shared by every profile.
#[prost(bool, tag = "6")]
pub global: bool,
}
/// Profile (schema) entry.
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -324,6 +331,8 @@ pub struct TableDetail {
>,
#[prost(string, tag = "8")]
pub table_kind: ::prost::alloc::string::String,
#[prost(bool, tag = "9")]
pub global: bool,
}
/// Server-owned behavior for one logical column returned in table details.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]