34 lines
2.5 KiB
SQL
34 lines
2.5 KiB
SQL
-- ----------------------------
|
|
-- Table structure for blade_measurement_unit
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `blade_measurement_unit`;
|
|
CREATE TABLE `blade_measurement_unit` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '计量单位编码',
|
|
`unit_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '计量单位',
|
|
`dimension` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '计量维度',
|
|
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
|
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
|
|
`create_dept` bigint NULL DEFAULT NULL COMMENT '创建部门',
|
|
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
|
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
|
|
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
|
`status` int NULL DEFAULT 1 COMMENT '状态',
|
|
`is_deleted` int NULL DEFAULT 0 COMMENT '是否已删除',
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
UNIQUE INDEX `uk_measurement_unit_code`(`unit_code`) USING BTREE,
|
|
UNIQUE INDEX `uk_measurement_unit_name`(`unit_name`) USING BTREE,
|
|
INDEX `idx_measurement_unit_dimension`(`dimension`) USING BTREE,
|
|
INDEX `idx_measurement_unit_status`(`status`) USING BTREE
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '计量单位';
|
|
|
|
-- ----------------------------
|
|
-- Records of blade_menu for measurement unit
|
|
-- ----------------------------
|
|
INSERT INTO `blade_menu` (`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `component`, `remark`, `is_deleted`) VALUES
|
|
(2075449300000000001, 1164733399668962201, 'measurement_unit', '计量单位', 'measurement_unit', '/base/measurement-unit', 'iconfont icon-shoucang', 80, 1, 0, 1, NULL, '', 0),
|
|
(2075449300000000002, 2075449300000000001, 'measurement_unit_delete', '删除', 'measurement_unit_delete', '', '', 1, 2, 0, 1, NULL, '', 0),
|
|
(2075449300000000003, 2075449300000000001, 'measurement_unit_edit', '编辑', 'measurement_unit_edit', '', '', 1, 2, 0, 1, NULL, '', 0),
|
|
(2075449300000000004, 2075449300000000001, 'measurement_unit_status', '修改状态', 'measurement_unit_status', '', '', 1, 2, 0, 1, NULL, '', 0),
|
|
(2075449300000000005, 2075449300000000001, 'measurement_unit_add', '新增', 'measurement_unit_add', '', '', 1, 2, 0, 1, NULL, '', 0);
|