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: support category in template (#7127)
ecmadao28a70613f9c6
diff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.goindex 45ed8154ce..321292468e 100644--- a/backend/api/v1/setting_service.go+++ b/backend/api/v1/setting_service.go@@ -862,8 +862,9 @@ func convertToSchemaTemplateSetting(s *storepb.SchemaTemplateSetting) *v1pb.Schev1Templates := []*v1pb.SchemaTemplateSetting_FieldTemplate{}for _, template := range s.FieldTemplates {v1Templates = append(v1Templates, &v1pb.SchemaTemplateSetting_FieldTemplate{- Id: template.Id,- Engine: v1pb.Engine(template.Engine),+ Id: template.Id,+ Engine: v1pb.Engine(template.Engine),+ Category: template.Category,Column: &v1pb.ColumnMetadata{Name: template.Column.Name,Type: template.Column.Type,diff --git a/frontend/src/components/SchemaEditor/Panels/TableEditor.vue b/frontend/src/components/SchemaEditor/Panels/TableEditor.vueindex 3512844e7f..3d7dccf40e 100644--- a/frontend/src/components/SchemaEditor/Panels/TableEditor.vue+++ b/frontend/src/components/SchemaEditor/Panels/TableEditor.vue@@ -282,10 +282,12 @@@close="state.showSchemaTemplateDrawer = false"><DrawerContent :title="$t('schema-template.field-template')">- <SettingWorkspaceSchemaTemplate- :engine="databaseEngine"- @apply="handleApplyColumnTemplate"- />+ <div class="w-[46rem]">+ <SettingWorkspaceSchemaTemplate+ :engine="databaseEngine"+ @apply="handleApplyColumnTemplate"+ />+ </div></DrawerContent></Drawer><FeatureModaldiff --git a/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue b/frontend/src/components/SchemaTemplate/FieldTemplateForm.vueindex 1695cae287..1f4ea02de5 100644--- a/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue+++ b/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue@@ -2,6 +2,39 @@<DrawerContent :title="$t('schema-template.field-template')"><div class="space-y-6 divide-y divide-block-border"><div class="space-y-6">+ <!-- category -->+ <div class="sm:col-span-2 sm:col-start-1">+ <label for="category" class="textlabel">+ {{ $t("schema-template.form.category") }}+ </label>+ <p class="text-sm text-gray-500 mb-2">+ {{ $t("schema-template.form.category-desc") }}+ </p>+ <div class="relative flex flex-row justify-between items-center mt-1">+ <input+ v-model="state.category"+ required+ name="category"+ type="text"+ :placeholder="$t('schema-template.form.unclassified')"+ class="textfield w-full"+ :disabled="!allowEdit"+ />+ <NDropdown+ trigger="click"+ :options="categoryOptions"+ :disabled="!allowEdit"+ @select="(category: string) => (state.category = category)"+ >+ <button class="absolute right-5">+ <heroicons-solid:chevron-up-down+ class="w-4 h-auto text-gray-400"+ />+ </button>+ </NDropdown>+ </div>+ </div>+<div class="w-full mb-6 space-y-1"><label for="engine" class="textlabel">{{ $t("database.engine") }}@@ -183,6 +216,7 @@ interface LocalState extends SchemaTemplateSetting_FieldTemplate {}const state = reactive<LocalState>({id: props.template.id,engine: props.template.engine,+ category: props.template.category,column: Object.assign({}, props.template.column),});const store = useSchemaEditorStore();@@ -202,6 +236,22 @@ const dataTypeOptions = computed(() => {});});+const categoryOptions = computed(() => {+ const options = [];+ for (const category of new Set(+ store.schemaTemplateList.map((template) => template.category)+ ).values()) {+ if (!category) {+ continue;+ }+ options.push({+ label: category,+ key: category,+ });+ }+ return options;+});+const changeEngine = (engine: Engine) => {if (allowEdit.value) {state.engine = engine;diff --git a/frontend/src/components/SchemaTemplate/FieldTemplateView.vue b/frontend/src/components/SchemaTemplate/FieldTemplateView.vuenew file mode 100644index 0000000000..62ac0b9f5d--- /dev/null+++ b/frontend/src/components/SchemaTemplate/FieldTemplateView.vue@@ -0,0 +1,113 @@+<template>+ <div v-if="templateList.length === 0" class="bg-white rounded-lg">+ <div+ class="border-4 border-dashed border-gray-200 rounded-lg h-96 flex justify-center items-center"+ >+ <div class="text-center flex flex-col justify-center items-center">+ <img src="../../assets/illustration/no-data.webp" class="w-52" />+ </div>+ </div>+ </div>+ <div v-else class="flex">+ <div+ class="hidden sm:flex w-1/5 max-w-xs flex-col space-y-3 border-r mr-5 pr-5"+ >+ <p class="text-lg">+ {{ $t("schema-template.form.category") }}+ </p>+ <div class="space-y-2">+ <label+ v-for="item in categoryList"+ :key="item.id"+ class="flex items-center gap-x-1 text-sm text-gray-600"+ >+ <input+ type="checkbox"+ :value="item"+ :checked="state.selectedCategory.has(item.id)"+ class="h-4 w-4 border-gray-300 rounded text-indigo-600 focus:ring-indigo-500"+ @input="toggleCategoryCheck(item.id)"+ />+ <span class="text-ellipsis whitespace-nowrap overflow-hidden">+ {{ item.text }}+ </span>+ <span+ class="items-center text-xs px-2 py-0.5 rounded-full bg-gray-200 text-gray-800"+ >+ {{ item.count }}+ </span>+ </label>+ </div>+ </div>+ <FieldTemplateTable+ :engine="engine"+ :readonly="readonly"+ :template-list="filteredTemplateList"+ class="flex-1"+ @view="(template: SchemaTemplateSetting_FieldTemplate) => $emit('view', template)"+ @apply="(template: SchemaTemplateSetting_FieldTemplate) => $emit('apply', template)"+ />+ </div>+</template>++<script lang="ts" setup>+import { reactive, computed } from "vue";+import { useI18n } from "vue-i18n";+import { Engine } from "@/types/proto/v1/common";+import { SchemaTemplateSetting_FieldTemplate } from "@/types/proto/v1/setting_service";++interface LocalState {+ selectedCategory: Set<string>;+}++const props = defineProps<{+ engine?: Engine;+ readonly: boolean;+ templateList: SchemaTemplateSetting_FieldTemplate[];+}>();++defineEmits<{+ (event: "view", item: SchemaTemplateSetting_FieldTemplate): void;+ (event: "apply", item: SchemaTemplateSetting_FieldTemplate): void;+}>();++const state = reactive<LocalState>({+ selectedCategory: new Set<string>(),+});+const { t } = useI18n();++const toggleCategoryCheck = (category: string) => {+ if (state.selectedCategory.has(category)) {+ state.selectedCategory.delete(category);+ } else {+ state.selectedCategory.add(category);+ }+};++const categoryList = computed(() => {+ const categoryMap = new Map<string, number>();+ for (const template of props.templateList) {+ const num = categoryMap.get(template.category) ?? 0;+ categoryMap.set(template.category, num + 1);+ }++ const resp = [];+ for (const [category, count] of categoryMap.entries()) {+ resp.push({+ id: category,+ text: category || t("schema-template.form.unclassified"),+ count,+ });+ }+ return resp;+});++const filteredTemplateList = computed(() => {+ if (state.selectedCategory.size === 0) {+ return props.templateList;+ }+ return props.templateList.filter((template) =>+ state.selectedCategory.has(template.category)+ );+});+</script>diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 6a78733a53..b7b19843ad 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2602,6 +2602,9 @@"description": "You can pre-define the field template, then apply the template during the schema change.","search-by-name-or-comment": "Search by name or comment","form": {+ "category": "Category",+ "category-desc": "Select an existed category or create a new one",+ "unclassified": "Unclassified","column-name": "Column name","column-type": "Column Type","default-value": "Default value",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex b324d54f97..9b63e25e3a 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -2603,6 +2603,9 @@"description": "Predefina la plantilla de campo, luego aplique la plantilla durante el cambio de esquema.","search-by-name-or-comment": "Buscar por nombre o comentario","form": {+ "category": "Categoría",+ "category-desc": "Seleccione una categoría existente o cree una nueva",+ "unclassified": "Desclasificada","column-name": "Nombre de la columna","column-type": "Tipo de columna","default-value": "Valor por defecto",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 9e37f30aa6..47943570a8 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -2595,6 +2595,9 @@"description": "预定义 Schema 模板,之后可以在变更或设计 Schema 时应用这些模板。","search-by-name-or-comment": "根据名称或备注搜索","form": {+ "category": "分类",+ "category-desc": "选择一个已有分类,或者创建新分类",+ "unclassified": "未分类","column-name": "字段名","column-type": "字段类型","default-value": "默认值",diff --git a/frontend/src/types/proto/store/setting.ts b/frontend/src/types/proto/store/setting.tsindex deefc8a47e..3a7358e12d 100644--- a/frontend/src/types/proto/store/setting.ts+++ b/frontend/src/types/proto/store/setting.ts@@ -183,6 +183,7 @@ export interface SchemaTemplateSetting {export interface SchemaTemplateSetting_FieldTemplate {id: string;engine: Engine;+ category: string;column?: ColumnMetadata | undefined;}@@ -927,7 +928,7 @@ export const SchemaTemplateSetting = {};function createBaseSchemaTemplateSetting_FieldTemplate(): SchemaTemplateSetting_FieldTemplate {- return { id: "", engine: 0, column: undefined };+ return { id: "", engine: 0, category: "", column: undefined };}export const SchemaTemplateSetting_FieldTemplate = {@@ -938,8 +939,11 @@ export const SchemaTemplateSetting_FieldTemplate = {if (message.engine !== 0) {writer.uint32(16).int32(message.engine);}+ if (message.category !== "") {+ writer.uint32(26).string(message.category);+ }if (message.column !== undefined) {- ColumnMetadata.encode(message.column, writer.uint32(26).fork()).ldelim();+ ColumnMetadata.encode(message.column, writer.uint32(34).fork()).ldelim();}return writer;},@@ -970,6 +974,13 @@ export const SchemaTemplateSetting_FieldTemplate = {break;}+ message.category = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }+message.column = ColumnMetadata.decode(reader, reader.uint32());continue;}@@ -985,6 +996,7 @@ export const SchemaTemplateSetting_FieldTemplate = {return {id: isSet(object.id) ? String(object.id) : "",engine: isSet(object.engine) ? engineFromJSON(object.engine) : 0,+ category: isSet(object.category) ? String(object.category) : "",column: isSet(object.column) ? ColumnMetadata.fromJSON(object.column) : undefined,};},@@ -993,6 +1005,7 @@ export const SchemaTemplateSetting_FieldTemplate = {const obj: any = {};message.id !== undefined && (obj.id = message.id);message.engine !== undefined && (obj.engine = engineToJSON(message.engine));+ message.category !== undefined && (obj.category = message.category);message.column !== undefined && (obj.column = message.column ? ColumnMetadata.toJSON(message.column) : undefined);return obj;},@@ -1005,6 +1018,7 @@ export const SchemaTemplateSetting_FieldTemplate = {const message = createBaseSchemaTemplateSetting_FieldTemplate();message.id = object.id ?? "";message.engine = object.engine ?? 0;+ message.category = object.category ?? "";message.column = (object.column !== undefined && object.column !== null)? ColumnMetadata.fromPartial(object.column): undefined;diff --git a/frontend/src/types/proto/v1/setting_service.ts b/frontend/src/types/proto/v1/setting_service.tsindex 654a495bf0..f2c2083635 100644--- a/frontend/src/types/proto/v1/setting_service.ts+++ b/frontend/src/types/proto/v1/setting_service.ts@@ -320,6 +320,7 @@ export interface SchemaTemplateSetting {export interface SchemaTemplateSetting_FieldTemplate {id: string;engine: Engine;+ category: string;column?: ColumnMetadata | undefined;}@@ -1880,7 +1881,7 @@ export const SchemaTemplateSetting = {};function createBaseSchemaTemplateSetting_FieldTemplate(): SchemaTemplateSetting_FieldTemplate {- return { id: "", engine: 0, column: undefined };+ return { id: "", engine: 0, category: "", column: undefined };}export const SchemaTemplateSetting_FieldTemplate = {@@ -1891,8 +1892,11 @@ export const SchemaTemplateSetting_FieldTemplate = {if (message.engine !== 0) {writer.uint32(16).int32(message.engine);}+ if (message.category !== "") {+ writer.uint32(26).string(message.category);+ }if (message.column !== undefined) {- ColumnMetadata.encode(message.column, writer.uint32(26).fork()).ldelim();+ ColumnMetadata.encode(message.column, writer.uint32(34).fork()).ldelim();}return writer;},@@ -1923,6 +1927,13 @@ export const SchemaTemplateSetting_FieldTemplate = {break;}+ message.category = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }+message.column = ColumnMetadata.decode(reader, reader.uint32());continue;}@@ -1938,6 +1949,7 @@ export const SchemaTemplateSetting_FieldTemplate = {return {id: isSet(object.id) ? String(object.id) : "",engine: isSet(object.engine) ? engineFromJSON(object.engine) : 0,+ category: isSet(object.category) ? String(object.category) : "",column: isSet(object.column) ? ColumnMetadata.fromJSON(object.column) : undefined,};},@@ -1946,6 +1958,7 @@ export const SchemaTemplateSetting_FieldTemplate = {const obj: any = {};message.id !== undefined && (obj.id = message.id);message.engine !== undefined && (obj.engine = engineToJSON(message.engine));+ message.category !== undefined && (obj.category = message.category);message.column !== undefined && (obj.column = message.column ? ColumnMetadata.toJSON(message.column) : undefined);return obj;},@@ -1958,6 +1971,7 @@ export const SchemaTemplateSetting_FieldTemplate = {const message = createBaseSchemaTemplateSetting_FieldTemplate();message.id = object.id ?? "";message.engine = object.engine ?? 0;+ message.category = object.category ?? "";message.column = (object.column !== undefined && object.column !== null)? ColumnMetadata.fromPartial(object.column): undefined;diff --git a/frontend/src/views/SettingWorkspaceSchemaTemplate.vue b/frontend/src/views/SettingWorkspaceSchemaTemplate.vueindex 47dfaf2a80..af4ea3042d 100644--- a/frontend/src/views/SettingWorkspaceSchemaTemplate.vue+++ b/frontend/src/views/SettingWorkspaceSchemaTemplate.vue@@ -20,9 +20,7 @@</div></div></div>- <div- class="flex items-center gap-x-5 my-5 pb-5 border-b border-control-border"- >+ <div class="flex items-center gap-x-5 my-5 pb-5 border-b"><labelv-for="item in engineList":key="item"@@ -49,17 +47,7 @@@change-text="(val: string) => state.searchText = val"/></div>- <div v-if="filteredTemplateList.length === 0" class="bg-white rounded-lg">- <div- class="border-4 border-dashed border-gray-200 rounded-lg h-96 flex justify-center items-center"- >- <div class="text-center flex flex-col justify-center items-center">- <img src="../assets/illustration/no-data.webp" class="w-52" />- </div>- </div>- </div>- <FieldTemplateTable- v-else+ <FieldTemplateView:engine="engine":readonly="!hasPermission":template-list="filteredTemplateList"@@ -109,26 +97,25 @@ defineEmits<{(event: "apply", item: SchemaTemplateSetting_FieldTemplate): void;}>();-const initialTemplate = computed(- (): SchemaTemplateSetting_FieldTemplate => ({- id: uuidv1(),- engine: props.engine ?? Engine.MYSQL,- column: {- name: "",- type: "",- nullable: false,- comment: "",- position: 0,- characterSet: "",- collation: "",- },- })-);+const initialTemplate = () => ({+ id: uuidv1(),+ engine: props.engine ?? Engine.MYSQL,+ category: "",+ column: {+ name: "",+ type: "",+ nullable: false,+ comment: "",+ position: 0,+ characterSet: "",+ collation: "",+ },+});const state = reactive<LocalState>({showDrawer: false,showFeatureModal: false,- template: initialTemplate.value,+ template: initialTemplate(),searchText: "",selectedEngine: new Set<Engine>(),});@@ -150,7 +137,7 @@ const createSchemaTemplate = () => {state.showFeatureModal = true;return;}- state.template = initialTemplate.value;+ state.template = initialTemplate();state.showDrawer = true;};diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 25b80c54db..5c2bade6a2 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -1609,6 +1609,7 @@ Reference: https://cloud.google.com/pubsub/docs/reference/rpc/google.iam.v1#bind| ----- | ---- | ----- | ----------- || id | [string](#string) | | || engine | [Engine](#bytebase-store-Engine) | | |+| category | [string](#string) | | || column | [ColumnMetadata](#bytebase-store-ColumnMetadata) | | |diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 49316e925c..3ee4fef0c5 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -8251,6 +8251,7 @@ When paginating, all other parameters provided to `ListSettings` must match the| ----- | ---- | ----- | ----------- || id | [string](#string) | | || engine | [Engine](#bytebase-v1-Engine) | | |+| category | [string](#string) | | || column | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | | |diff --git a/proto/generated-go/store/setting.pb.go b/proto/generated-go/store/setting.pb.goindex c5ba9246c2..6e7e7f97de 100644--- a/proto/generated-go/store/setting.pb.go+++ b/proto/generated-go/store/setting.pb.go@@ -676,9 +676,10 @@ type SchemaTemplateSetting_FieldTemplate struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`- Engine Engine `protobuf:"varint,2,opt,name=engine,proto3,enum=bytebase.store.Engine" json:"engine,omitempty"`- Column *ColumnMetadata `protobuf:"bytes,3,opt,name=column,proto3" json:"column,omitempty"`+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`+ Engine Engine `protobuf:"varint,2,opt,name=engine,proto3,enum=bytebase.store.Engine" json:"engine,omitempty"`+ Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`+ Column *ColumnMetadata `protobuf:"bytes,4,opt,name=column,proto3" json:"column,omitempty"`}func (x *SchemaTemplateSetting_FieldTemplate) Reset() {@@ -727,6 +728,13 @@ func (x *SchemaTemplateSetting_FieldTemplate) GetEngine() Engine {return Engine_ENGINE_UNSPECIFIED}+func (x *SchemaTemplateSetting_FieldTemplate) GetCategory() string {+ if x != nil {+ return x.Category+ }+ return ""+}+func (x *SchemaTemplateSetting_FieldTemplate) GetColumn() *ColumnMetadata {if x != nil {return x.Column@@ -834,7 +842,7 @@ var file_store_setting_proto_rawDesc = []byte{0x02, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54,0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x4f, 0x47, 0x49, 0x4e, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x41,0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x52,- 0x41, 0x4d, 0x5f, 0x4d, 0x44, 0x35, 0x10, 0x04, 0x22, 0xff, 0x01, 0x0a, 0x15, 0x53, 0x63, 0x68,+ 0x41, 0x4d, 0x5f, 0x4d, 0x44, 0x35, 0x10, 0x04, 0x22, 0x9b, 0x02, 0x0a, 0x15, 0x53, 0x63, 0x68,0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69,0x6e, 0x67, 0x12, 0x5c, 0x0a, 0x0f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x74, 0x65, 0x6d, 0x70,0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x79,@@ -842,17 +850,19 @@ var file_store_setting_proto_rawDesc = []byte{0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69,0x6e, 0x67, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,0x52, 0x0e, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73,- 0x1a, 0x87, 0x01, 0x0a, 0x0d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61,+ 0x1a, 0xa3, 0x01, 0x0a, 0x0d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61,0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,0x69, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01,0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69,- 0x6e, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,- 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,- 0x74, 0x61, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65,- 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65,- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x36,+ 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,+ 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06,+ 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61,+ 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x33,}var (diff --git a/proto/generated-go/v1/setting_service.pb.go b/proto/generated-go/v1/setting_service.pb.goindex c7cb3b168e..1988877a59 100644--- a/proto/generated-go/v1/setting_service.pb.go+++ b/proto/generated-go/v1/setting_service.pb.go@@ -1461,9 +1461,10 @@ type SchemaTemplateSetting_FieldTemplate struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`- Engine Engine `protobuf:"varint,2,opt,name=engine,proto3,enum=bytebase.v1.Engine" json:"engine,omitempty"`- Column *ColumnMetadata `protobuf:"bytes,3,opt,name=column,proto3" json:"column,omitempty"`+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`+ Engine Engine `protobuf:"varint,2,opt,name=engine,proto3,enum=bytebase.v1.Engine" json:"engine,omitempty"`+ Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`+ Column *ColumnMetadata `protobuf:"bytes,4,opt,name=column,proto3" json:"column,omitempty"`}func (x *SchemaTemplateSetting_FieldTemplate) Reset() {@@ -1512,6 +1513,13 @@ func (x *SchemaTemplateSetting_FieldTemplate) GetEngine() Engine {return Engine_ENGINE_UNSPECIFIED}+func (x *SchemaTemplateSetting_FieldTemplate) GetCategory() string {+ if x != nil {+ return x.Category+ }+ return ""+}+func (x *SchemaTemplateSetting_FieldTemplate) GetColumn() *ColumnMetadata {if x != nil {return x.Column@@ -1736,7 +1744,7 @@ var file_v1_setting_service_proto_rawDesc = []byte{0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74,0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c,0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0xf6, 0x01,+ 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x92, 0x02,0x0a, 0x15, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x59, 0x0a, 0x0f, 0x66, 0x69, 0x65, 0x6c, 0x64,0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,@@ -1744,56 +1752,58 @@ var file_v1_setting_service_proto_rawDesc = []byte{0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74,0x74, 0x69, 0x6e, 0x67, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61,0x74, 0x65, 0x52, 0x0e, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,- 0x65, 0x73, 0x1a, 0x81, 0x01, 0x0a, 0x0d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d, 0x70,+ 0x65, 0x73, 0x1a, 0x9d, 0x01, 0x0a, 0x0d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x65, 0x6d, 0x70,0x6c, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02,0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e,- 0x65, 0x12, 0x33, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06,- 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x98, 0x02, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73,- 0x70, 0x61, 0x63, 0x65, 0x54, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,- 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x75,- 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,- 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72,- 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,- 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65,- 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x5f, 0x74,- 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,- 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x54, 0x69, 0x6d,- 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6f,- 0x72, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f,- 0x72, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x06,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x70, 0x6c, 0x61,- 0x6e, 0x32, 0xdc, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72,- 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74,- 0x69, 0x6e, 0x67, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0xda, 0x41, 0x00, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,- 0x67, 0x73, 0x12, 0x68, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,- 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,- 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x24, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,- 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x72, 0x0a, 0x0a,- 0x53, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74,- 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,- 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,- 0x67, 0x32, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d,- 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f,- 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x33, 0x0a,+ 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75,+ 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75,+ 0x6d, 0x6e, 0x22, 0x98, 0x02, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,+ 0x54, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x0a, 0x0e,+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f,+ 0x75, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69,+ 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,+ 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65,+ 0x12, 0x3b, 0x0a, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,+ 0x70, 0x52, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a,+ 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,+ 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x67, 0x5f, 0x6e,+ 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x67, 0x4e, 0x61,+ 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,+ 0x6c, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x32, 0xdc, 0x02,+ 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,+ 0x12, 0x6c, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,+ 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,+ 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73,+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e,+ 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x68,+ 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65,+ 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69,+ 0x6e, 0x67, 0x22, 0x24, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74,+ 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x72, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x53,+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x2e, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x1d, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65,+ 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f,+ 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62,+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (diff --git a/proto/store/setting.proto b/proto/store/setting.protoindex bc3a2b89e7..a2a0318520 100644--- a/proto/store/setting.proto+++ b/proto/store/setting.proto@@ -106,7 +106,9 @@ message SchemaTemplateSetting {Engine engine = 2;- ColumnMetadata column = 3;+ string category = 3;++ ColumnMetadata column = 4;}repeated FieldTemplate field_templates = 1;diff --git a/proto/v1/setting_service.proto b/proto/v1/setting_service.protoindex c64bd037b0..5ca77fdd70 100644--- a/proto/v1/setting_service.proto+++ b/proto/v1/setting_service.proto@@ -225,9 +225,9 @@ message SchemaTemplateSetting {Engine engine = 2;- // TODO: support category+ string category = 3;- ColumnMetadata column = 3;+ ColumnMetadata column = 4;}repeated FieldTemplate field_templates = 1;