chore: update collection store definition

This commit is contained in:
Steven
2023-11-10 10:18:55 +08:00
parent f3f2218e91
commit f770149066
10 changed files with 424 additions and 118 deletions

View File

@ -0,0 +1,27 @@
syntax = "proto3";
package slash.store;
import "store/common.proto";
option go_package = "gen/store";
message Collection {
int32 id = 1;
int32 creator_id = 2;
int64 created_ts = 3;
int64 updated_ts = 4;
string name = 6;
string title = 7;
string description = 8;
repeated int32 shortcut_ids = 9;
Visibility visibility = 10;
}

View File

@ -11,3 +11,13 @@ enum RowStatus {
ARCHIVED = 2;
}
enum Visibility {
VISIBILITY_UNSPECIFIED = 0;
PRIVATE = 1;
WORKSPACE = 2;
PUBLIC = 3;
}

View File

@ -39,13 +39,3 @@ message OpenGraphMetadata {
string image = 3;
}
enum Visibility {
VISIBILITY_UNSPECIFIED = 0;
PRIVATE = 1;
WORKSPACE = 2;
PUBLIC = 3;
}