accounts are strings in the client side

This commit is contained in:
Priec
2026-08-08 20:30:57 +02:00
parent 7db328ca2b
commit a7b8d2021a
10 changed files with 69 additions and 81 deletions

View File

@@ -62,7 +62,7 @@ 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 by whoever declared each link, plus "account_id" on
// named by whoever declared each link, plus "account" 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
@@ -102,7 +102,7 @@ message PostTableDataRequest {
// - System/FK columns:
// • "deleted" (BOOLEAN), optional; default FALSE if not provided
// • one BIGINT per link, named by whoever declared it
// • "account_id" (BIGINT) on ACCOUNTING-enabled tables
// • "account" (slash-delimited account string) on ACCOUNTING-enabled tables
//
// Type expectations by SQL type:
// - TEXT: string value; empty string is treated as NULL
@@ -251,7 +251,7 @@ message GetTableDataResponse {
// - id, deleted
// - all user-defined columns from the table definition
// - one column per link, named by whoever declared it
// - account_id for ACCOUNTING-enabled tables
// - account 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.