new enum instead of string in proto

This commit is contained in:
Priec
2026-09-07 09:54:32 +02:00
parent 6dc20bf7ad
commit e4364e1c44
16 changed files with 122 additions and 40 deletions

View File

@@ -437,7 +437,7 @@ message ProfileTreeResponse {
repeated string row_display_columns = 4;
// "dynamic" for user-defined tables, "system" for backend-managed tables.
string table_kind = 5;
ManagedTableKind table_kind = 5;
// True when this table is shared by every profile.
bool global = 6;
@@ -590,6 +590,12 @@ message GetAliasChangeHistoryResponse {
repeated AliasChangeHistoryEntry entries = 2;
}
enum ManagedTableKind {
MANAGED_TABLE_KIND_UNSPECIFIED = 0;
MANAGED_TABLE_KIND_DYNAMIC = 1;
MANAGED_TABLE_KIND_SYSTEM = 2;
}
// Describes a table with its columns and associated scripts.
message TableDetail {
string name = 1;
@@ -598,7 +604,7 @@ message TableDetail {
repeated ScriptInfo scripts = 4;
repeated string row_display_columns = 6;
map<string, ColumnBehavior> column_behaviors = 7;
string table_kind = 8;
ManagedTableKind table_kind = 8;
bool global = 9;
// Revision of this table definition for optimistic concurrency control.
int64 row_version = 10;