summaryrefslogtreecommitdiff
path: root/book.proto
diff options
context:
space:
mode:
Diffstat (limited to 'book.proto')
-rw-r--r--book.proto24
1 files changed, 24 insertions, 0 deletions
diff --git a/book.proto b/book.proto
new file mode 100644
index 0000000..526ec42
--- /dev/null
+++ b/book.proto
@@ -0,0 +1,24 @@
+syntax = "proto3";
+
+package chatpb;
+
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/struct.proto";
+import "chat.proto";
+
+message Book {
+ string uuid = 1; // `autogenpb:unique` `autogenpb:sort`
+ google.protobuf.Timestamp ctime = 2;
+ string Title = 3;
+ int32 version = 4;
+ Who from = 5;
+ string content = 6;
+ Table table = 7;
+ GeminiRequest GeminiRequest = 8;
+}
+
+message Books { // `autogenpb:marshal` `autogenpb:mutex` `autogenpb:gui`
+ string uuid = 1; // `autogenpb:uuid:8b6409ad-4498-43a6-b09a-7835c00dcb9a`
+ string version = 2; // `autogenpb:version:v0.0.1`
+ repeated Book Books = 3; // THIS MUST BE Chat and then Chats
+}