data in accounts is automatic now
This commit is contained in:
@@ -178,9 +178,8 @@ message ColumnDefinition {
|
||||
// PHONE (international or national phone number; generates extension/type/country/calling-code companions)
|
||||
// TIME (timezone-free time of day)
|
||||
// MONEY (= unconstrained NUMERIC; currency comes from the table)
|
||||
// ACCOUNTING (creates schema-managed name, debit, and credit columns;
|
||||
// automatically creates a required accounts_id link and posts
|
||||
// the referenced canonical account row's account value;
|
||||
// ACCOUNTING (creates schema-managed name, account, debit, and credit fields;
|
||||
// account always selects a row from the profile's managed accounts table;
|
||||
// name is limited to 10 characters and one stored row contributes
|
||||
// one line to the profile journal)
|
||||
// INT
|
||||
|
||||
@@ -46,7 +46,8 @@ message GetTableStructureResponse {
|
||||
message TableStructureResponse {
|
||||
// Columns of the physical table, including system columns (id, deleted,
|
||||
// created_at, row_revision), user-defined columns, and any foreign-key columns such as
|
||||
// "<linked_table>_id". May be empty if the physical table is missing.
|
||||
// "<linked_table>_id", plus the dedicated "account_id" column on
|
||||
// ACCOUNTING-enabled tables. May be empty if the physical table is missing.
|
||||
repeated TableColumn columns = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,8 @@ service TablesData {
|
||||
// - Validates profile and table definition
|
||||
// - Returns all columns as strings (COALESCE(col::TEXT, '') AS col)
|
||||
// including: id, deleted, row_revision, all user-defined columns, and FK columns
|
||||
// named "<linked_table>_id" for each table link
|
||||
// named "<linked_table>_id" for each table link, plus "account_id" on
|
||||
// ACCOUNTING-enabled tables
|
||||
// - Fails with NOT_FOUND if record does not exist or is soft-deleted
|
||||
// - If the physical table is missing but the definition exists, returns INTERNAL
|
||||
rpc GetTableData(GetTableDataRequest) returns (GetTableDataResponse);
|
||||
@@ -101,6 +102,7 @@ message PostTableDataRequest {
|
||||
// - System/FK columns:
|
||||
// • "deleted" (BOOLEAN), optional; default FALSE if not provided
|
||||
// • "<linked_table>_id" (BIGINT) for each table link
|
||||
// • "account_id" (BIGINT) on ACCOUNTING-enabled tables
|
||||
//
|
||||
// Type expectations by SQL type:
|
||||
// - TEXT: string value; empty string is treated as NULL
|
||||
@@ -266,6 +268,7 @@ message GetTableDataResponse {
|
||||
// - id, deleted
|
||||
// - all user-defined columns from the table definition
|
||||
// - FK columns named "<linked_table>_id" for each table link
|
||||
// - account_id for ACCOUNTING-enabled tables
|
||||
//
|
||||
// All values are returned as TEXT via col::TEXT and COALESCEed to empty string
|
||||
// (NULL becomes ""). The row is returned only if deleted = FALSE.
|
||||
|
||||
Reference in New Issue
Block a user