feat: add initial migration hook
This commit is contained in:
1 parent
79866a287f
commit
27e9f775be
174 files changed
+4234
-2180
No files matched your search
@@ -22,7 +22,7 @@ message HostCatalog {
|
||||
// @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,9 +36,9 @@ message HostCatalog {
|
||||
that: "description"
|
||||
}];
|
||||
|
||||
// The scope_id of the owning scope and must be set.
|
||||
// The project_id of the owning scope and must be set.
|
||||
// @inject_tag: `gorm:"not_null"`
|
||||
string scope_id = 6;
|
||||
string project_id = 6;
|
||||
|
||||
// The public id of the plugin this catalog uses.
|
||||
// @inject_tag: `gorm:"not_null"`
|
||||
|
||||
@@ -22,7 +22,7 @@ message HostCatalog {
|
||||
// @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,9 +36,9 @@ message HostCatalog {
|
||||
that: "description"
|
||||
}];
|
||||
|
||||
// The scope_id of the owning scope and must be set.
|
||||
// The project_id of the owning scope and 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"`
|
||||
|
||||
@@ -10,9 +10,9 @@ message Catalog {
|
||||
// @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 scope and must be set.
|
||||
// @inject_tag: `gorm:"not_null"`
|
||||
string scope_id = 2;
|
||||
string project_id = 2;
|
||||
}
|
||||
|
||||
message Host {
|
||||
|
||||
Reference in new issue
Block a user