github.com/s7techlab/cckit@v0.10.5/state/schema/schema.proto (about)

     1  syntax = "proto3";
     2  
     3  package state.schema;
     4  option go_package = "github.com/s7techlab/cckit/state/schema";
     5  
     6  import "google/protobuf/any.proto";
     7  
     8  // KeyRefId  id part of key reference
     9  message KeyRefId {
    10      // PK of key ref will be
    11      // <`_idx`,{SchemaName},{idxName}, {RefKey[1]},... {RefKey[n}}>s
    12      // `idx` - const prefix for all indexes
    13      // SchemaName} - string representation of schema
    14  
    15      // entity type
    16      string schema = 1;
    17      // idx name from entity type
    18      string idx = 2;
    19      // referred key
    20      repeated string ref_key = 3;
    21  }
    22  
    23  
    24  message KeyRef {
    25      // entity type
    26      string schema = 1;
    27      // idx name from entity type
    28      string idx = 2;
    29      // referred key
    30      repeated string ref_key = 3;
    31      // primary key instance linked to
    32      repeated string p_key = 4;
    33  }
    34  
    35  message List {
    36      repeated google.protobuf.Any items = 1;
    37  }