Browse Source

增加贸易平台和企业的多语言脚本

liangbo.huang 2 weeks ago
parent
commit
0c4d1b4cad
1 changed files with 44 additions and 0 deletions
  1. 44 0
      trade-service/src/main/resources/data.init/v1.1/20241022.sql

+ 44 - 0
trade-service/src/main/resources/data.init/v1.1/20241022.sql

@@ -137,3 +137,47 @@ ADD COLUMN `tsjltbbs` tinyint(4) NULL DEFAULT 0 COMMENT '退税记录是否已
 
 ALTER TABLE `sales_contract`
 ADD COLUMN `has_purchase_contract` tinyint(1) NULL DEFAULT 1 COMMENT '是否有对应采购合同(“自营出口”的“生产企业”,不生成采购合同)' AFTER `audit_status`;
+
+CREATE TABLE `enterprise_change_record_i18n`
+(
+    `id`               bigint(20)                                                    NOT NULL,
+    `language`         varchar(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci   NOT NULL,
+    `platform_name`    varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
+    `register_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
+    `business_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
+    `contact_name`     varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NULL DEFAULT NULL,
+    PRIMARY KEY (`id`, `language`) USING BTREE,
+    UNIQUE INDEX `id_idx` (`id`, `language`) USING BTREE
+) ENGINE = InnoDB
+  CHARACTER SET = utf8mb4
+  COLLATE = utf8mb4_general_ci
+  ROW_FORMAT = Dynamic;
+
+CREATE TABLE `enterprise_i18n`
+(
+    `id`               bigint(20)                                                    NOT NULL,
+    `language`         varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
+    `name`             varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
+    `register_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
+    `business_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
+    PRIMARY KEY (`id`, `language`) USING BTREE,
+    UNIQUE INDEX `id_idx` (`id`, `language`) USING BTREE
+) ENGINE = InnoDB
+  CHARACTER SET = utf8mb4
+  COLLATE = utf8mb4_general_ci
+  ROW_FORMAT = Dynamic;
+
+CREATE TABLE `trading_platform_i18n`
+(
+    `id`               bigint(20)                                                    NOT NULL,
+    `language`         varchar(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci   NOT NULL,
+    `platform_name`    varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
+    `register_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
+    `business_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
+    `contact_name`     varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NULL DEFAULT NULL,
+    PRIMARY KEY (`id`, `language`) USING BTREE,
+    UNIQUE INDEX `id_idx` (`id`, `language`) USING BTREE
+) ENGINE = InnoDB
+  CHARACTER SET = utf8mb4
+  COLLATE = utf8mb4_general_ci
+  ROW_FORMAT = Dynamic;