feat: add initial migration hook

This commit is contained in:
Damian Debkowski committed 2022-08-22 12:15:20 -07:00
1 parent 79866a287f
commit 27e9f775be
174 files changed
+4234 -2180

No files matched your search

@@ -22,7 +22,7 @@ message CredentialStore {
// @inject_tag: `gorm:"default:current_timestamp"`
timestamp.v1.Timestamp update_time = 3;
// name is optional. If set, it must be unique within scope_id.
// name is optional. If set, it must be unique within project_id.
// @inject_tag: `gorm:"default:null"`
string name = 4 [(custom_options.v1.mask_mapping) = {
this: "Name"
@@ -36,10 +36,10 @@ message CredentialStore {
that: "description"
}];
// The scope_id of the owning scope.
// The project_id of the owning scope.
// It must be set.
// @inject_tag: `gorm:"not_null"`
string scope_id = 6;
string project_id = 6;
// version allows optimistic locking of the resource.
// @inject_tag: `gorm:"default:null"`
@@ -59,7 +59,7 @@ message UsernamePasswordCredential {
// @inject_tag: `gorm:"default:current_timestamp"`
timestamp.v1.Timestamp update_time = 3;
// name is optional. If set, it must be unique within scope_id.
// name is optional. If set, it must be unique within project_id.
// @inject_tag: `gorm:"default:null"`
string name = 4 [(custom_options.v1.mask_mapping) = {
this: "Name"
@@ -130,7 +130,7 @@ message SshPrivateKeyCredential {
// @inject_tag: `gorm:"default:current_timestamp"`
timestamp.v1.Timestamp update_time = 3;
// name is optional. If set, it must be unique within scope_id.
// name is optional. If set, it must be unique within project_id.
// @inject_tag: `gorm:"default:null"`
string name = 4 [(custom_options.v1.mask_mapping) = {
this: "Name"
@@ -10,9 +10,9 @@ message Store {
// @inject_tag: `gorm:"primary_key"`
string public_id = 1;
// The scope_id of the owning scope and must be set.
// The project_id of the owning project and must be set.
// @inject_tag: `gorm:"not_null"`
string scope_id = 2;
string project_id = 2;
}
message Library {
@@ -26,7 +26,7 @@ message CredentialStore {
// @inject_tag: `gorm:"default:null"`
timestamp.v1.Timestamp delete_time = 4;
// name is optional. If set, it must be unique within scope_id.
// name is optional. If set, it must be unique within project_id.
// @inject_tag: `gorm:"default:null"`
string name = 5 [(custom_options.v1.mask_mapping) = {
this: "Name"
@@ -40,10 +40,10 @@ message CredentialStore {
that: "description"
}];
// The scope_id of the owning scope.
// The project_id of the owning project.
// It must be set.
// @inject_tag: `gorm:"not_null"`
string scope_id = 7;
string project_id = 7;
// version allows optimistic locking of the resource.
// @inject_tag: `gorm:"default:null"`
@@ -212,7 +212,7 @@ message CredentialLibrary {
// @inject_tag: `gorm:"default:current_timestamp"`
timestamp.v1.Timestamp update_time = 3;
// name is optional. If set, it must be unique within scope_id.
// name is optional. If set, it must be unique within project_id.
// @inject_tag: `gorm:"default:null"`
string name = 4 [(custom_options.v1.mask_mapping) = {
this: "Name"