diff --git a/pkg/rpc/pb/model_user_access_key.pb.go b/pkg/rpc/pb/model_user_access_key.pb.go index 2709da5..fabd885 100644 --- a/pkg/rpc/pb/model_user_access_key.pb.go +++ b/pkg/rpc/pb/model_user_access_key.pb.go @@ -38,6 +38,7 @@ type UserAccessKey struct { UniqueId string `protobuf:"bytes,5,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"` Secret string `protobuf:"bytes,6,opt,name=secret,proto3" json:"secret,omitempty"` Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` + AccessedAt int64 `protobuf:"varint,8,opt,name=accessedAt,proto3" json:"accessedAt,omitempty"` } func (x *UserAccessKey) Reset() { @@ -121,12 +122,19 @@ func (x *UserAccessKey) GetDescription() string { return "" } +func (x *UserAccessKey) GetAccessedAt() int64 { + if x != nil { + return x.AccessedAt + } + return 0 +} + var File_models_model_user_access_key_proto protoreflect.FileDescriptor var file_models_model_user_access_key_proto_rawDesc = []byte{ 0x0a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xbf, 0x01, 0x0a, 0x0d, 0x55, 0x73, 0x65, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xdf, 0x01, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, @@ -138,7 +146,9 @@ var file_models_model_user_access_key_proto_rawDesc = []byte{ 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x41, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, + 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x41, 0x74, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/pkg/rpc/protos/models/model_user_access_key.proto b/pkg/rpc/protos/models/model_user_access_key.proto index 3d64a3b..34b4895 100644 --- a/pkg/rpc/protos/models/model_user_access_key.proto +++ b/pkg/rpc/protos/models/model_user_access_key.proto @@ -12,4 +12,5 @@ message UserAccessKey { string uniqueId = 5; string secret = 6; string description = 7; + int64 accessedAt = 8; } \ No newline at end of file