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

     1  syntax = "proto3";
     2  
     3  option go_package = "github.com/s7techlab/cckit/examples/cpaper_extended/schema";
     4  package examples.cpaper_extended.schema;
     5  
     6  import "google/protobuf/timestamp.proto";
     7  
     8  // Commercial Paper state entry
     9  message CommercialPaper {
    10  
    11      enum State {
    12          STATE_ISSUED = 0;
    13          STATE_TRADING = 1;
    14          STATE_REDEEMED = 2;
    15      }
    16  
    17      // Issuer and Paper number comprises composite primary key of Commercial paper entry
    18      string issuer = 1;
    19      string paper_number = 2;
    20  
    21      string owner = 3;
    22      google.protobuf.Timestamp issue_date = 4;
    23      google.protobuf.Timestamp maturity_date = 5;
    24      int32 face_value = 6;
    25      State state = 7;
    26  
    27      // Additional unique field for entry
    28      string external_id = 8;
    29  }
    30  
    31  // CommercialPaperId identifier part
    32  message CommercialPaperId {
    33      string issuer = 1;
    34      string paper_number = 2;
    35  }
    36  
    37  // Container for returning multiple entities
    38  message CommercialPaperList {
    39      repeated CommercialPaper items = 1;
    40  }