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: update comments of schema design proto (#7007)
boojackaa04da44690e
diff --git a/frontend/src/types/proto/v1/schema_design_service.ts b/frontend/src/types/proto/v1/schema_design_service.tsindex c2b834d71e..4b58d13c3f 100644--- a/frontend/src/types/proto/v1/schema_design_service.ts+++ b/frontend/src/types/proto/v1/schema_design_service.ts@@ -13,21 +13,30 @@ export interface SchemaDesign {/*** The name of the schema design.* Format: projects/{project}/schemaDesigns/{schemaDesign}+ * {schemaDesign} should be the id of a sheet.*/name: string;- /** The title of schema design. AKA sheet's title. */+ /** The title of schema design. AKA sheet's name. */title: string;- /** Current editing schema. */+ /** The schema of schema design. AKA sheet's statement. */schema: string;+ /** The metadata of the current editing schema. */schemaMetadata?: DatabaseMetadata;+ /** The baseline schema. */baselineSchema: string;+ /** The metadata of the baseline schema. */baselineSchemaMetadata?: DatabaseMetadata;+ /** The database engine of the schema design. */engine: Engine;/*** The name of the baseline database.* Format: instances/{instance}/databases/{database}*/baselineDatabase: string;+ /**+ * The selected schema version of the baseline database.+ * If not specified, the latest schema of database will be used as baseline schema.+ */schemaVersion: string;/*** The creator of the schema design.@@ -39,7 +48,9 @@ export interface SchemaDesign {* Format: users/{email}*/updater: string;+ /** The timestamp when the schema design was created. */createTime?: Date;+ /** The timestamp when the schema design was last updated. */updateTime?: Date;}diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex f6f3b259a7..217727a0eb 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -7634,19 +7634,19 @@ When paginating, all other parameters provided to `ListSchemaDesigns` must match| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the schema design. Format: projects/{project}/schemaDesigns/{schemaDesign} |-| title | [string](#string) | | The title of schema design. AKA sheet's title. |-| schema | [string](#string) | | Current editing schema. |-| schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | |-| baseline_schema | [string](#string) | | |-| baseline_schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | |-| engine | [Engine](#bytebase-v1-Engine) | | |+| name | [string](#string) | | The name of the schema design. Format: projects/{project}/schemaDesigns/{schemaDesign} {schemaDesign} should be the id of a sheet. |+| title | [string](#string) | | The title of schema design. AKA sheet's name. |+| schema | [string](#string) | | The schema of schema design. AKA sheet's statement. |+| schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the current editing schema. |+| baseline_schema | [string](#string) | | The baseline schema. |+| baseline_schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the baseline schema. |+| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the schema design. || baseline_database | [string](#string) | | The name of the baseline database. Format: instances/{instance}/databases/{database} |-| schema_version | [string](#string) | | |+| schema_version | [string](#string) | | The selected schema version of the baseline database. If not specified, the latest schema of database will be used as baseline schema. || creator | [string](#string) | | The creator of the schema design. Format: users/{email} || updater | [string](#string) | | The updater of the schema design. Format: users/{email} |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the schema design was created. |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the schema design was last updated. |diff --git a/proto/generated-go/v1/schema_design_service.pb.go b/proto/generated-go/v1/schema_design_service.pb.goindex d2fd423af9..c68178e083 100644--- a/proto/generated-go/v1/schema_design_service.pb.go+++ b/proto/generated-go/v1/schema_design_service.pb.go@@ -31,26 +31,35 @@ type SchemaDesign struct {// The name of the schema design.// Format: projects/{project}/schemaDesigns/{schemaDesign}+ // {schemaDesign} should be the id of a sheet.Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The title of schema design. AKA sheet's title.+ // The title of schema design. AKA sheet's name.Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`- // Current editing schema.- Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"`- SchemaMetadata *DatabaseMetadata `protobuf:"bytes,4,opt,name=schema_metadata,json=schemaMetadata,proto3" json:"schema_metadata,omitempty"`- BaselineSchema string `protobuf:"bytes,5,opt,name=baseline_schema,json=baselineSchema,proto3" json:"baseline_schema,omitempty"`+ // The schema of schema design. AKA sheet's statement.+ Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"`+ // The metadata of the current editing schema.+ SchemaMetadata *DatabaseMetadata `protobuf:"bytes,4,opt,name=schema_metadata,json=schemaMetadata,proto3" json:"schema_metadata,omitempty"`+ // The baseline schema.+ BaselineSchema string `protobuf:"bytes,5,opt,name=baseline_schema,json=baselineSchema,proto3" json:"baseline_schema,omitempty"`+ // The metadata of the baseline schema.BaselineSchemaMetadata *DatabaseMetadata `protobuf:"bytes,6,opt,name=baseline_schema_metadata,json=baselineSchemaMetadata,proto3" json:"baseline_schema_metadata,omitempty"`- Engine Engine `protobuf:"varint,7,opt,name=engine,proto3,enum=bytebase.v1.Engine" json:"engine,omitempty"`+ // The database engine of the schema design.+ Engine Engine `protobuf:"varint,7,opt,name=engine,proto3,enum=bytebase.v1.Engine" json:"engine,omitempty"`// The name of the baseline database.// Format: instances/{instance}/databases/{database}BaselineDatabase string `protobuf:"bytes,8,opt,name=baseline_database,json=baselineDatabase,proto3" json:"baseline_database,omitempty"`- SchemaVersion string `protobuf:"bytes,9,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`+ // The selected schema version of the baseline database.+ // If not specified, the latest schema of database will be used as baseline schema.+ SchemaVersion string `protobuf:"bytes,9,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`// The creator of the schema design.// Format: users/{email}Creator string `protobuf:"bytes,10,opt,name=creator,proto3" json:"creator,omitempty"`// The updater of the schema design.// Format: users/{email}- Updater string `protobuf:"bytes,11,opt,name=updater,proto3" json:"updater,omitempty"`+ Updater string `protobuf:"bytes,11,opt,name=updater,proto3" json:"updater,omitempty"`+ // The timestamp when the schema design was created.CreateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`+ // The timestamp when the schema design was last updated.UpdateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`}diff --git a/proto/v1/schema_design_service.proto b/proto/v1/schema_design_service.protoindex 134e61d10e..6b4bdcea41 100644--- a/proto/v1/schema_design_service.proto+++ b/proto/v1/schema_design_service.proto@@ -49,26 +49,33 @@ service SchemaDesignService {message SchemaDesign {// The name of the schema design.// Format: projects/{project}/schemaDesigns/{schemaDesign}+ // {schemaDesign} should be the id of a sheet.string name = 1;- // The title of schema design. AKA sheet's title.+ // The title of schema design. AKA sheet's name.string title = 2;- // Current editing schema.+ // The schema of schema design. AKA sheet's statement.string schema = 3 [(google.api.field_behavior) = OUTPUT_ONLY];+ // The metadata of the current editing schema.DatabaseMetadata schema_metadata = 4;+ // The baseline schema.string baseline_schema = 5 [(google.api.field_behavior) = OUTPUT_ONLY];+ // The metadata of the baseline schema.DatabaseMetadata baseline_schema_metadata = 6 [(google.api.field_behavior) = OUTPUT_ONLY];+ // The database engine of the schema design.Engine engine = 7;// The name of the baseline database.// Format: instances/{instance}/databases/{database}string baseline_database = 8 [(google.api.field_behavior) = IMMUTABLE];+ // The selected schema version of the baseline database.+ // If not specified, the latest schema of database will be used as baseline schema.string schema_version = 9 [(google.api.field_behavior) = IMMUTABLE];// The creator of the schema design.@@ -79,8 +86,10 @@ message SchemaDesign {// Format: users/{email}string updater = 11 [(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];+ // The timestamp when the schema design was last updated.google.protobuf.Timestamp update_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY];}