26 lines
611 B
Protocol Buffer
26 lines
611 B
Protocol Buffer
// proto/table_structure.proto
|
|
syntax = "proto3";
|
|
package komp_ac.table_structure;
|
|
|
|
import "common.proto";
|
|
|
|
message GetTableStructureRequest {
|
|
string profile_name = 1; // e.g., "default"
|
|
string table_name = 2; // e.g., "2025_adresar6"
|
|
}
|
|
|
|
message TableStructureResponse {
|
|
repeated TableColumn columns = 1;
|
|
}
|
|
|
|
message TableColumn {
|
|
string name = 1;
|
|
string data_type = 2; // e.g., "TEXT", "BIGINT", "VARCHAR(255)", "TIMESTAMPTZ"
|
|
bool is_nullable = 3;
|
|
bool is_primary_key = 4;
|
|
}
|
|
|
|
service TableStructureService {
|
|
rpc GetTableStructure (GetTableStructureRequest) returns (TableStructureResponse);
|
|
}
|