summaryrefslogtreecommitdiff
path: root/table.proto
diff options
context:
space:
mode:
Diffstat (limited to 'table.proto')
-rw-r--r--table.proto45
1 files changed, 45 insertions, 0 deletions
diff --git a/table.proto b/table.proto
new file mode 100644
index 0000000..8acf6e9
--- /dev/null
+++ b/table.proto
@@ -0,0 +1,45 @@
+syntax = "proto3";
+
+// playing around with ideas here
+
+package gitpb;
+
+import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
+// import "google/protobuf/any.proto"; // Import 'Any'
+import "widget.proto"; // Import the well-known type for Timestamp
+
+
+message StringRow {
+ string header = 1; //
+ repeated string vals = 2; //
+ repeated Widget widgetS = 3; //
+}
+
+message IntRow {
+ Widget header = 1; //
+ repeated Widget widgets = 2; //
+}
+
+message TimeRow {
+ Widget header = 1; //
+ repeated Widget widgets = 2; //
+}
+
+message BoolRow {
+ Widget header = 1; //
+ repeated Widget widgets = 2; //
+}
+
+message Table {
+ repeated string order = 1;
+ repeated StringRow StringRows = 2;
+ repeated IntRow IntRows = 3;
+ repeated TimeRow TimeRows = 4;
+ repeated BoolRow BoolRows = 5;
+}
+
+message Tables {
+ string uuid = 1; // `autogenpb:uuid:c328aa62-3c4f-4d00-9244-cc44ae75ab1b`
+ string version = 2; // `autogenpb:version:v1`
+ repeated Table Tables = 3;
+}