You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RuoYi-Vue/sql_ok/t_industry_basic.sql

38 lines
1.6 KiB

/*
Navicat Premium Dump SQL
Source Server : 192.168.0.222
Source Server Type : MySQL
Source Server Version : 80031 (8.0.31)
Source Host : 192.168.0.222:3306
Source Schema : ry_refactor0120
Target Server Type : MySQL
Target Server Version : 80031 (8.0.31)
File Encoding : 65001
Date: 24/01/2026 10:59:39
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for t_industry_basic
-- ----------------------------
DROP TABLE IF EXISTS `t_industry_basic`;
CREATE TABLE `t_industry_basic` (
`industry_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '行业代码如802089.EI',
`industry_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '行业名称(如\"银行\"',
`industry_level` tinyint NOT NULL DEFAULT 2 COMMENT '行业级别1=一级行业2=二级行业3=三级行业等)',
`status` tinyint NOT NULL DEFAULT 1 COMMENT '状态1=正常0=禁用)',
`sort_order` int NOT NULL DEFAULT 0 COMMENT '排序',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`industry_code`) USING BTREE,
INDEX `idx_t_industry_basic_level`(`industry_level` ASC) USING BTREE,
INDEX `idx_t_industry_basic_status`(`status` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '行业基础数据表' ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;