summaryrefslogtreecommitdiff
path: root/book.proto
blob: cb3415116422a82b705a4bb42150cf5b069d5f27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
        google.protobuf.Timestamp   ctime             = 4;
        string                      Title             = 5;
}