2025-02-13 17:24:27 -06:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
// playing around with ideas here
|
|
|
|
|
|
|
|
package gitpb;
|
|
|
|
|
|
|
|
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
|
|
|
|
import "widget.proto"; // Import the well-known type for Timestamp
|
|
|
|
|
|
|
|
|
|
|
|
message StringRow {
|
2025-02-20 02:45:46 -06:00
|
|
|
Widget header = 1;
|
|
|
|
repeated string vals = 2;
|
|
|
|
repeated Widget widgets = 3;
|
2025-02-13 17:24:27 -06:00
|
|
|
}
|
|
|
|
|
2025-03-05 07:46:51 -06:00
|
|
|
message ButtonRow {
|
|
|
|
Widget header = 1;
|
|
|
|
repeated string vals = 2;
|
|
|
|
repeated Widget widgets = 3;
|
|
|
|
}
|
|
|
|
|
2025-02-13 17:24:27 -06:00
|
|
|
message IntRow {
|
2025-02-20 02:45:46 -06:00
|
|
|
Widget header = 1;
|
|
|
|
repeated int64 vals = 2;
|
|
|
|
repeated Widget widgets = 3;
|
2025-02-13 17:24:27 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
message TimeRow {
|
2025-02-20 02:45:46 -06:00
|
|
|
Widget header = 1;
|
|
|
|
repeated google.protobuf.Timestamp vals = 2;
|
|
|
|
repeated Widget widgets = 3;
|
2025-02-13 17:24:27 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
message BoolRow {
|
2025-02-21 15:38:25 -06:00
|
|
|
Widget header = 1;
|
|
|
|
repeated Widget widgets = 2;
|
2025-02-13 17:24:27 -06:00
|
|
|
}
|
|
|
|
|
2025-02-20 02:45:46 -06:00
|
|
|
message Table { // `autogenpb:marshal`
|
2025-03-04 14:33:02 -06:00
|
|
|
string uuid = 1;
|
|
|
|
string title = 2;
|
|
|
|
Widget parent = 3;
|
|
|
|
Widget grid = 4;
|
|
|
|
repeated string order = 5;
|
2025-03-05 07:46:51 -06:00
|
|
|
repeated StringRow stringRows = 6;
|
|
|
|
repeated IntRow intRows = 7;
|
|
|
|
repeated TimeRow timeRows = 8;
|
|
|
|
repeated BoolRow boolRows = 9;
|
|
|
|
repeated ButtonRow buttonRows = 10;
|
2025-02-13 17:24:27 -06:00
|
|
|
}
|
|
|
|
|
2025-02-20 02:45:46 -06:00
|
|
|
message Tables { // `autogenpb:marshal`
|
|
|
|
string uuid = 1; // `autogenpb:uuid:c328aa62-3c4f-4d00-9244-cc44ae75ab1b`
|
|
|
|
string version = 2; // `autogenpb:version:v1`
|
|
|
|
repeated Table Tables = 3;
|
2025-02-13 17:24:27 -06:00
|
|
|
}
|