25 lines
1.1 KiB
Protocol Buffer
25 lines
1.1 KiB
Protocol Buffer
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
|
|
}
|