mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-20 22:07:15 +00:00
chore: update collection store definition
This commit is contained in:
parent
f3f2218e91
commit
f770149066
@ -8,13 +8,15 @@
|
|||||||
|
|
||||||
- [store/common.proto](#store_common-proto)
|
- [store/common.proto](#store_common-proto)
|
||||||
- [RowStatus](#slash-store-RowStatus)
|
- [RowStatus](#slash-store-RowStatus)
|
||||||
|
- [Visibility](#slash-store-Visibility)
|
||||||
|
|
||||||
|
- [store/collection.proto](#store_collection-proto)
|
||||||
|
- [Collection](#slash-store-Collection)
|
||||||
|
|
||||||
- [store/shortcut.proto](#store_shortcut-proto)
|
- [store/shortcut.proto](#store_shortcut-proto)
|
||||||
- [OpenGraphMetadata](#slash-store-OpenGraphMetadata)
|
- [OpenGraphMetadata](#slash-store-OpenGraphMetadata)
|
||||||
- [Shortcut](#slash-store-Shortcut)
|
- [Shortcut](#slash-store-Shortcut)
|
||||||
|
|
||||||
- [Visibility](#slash-store-Visibility)
|
|
||||||
|
|
||||||
- [store/user_setting.proto](#store_user_setting-proto)
|
- [store/user_setting.proto](#store_user_setting-proto)
|
||||||
- [AccessTokensUserSetting](#slash-store-AccessTokensUserSetting)
|
- [AccessTokensUserSetting](#slash-store-AccessTokensUserSetting)
|
||||||
- [AccessTokensUserSetting.AccessToken](#slash-store-AccessTokensUserSetting-AccessToken)
|
- [AccessTokensUserSetting.AccessToken](#slash-store-AccessTokensUserSetting-AccessToken)
|
||||||
@ -87,6 +89,59 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="slash-store-Visibility"></a>
|
||||||
|
|
||||||
|
### Visibility
|
||||||
|
|
||||||
|
|
||||||
|
| Name | Number | Description |
|
||||||
|
| ---- | ------ | ----------- |
|
||||||
|
| VISIBILITY_UNSPECIFIED | 0 | |
|
||||||
|
| PRIVATE | 1 | |
|
||||||
|
| WORKSPACE | 2 | |
|
||||||
|
| PUBLIC | 3 | |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="store_collection-proto"></a>
|
||||||
|
<p align="right"><a href="#top">Top</a></p>
|
||||||
|
|
||||||
|
## store/collection.proto
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="slash-store-Collection"></a>
|
||||||
|
|
||||||
|
### Collection
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
| Field | Type | Label | Description |
|
||||||
|
| ----- | ---- | ----- | ----------- |
|
||||||
|
| id | [int32](#int32) | | |
|
||||||
|
| creator_id | [int32](#int32) | | |
|
||||||
|
| created_ts | [int64](#int64) | | |
|
||||||
|
| updated_ts | [int64](#int64) | | |
|
||||||
|
| name | [string](#string) | | |
|
||||||
|
| title | [string](#string) | | |
|
||||||
|
| description | [string](#string) | | |
|
||||||
|
| shortcut_ids | [int32](#int32) | repeated | |
|
||||||
|
| visibility | [Visibility](#slash-store-Visibility) | | |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -146,20 +201,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="slash-store-Visibility"></a>
|
|
||||||
|
|
||||||
### Visibility
|
|
||||||
|
|
||||||
|
|
||||||
| Name | Number | Description |
|
|
||||||
| ---- | ------ | ----------- |
|
|
||||||
| VISIBILITY_UNSPECIFIED | 0 | |
|
|
||||||
| PRIVATE | 1 | |
|
|
||||||
| WORKSPACE | 2 | |
|
|
||||||
| PUBLIC | 3 | |
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
236
proto/gen/store/collection.pb.go
Normal file
236
proto/gen/store/collection.pb.go
Normal file
@ -0,0 +1,236 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.31.0
|
||||||
|
// protoc (unknown)
|
||||||
|
// source: store/collection.proto
|
||||||
|
|
||||||
|
package store
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// Verify that this generated code is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
|
)
|
||||||
|
|
||||||
|
type Collection struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
|
CreatorId int32 `protobuf:"varint,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
|
||||||
|
CreatedTs int64 `protobuf:"varint,3,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
|
||||||
|
UpdatedTs int64 `protobuf:"varint,4,opt,name=updated_ts,json=updatedTs,proto3" json:"updated_ts,omitempty"`
|
||||||
|
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
|
||||||
|
Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
|
||||||
|
ShortcutIds []int32 `protobuf:"varint,9,rep,packed,name=shortcut_ids,json=shortcutIds,proto3" json:"shortcut_ids,omitempty"`
|
||||||
|
Visibility Visibility `protobuf:"varint,10,opt,name=visibility,proto3,enum=slash.store.Visibility" json:"visibility,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Collection) Reset() {
|
||||||
|
*x = Collection{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_store_collection_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Collection) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Collection) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Collection) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_store_collection_proto_msgTypes[0]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use Collection.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Collection) Descriptor() ([]byte, []int) {
|
||||||
|
return file_store_collection_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Collection) GetId() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Collection) GetCreatorId() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.CreatorId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Collection) GetCreatedTs() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.CreatedTs
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Collection) GetUpdatedTs() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.UpdatedTs
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Collection) GetName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Name
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Collection) GetTitle() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Title
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Collection) GetDescription() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Description
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Collection) GetShortcutIds() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.ShortcutIds
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Collection) GetVisibility() Visibility {
|
||||||
|
if x != nil {
|
||||||
|
return x.Visibility
|
||||||
|
}
|
||||||
|
return Visibility_VISIBILITY_UNSPECIFIED
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_store_collection_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_store_collection_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x16, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69,
|
||||||
|
0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x2e,
|
||||||
|
0x73, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d,
|
||||||
|
0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa1, 0x02, 0x0a, 0x0a, 0x43, 0x6f,
|
||||||
|
0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
||||||
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61,
|
||||||
|
0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x72,
|
||||||
|
0x65, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74,
|
||||||
|
0x65, 0x64, 0x5f, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65,
|
||||||
|
0x61, 0x74, 0x65, 0x64, 0x54, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||||||
|
0x64, 0x5f, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61,
|
||||||
|
0x74, 0x65, 0x64, 0x54, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20,
|
||||||
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74,
|
||||||
|
0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12,
|
||||||
|
0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
|
||||||
|
0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x5f, 0x69, 0x64,
|
||||||
|
0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75,
|
||||||
|
0x74, 0x49, 0x64, 0x73, 0x12, 0x37, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69,
|
||||||
|
0x74, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x73, 0x6c, 0x61, 0x73, 0x68,
|
||||||
|
0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74,
|
||||||
|
0x79, 0x52, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x42, 0x99, 0x01,
|
||||||
|
0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x73, 0x74, 0x6f, 0x72,
|
||||||
|
0x65, 0x42, 0x0f, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f,
|
||||||
|
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||||||
|
0x2f, 0x62, 0x6f, 0x6f, 0x6a, 0x61, 0x63, 0x6b, 0x2f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x2f, 0x70,
|
||||||
|
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02,
|
||||||
|
0x03, 0x53, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x53, 0x74, 0x6f,
|
||||||
|
0x72, 0x65, 0xca, 0x02, 0x0b, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65,
|
||||||
|
0xe2, 0x02, 0x17, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47,
|
||||||
|
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x53, 0x6c, 0x61,
|
||||||
|
0x73, 0x68, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
|
0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_store_collection_proto_rawDescOnce sync.Once
|
||||||
|
file_store_collection_proto_rawDescData = file_store_collection_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_store_collection_proto_rawDescGZIP() []byte {
|
||||||
|
file_store_collection_proto_rawDescOnce.Do(func() {
|
||||||
|
file_store_collection_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_collection_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_store_collection_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_store_collection_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||||
|
var file_store_collection_proto_goTypes = []interface{}{
|
||||||
|
(*Collection)(nil), // 0: slash.store.Collection
|
||||||
|
(Visibility)(0), // 1: slash.store.Visibility
|
||||||
|
}
|
||||||
|
var file_store_collection_proto_depIdxs = []int32{
|
||||||
|
1, // 0: slash.store.Collection.visibility:type_name -> slash.store.Visibility
|
||||||
|
1, // [1:1] is the sub-list for method output_type
|
||||||
|
1, // [1:1] is the sub-list for method input_type
|
||||||
|
1, // [1:1] is the sub-list for extension type_name
|
||||||
|
1, // [1:1] is the sub-list for extension extendee
|
||||||
|
0, // [0:1] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_store_collection_proto_init() }
|
||||||
|
func file_store_collection_proto_init() {
|
||||||
|
if File_store_collection_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
file_store_common_proto_init()
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_store_collection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*Collection); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_store_collection_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 1,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_store_collection_proto_goTypes,
|
||||||
|
DependencyIndexes: file_store_collection_proto_depIdxs,
|
||||||
|
MessageInfos: file_store_collection_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_store_collection_proto = out.File
|
||||||
|
file_store_collection_proto_rawDesc = nil
|
||||||
|
file_store_collection_proto_goTypes = nil
|
||||||
|
file_store_collection_proto_depIdxs = nil
|
||||||
|
}
|
@ -69,6 +69,58 @@ func (RowStatus) EnumDescriptor() ([]byte, []int) {
|
|||||||
return file_store_common_proto_rawDescGZIP(), []int{0}
|
return file_store_common_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Visibility int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
Visibility_VISIBILITY_UNSPECIFIED Visibility = 0
|
||||||
|
Visibility_PRIVATE Visibility = 1
|
||||||
|
Visibility_WORKSPACE Visibility = 2
|
||||||
|
Visibility_PUBLIC Visibility = 3
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for Visibility.
|
||||||
|
var (
|
||||||
|
Visibility_name = map[int32]string{
|
||||||
|
0: "VISIBILITY_UNSPECIFIED",
|
||||||
|
1: "PRIVATE",
|
||||||
|
2: "WORKSPACE",
|
||||||
|
3: "PUBLIC",
|
||||||
|
}
|
||||||
|
Visibility_value = map[string]int32{
|
||||||
|
"VISIBILITY_UNSPECIFIED": 0,
|
||||||
|
"PRIVATE": 1,
|
||||||
|
"WORKSPACE": 2,
|
||||||
|
"PUBLIC": 3,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x Visibility) Enum() *Visibility {
|
||||||
|
p := new(Visibility)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x Visibility) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (Visibility) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_store_common_proto_enumTypes[1].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (Visibility) Type() protoreflect.EnumType {
|
||||||
|
return &file_store_common_proto_enumTypes[1]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x Visibility) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use Visibility.Descriptor instead.
|
||||||
|
func (Visibility) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_store_common_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
var File_store_common_proto protoreflect.FileDescriptor
|
var File_store_common_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_store_common_proto_rawDesc = []byte{
|
var file_store_common_proto_rawDesc = []byte{
|
||||||
@ -78,17 +130,22 @@ var file_store_common_proto_rawDesc = []byte{
|
|||||||
0x0a, 0x16, 0x52, 0x4f, 0x57, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53,
|
0x0a, 0x16, 0x52, 0x4f, 0x57, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53,
|
||||||
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f,
|
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f,
|
||||||
0x52, 0x4d, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56,
|
0x52, 0x4d, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56,
|
||||||
0x45, 0x44, 0x10, 0x02, 0x42, 0x95, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x6c, 0x61,
|
0x45, 0x44, 0x10, 0x02, 0x2a, 0x50, 0x0a, 0x0a, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69,
|
||||||
0x73, 0x68, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
0x74, 0x79, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59,
|
||||||
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
|
0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b,
|
||||||
0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x6f, 0x6f, 0x6a, 0x61, 0x63, 0x6b, 0x2f, 0x73, 0x6c, 0x61, 0x73,
|
0x0a, 0x07, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x57,
|
||||||
0x68, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72,
|
0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x55,
|
||||||
0x65, 0xa2, 0x02, 0x03, 0x53, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x2e,
|
0x42, 0x4c, 0x49, 0x43, 0x10, 0x03, 0x42, 0x95, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x73,
|
||||||
0x53, 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x5c, 0x53, 0x74,
|
0x6c, 0x61, 0x73, 0x68, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d,
|
||||||
0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x5c, 0x53, 0x74, 0x6f, 0x72,
|
0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75,
|
||||||
0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c,
|
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x6f, 0x6f, 0x6a, 0x61, 0x63, 0x6b, 0x2f, 0x73, 0x6c,
|
||||||
0x53, 0x6c, 0x61, 0x73, 0x68, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72,
|
0x61, 0x73, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74,
|
||||||
0x6f, 0x74, 0x6f, 0x33,
|
0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x53, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x53, 0x6c, 0x61, 0x73,
|
||||||
|
0x68, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x5c,
|
||||||
|
0x53, 0x74, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x5c, 0x53, 0x74,
|
||||||
|
0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
|
||||||
|
0x02, 0x0c, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06,
|
||||||
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -103,9 +160,10 @@ func file_store_common_proto_rawDescGZIP() []byte {
|
|||||||
return file_store_common_proto_rawDescData
|
return file_store_common_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_store_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
var file_store_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||||
var file_store_common_proto_goTypes = []interface{}{
|
var file_store_common_proto_goTypes = []interface{}{
|
||||||
(RowStatus)(0), // 0: slash.store.RowStatus
|
(RowStatus)(0), // 0: slash.store.RowStatus
|
||||||
|
(Visibility)(0), // 1: slash.store.Visibility
|
||||||
}
|
}
|
||||||
var file_store_common_proto_depIdxs = []int32{
|
var file_store_common_proto_depIdxs = []int32{
|
||||||
0, // [0:0] is the sub-list for method output_type
|
0, // [0:0] is the sub-list for method output_type
|
||||||
@ -125,7 +183,7 @@ func file_store_common_proto_init() {
|
|||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_store_common_proto_rawDesc,
|
RawDescriptor: file_store_common_proto_rawDesc,
|
||||||
NumEnums: 1,
|
NumEnums: 2,
|
||||||
NumMessages: 0,
|
NumMessages: 0,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
|
@ -20,58 +20,6 @@ const (
|
|||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
)
|
)
|
||||||
|
|
||||||
type Visibility int32
|
|
||||||
|
|
||||||
const (
|
|
||||||
Visibility_VISIBILITY_UNSPECIFIED Visibility = 0
|
|
||||||
Visibility_PRIVATE Visibility = 1
|
|
||||||
Visibility_WORKSPACE Visibility = 2
|
|
||||||
Visibility_PUBLIC Visibility = 3
|
|
||||||
)
|
|
||||||
|
|
||||||
// Enum value maps for Visibility.
|
|
||||||
var (
|
|
||||||
Visibility_name = map[int32]string{
|
|
||||||
0: "VISIBILITY_UNSPECIFIED",
|
|
||||||
1: "PRIVATE",
|
|
||||||
2: "WORKSPACE",
|
|
||||||
3: "PUBLIC",
|
|
||||||
}
|
|
||||||
Visibility_value = map[string]int32{
|
|
||||||
"VISIBILITY_UNSPECIFIED": 0,
|
|
||||||
"PRIVATE": 1,
|
|
||||||
"WORKSPACE": 2,
|
|
||||||
"PUBLIC": 3,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
func (x Visibility) Enum() *Visibility {
|
|
||||||
p := new(Visibility)
|
|
||||||
*p = x
|
|
||||||
return p
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x Visibility) String() string {
|
|
||||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
||||||
}
|
|
||||||
|
|
||||||
func (Visibility) Descriptor() protoreflect.EnumDescriptor {
|
|
||||||
return file_store_shortcut_proto_enumTypes[0].Descriptor()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (Visibility) Type() protoreflect.EnumType {
|
|
||||||
return &file_store_shortcut_proto_enumTypes[0]
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x Visibility) Number() protoreflect.EnumNumber {
|
|
||||||
return protoreflect.EnumNumber(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use Visibility.Descriptor instead.
|
|
||||||
func (Visibility) EnumDescriptor() ([]byte, []int) {
|
|
||||||
return file_store_shortcut_proto_rawDescGZIP(), []int{0}
|
|
||||||
}
|
|
||||||
|
|
||||||
type Shortcut struct {
|
type Shortcut struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@ -308,22 +256,17 @@ var file_store_shortcut_proto_rawDesc = []byte{
|
|||||||
0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
|
0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
|
||||||
0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01,
|
0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01,
|
||||||
0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2a, 0x50, 0x0a, 0x0a, 0x56, 0x69, 0x73,
|
0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0x97, 0x01, 0x0a, 0x0f, 0x63, 0x6f,
|
||||||
0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x49, 0x53, 0x49, 0x42,
|
0x6d, 0x2e, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x0d, 0x53,
|
||||||
0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
|
0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28,
|
||||||
0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x01,
|
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x6f, 0x6f, 0x6a, 0x61,
|
||||||
0x12, 0x0d, 0x0a, 0x09, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x02, 0x12,
|
0x63, 0x6b, 0x2f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
|
||||||
0x0a, 0x0a, 0x06, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x03, 0x42, 0x97, 0x01, 0x0a, 0x0f,
|
0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x53, 0x53, 0x58, 0xaa, 0x02,
|
||||||
0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42,
|
0x0b, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, 0x53,
|
||||||
0x0d, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x63, 0x75, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
|
0x6c, 0x61, 0x73, 0x68, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17, 0x53, 0x6c, 0x61,
|
||||||
0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x6f, 0x6f,
|
0x73, 0x68, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
|
||||||
0x6a, 0x61, 0x63, 0x6b, 0x2f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x3a, 0x3a, 0x53, 0x74,
|
||||||
0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x53, 0x53, 0x58,
|
0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
0xaa, 0x02, 0x0b, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02,
|
|
||||||
0x0b, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17, 0x53,
|
|
||||||
0x6c, 0x61, 0x73, 0x68, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
|
|
||||||
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x3a, 0x3a,
|
|
||||||
0x53, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -338,18 +281,17 @@ func file_store_shortcut_proto_rawDescGZIP() []byte {
|
|||||||
return file_store_shortcut_proto_rawDescData
|
return file_store_shortcut_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_store_shortcut_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
||||||
var file_store_shortcut_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
var file_store_shortcut_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||||
var file_store_shortcut_proto_goTypes = []interface{}{
|
var file_store_shortcut_proto_goTypes = []interface{}{
|
||||||
(Visibility)(0), // 0: slash.store.Visibility
|
(*Shortcut)(nil), // 0: slash.store.Shortcut
|
||||||
(*Shortcut)(nil), // 1: slash.store.Shortcut
|
(*OpenGraphMetadata)(nil), // 1: slash.store.OpenGraphMetadata
|
||||||
(*OpenGraphMetadata)(nil), // 2: slash.store.OpenGraphMetadata
|
(RowStatus)(0), // 2: slash.store.RowStatus
|
||||||
(RowStatus)(0), // 3: slash.store.RowStatus
|
(Visibility)(0), // 3: slash.store.Visibility
|
||||||
}
|
}
|
||||||
var file_store_shortcut_proto_depIdxs = []int32{
|
var file_store_shortcut_proto_depIdxs = []int32{
|
||||||
3, // 0: slash.store.Shortcut.row_status:type_name -> slash.store.RowStatus
|
2, // 0: slash.store.Shortcut.row_status:type_name -> slash.store.RowStatus
|
||||||
0, // 1: slash.store.Shortcut.visibility:type_name -> slash.store.Visibility
|
3, // 1: slash.store.Shortcut.visibility:type_name -> slash.store.Visibility
|
||||||
2, // 2: slash.store.Shortcut.og_metadata:type_name -> slash.store.OpenGraphMetadata
|
1, // 2: slash.store.Shortcut.og_metadata:type_name -> slash.store.OpenGraphMetadata
|
||||||
3, // [3:3] is the sub-list for method output_type
|
3, // [3:3] is the sub-list for method output_type
|
||||||
3, // [3:3] is the sub-list for method input_type
|
3, // [3:3] is the sub-list for method input_type
|
||||||
3, // [3:3] is the sub-list for extension type_name
|
3, // [3:3] is the sub-list for extension type_name
|
||||||
@ -394,14 +336,13 @@ func file_store_shortcut_proto_init() {
|
|||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_store_shortcut_proto_rawDesc,
|
RawDescriptor: file_store_shortcut_proto_rawDesc,
|
||||||
NumEnums: 1,
|
NumEnums: 0,
|
||||||
NumMessages: 2,
|
NumMessages: 2,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
GoTypes: file_store_shortcut_proto_goTypes,
|
GoTypes: file_store_shortcut_proto_goTypes,
|
||||||
DependencyIndexes: file_store_shortcut_proto_depIdxs,
|
DependencyIndexes: file_store_shortcut_proto_depIdxs,
|
||||||
EnumInfos: file_store_shortcut_proto_enumTypes,
|
|
||||||
MessageInfos: file_store_shortcut_proto_msgTypes,
|
MessageInfos: file_store_shortcut_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_store_shortcut_proto = out.File
|
File_store_shortcut_proto = out.File
|
||||||
|
27
proto/store/collection.proto
Normal file
27
proto/store/collection.proto
Normal 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;
|
||||||
|
}
|
@ -11,3 +11,13 @@ enum RowStatus {
|
|||||||
|
|
||||||
ARCHIVED = 2;
|
ARCHIVED = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum Visibility {
|
||||||
|
VISIBILITY_UNSPECIFIED = 0;
|
||||||
|
|
||||||
|
PRIVATE = 1;
|
||||||
|
|
||||||
|
WORKSPACE = 2;
|
||||||
|
|
||||||
|
PUBLIC = 3;
|
||||||
|
}
|
||||||
|
@ -39,13 +39,3 @@ message OpenGraphMetadata {
|
|||||||
|
|
||||||
string image = 3;
|
string image = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Visibility {
|
|
||||||
VISIBILITY_UNSPECIFIED = 0;
|
|
||||||
|
|
||||||
PRIVATE = 1;
|
|
||||||
|
|
||||||
WORKSPACE = 2;
|
|
||||||
|
|
||||||
PUBLIC = 3;
|
|
||||||
}
|
|
||||||
|
@ -65,6 +65,7 @@ CREATE TABLE collection (
|
|||||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
creator_id INTEGER NOT NULL,
|
creator_id INTEGER NOT NULL,
|
||||||
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
|
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
|
||||||
|
updated_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
|
||||||
name TEXT NOT NULL UNIQUE,
|
name TEXT NOT NULL UNIQUE,
|
||||||
title TEXT NOT NULL DEFAULT '',
|
title TEXT NOT NULL DEFAULT '',
|
||||||
description TEXT NOT NULL DEFAULT '',
|
description TEXT NOT NULL DEFAULT '',
|
||||||
|
@ -3,6 +3,7 @@ CREATE TABLE collection (
|
|||||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
creator_id INTEGER NOT NULL,
|
creator_id INTEGER NOT NULL,
|
||||||
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
|
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
|
||||||
|
updated_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
|
||||||
name TEXT NOT NULL UNIQUE,
|
name TEXT NOT NULL UNIQUE,
|
||||||
title TEXT NOT NULL DEFAULT '',
|
title TEXT NOT NULL DEFAULT '',
|
||||||
description TEXT NOT NULL DEFAULT '',
|
description TEXT NOT NULL DEFAULT '',
|
||||||
|
@ -65,6 +65,7 @@ CREATE TABLE collection (
|
|||||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
creator_id INTEGER NOT NULL,
|
creator_id INTEGER NOT NULL,
|
||||||
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
|
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
|
||||||
|
updated_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
|
||||||
name TEXT NOT NULL UNIQUE,
|
name TEXT NOT NULL UNIQUE,
|
||||||
title TEXT NOT NULL DEFAULT '',
|
title TEXT NOT NULL DEFAULT '',
|
||||||
description TEXT NOT NULL DEFAULT '',
|
description TEXT NOT NULL DEFAULT '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user