journal id is now part of the db

This commit is contained in:
Priec
2026-07-21 08:37:36 +02:00
parent 5cec91b0f7
commit 6ab03aae94
7 changed files with 23 additions and 4 deletions

View File

@@ -121,6 +121,11 @@ message PostTableDataRequest {
// - Some application-specific validations may apply (e.g., max length for
// certain fields like "telefon")
map<string, google.protobuf.Value> data = 3;
// Optional. Existing journal that receives the posting generated for this row.
// Required when the table has an active after-insert posting script and rejected
// when the table has no active posting script.
optional int64 journal_id = 4;
}
// Insert response.
@@ -145,6 +150,9 @@ message PostTableDataResponse {
message PostTableDataBulkRow {
// Required. Same data payload as PostTableDataRequest.data.
map<string, google.protobuf.Value> data = 1;
// Optional. Existing journal that receives the posting generated for this row.
optional int64 journal_id = 2;
}
// Bulk insert request.

Binary file not shown.

View File

@@ -45,6 +45,11 @@ pub struct PostTableDataRequest {
::prost::alloc::string::String,
::prost_types::Value,
>,
/// Optional. Existing journal that receives the posting generated for this row.
/// Required when the table has an active after-insert posting script and rejected
/// when the table has no active posting script.
#[prost(int64, optional, tag = "4")]
pub journal_id: ::core::option::Option<i64>,
}
/// Insert response.
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -74,6 +79,9 @@ pub struct PostTableDataBulkRow {
::prost::alloc::string::String,
::prost_types::Value,
>,
/// Optional. Existing journal that receives the posting generated for this row.
#[prost(int64, optional, tag = "2")]
pub journal_id: ::core::option::Option<i64>,
}
/// Bulk insert request.
#[derive(Clone, PartialEq, ::prost::Message)]