Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: add version control related fields to schema design proto (#7637)
boojack8f494f73d0af
diff --git a/proto/store/sheet.proto b/proto/store/sheet.protoindex dc21a2f93b..cae189b65d 100644--- a/proto/store/sheet.proto+++ b/proto/store/sheet.proto@@ -32,9 +32,21 @@ message SheetPayload {repeated UsedByIssue used_by_issues = 3;message SchemaDesign {- // The baseline instance change history id of the schema design.- string baseline_change_history_id = 1;+ enum Type {+ TYPE_UNSPECIFIED = 0;+ // Main branch type is the main version of schema design. And only allow to be updated/merged with personal drafts.+ MAIN_BRANCH = 1;+ // Personal draft type is a copy of the main branch type schema designs.+ PERSONAL_DRAFT = 2;+ }+ // The type of the schema design.+ Type type = 1;+ // The database instance engine of the schema design.Engine engine = 2;+ // The baseline instance change history id of the schema design.+ string baseline_change_history_id = 3;+ // The baseline schema design id. Using for personal draft types. AKA sheet id.+ string baseline_schema_design_id = 4;}SchemaDesign schema_design = 4;}diff --git a/proto/v1/schema_design_service.proto b/proto/v1/schema_design_service.protoindex 14f314ef67..426cf70435 100644--- a/proto/v1/schema_design_service.proto+++ b/proto/v1/schema_design_service.proto@@ -85,19 +85,32 @@ message SchemaDesign {// If not specified, the latest schema of database will be used as baseline schema.string schema_version = 9 [(google.api.field_behavior) = IMMUTABLE];+ enum Type {+ TYPE_UNSPECIFIED = 0;+ // Main branch type is the main version of schema design. And only allow to be updated/merged with personal drafts.+ MAIN_BRANCH = 1;+ // Personal draft type is a copy of the main branch type schema designs.+ PERSONAL_DRAFT = 2;+ }+ // The type of the schema design.+ Type type = 10;++ // The etag of the schema design.+ string etag = 11;+// The creator of the schema design.// Format: users/{email}- string creator = 10 [(google.api.field_behavior) = OUTPUT_ONLY];+ string creator = 12 [(google.api.field_behavior) = OUTPUT_ONLY];// The updater of the schema design.// Format: users/{email}- string updater = 11 [(google.api.field_behavior) = OUTPUT_ONLY];+ string updater = 13 [(google.api.field_behavior) = OUTPUT_ONLY];// The timestamp when the schema design was created.- google.protobuf.Timestamp create_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];+ google.protobuf.Timestamp create_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY];// The timestamp when the schema design was last updated.- google.protobuf.Timestamp update_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY];+ google.protobuf.Timestamp update_time = 15 [(google.api.field_behavior) = OUTPUT_ONLY];}message GetSchemaDesignRequest {