新增 碳足迹接口相关表
This commit is contained in:
parent
fd62c5e42e
commit
55e387b99b
331
harmonylife_20241011_新增碳足迹相关表.sql
Normal file
331
harmonylife_20241011_新增碳足迹相关表.sql
Normal file
@ -0,0 +1,331 @@
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : 本地连接
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 50743 (5.7.43-log)
|
||||
Source Host : localhost:3306
|
||||
Source Schema : harmonylife
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 50743 (5.7.43-log)
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 12/10/2024 09:32:22
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for agent_info
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `agent_info`;
|
||||
CREATE TABLE `agent_info` (
|
||||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||||
`merchant_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户编号',
|
||||
`userId` int(11) NULL DEFAULT NULL COMMENT '用户id(负责人)',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商户表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of agent_info
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for carbon_calc
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `carbon_calc`;
|
||||
CREATE TABLE `carbon_calc` (
|
||||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||||
`category` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '衣食住行其他',
|
||||
`item_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '具体项目名称',
|
||||
`unit_value` double(11, 2) NULL DEFAULT NULL COMMENT '每1单位的排碳值',
|
||||
`unit_item` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物品数量单位,比如件、只、支',
|
||||
`about` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关于',
|
||||
`unit_result` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '计算结果的单位 一般是kg',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '碳足迹计算' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of carbon_calc
|
||||
-- ----------------------------
|
||||
INSERT INTO `carbon_calc` VALUES (1, '食', '白酒', 1.76, 'kg', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (2, '食', '啤酒', 0.22, '瓶', '一瓶550ML', 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (3, '食', '烟', 0.02, '包', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (4, '住', '煤', 1970.00, '吨', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (5, '住', '用电', 1.00, '度', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (6, '住', '用水', 0.91, '立方米', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (7, '住', '煤气', 0.71, '立方米', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (8, '住', '天然气', 2.19, '立方米', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (9, '住', '集中供暖', 0.13, '平方米/天', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (10, '住', '蜂窝煤', 3.30, '块', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (11, '住', '液化石油气', 5.48, '立方米', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (12, '食', '羊肉', 39.20, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (13, '食', '牛肉', 27.00, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (14, '食', '猪肉', 12.10, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (15, '食', '鸡', 1.80, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (16, '食', '鸡蛋', 4.80, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (17, '食', '土豆', 2.90, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (18, '食', '米饭', 2.70, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (19, '食', '花生', 2.50, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (20, '食', '酸奶', 2.20, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (21, '食', '西兰花', 2.00, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (22, '食', '豆腐', 2.00, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (23, '食', '牛奶', 1.90, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (24, '食', '西红柿', 1.10, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (25, '食', '扁豆', 0.90, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (26, '行', '飞机', 0.14, '公里', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (27, '行', '火车', 0.01, '公里', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (28, '行', '轮船', 0.01, '公里', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (29, '行', '地铁', 0.10, '站', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (30, '行', '公共汽车', 0.01, '站', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (31, '行', '高耗油小汽车', 0.41, '公里', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (32, '行', '中耗油小汽车', 0.30, '公里', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (33, '行', '低耗油小汽车', 0.27, '公里', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (34, '其他', '纸制品', 3.50, '千克', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (35, '其他', '塑料袋', 0.00, '个', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (36, '其他', '一次性筷子', 0.01, '双', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (37, '其他', '洗发水', 0.02, '瓶', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (38, '其他', '玫瑰', 0.18, '支', NULL, 'kg');
|
||||
INSERT INTO `carbon_calc` VALUES (39, '其他', '城市垃圾', 2.06, '千克', NULL, 'kg');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for carbon_savingsranking
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `carbon_savingsranking`;
|
||||
CREATE TABLE `carbon_savingsranking` (
|
||||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||||
`rank` int(11) NOT NULL COMMENT '排名',
|
||||
`entity_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '实体名称(用户名称)',
|
||||
`entity_id` bigint(20) NOT NULL COMMENT '实体id(雪花 勇闯天涯)',
|
||||
`carbon_saved` decimal(15, 2) NOT NULL COMMENT '节约的碳量(千克)',
|
||||
`period` char(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ' 统计周期 \'月度\',\'季度\',\'年度\'',
|
||||
`region` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '地区',
|
||||
`method` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '减排方法',
|
||||
`verification` tinyint(4) NOT NULL COMMENT '验证状态 1 已验证 0未验证',
|
||||
`date_recorded` datetime NOT NULL COMMENT '记录日期',
|
||||
`notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '备注',
|
||||
`merchant_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '机构编码',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '节碳排行榜' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of carbon_savingsranking
|
||||
-- ----------------------------
|
||||
INSERT INTO `carbon_savingsranking` VALUES (1, 1, '萌狼蓝天', 1, 100.00, '年度', '重庆', NULL, 1, '2024-10-10 20:09:30', '测试数据', '1');
|
||||
INSERT INTO `carbon_savingsranking` VALUES (2, 2, '明月新星', 599761118822469, 52.00, '年度', '重庆', NULL, 1, '2024-10-10 20:15:52', '测试数据', '1');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for log_captcha
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `log_captcha`;
|
||||
CREATE TABLE `log_captcha` (
|
||||
`id` bigint(20) NOT NULL COMMENT '验证码id',
|
||||
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户账号',
|
||||
`code` char(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '验证码',
|
||||
`status` tinyint(1) NOT NULL COMMENT ' 1:有效 0:无效 2:已被使用',
|
||||
`valid_time` datetime NOT NULL COMMENT '有效时间',
|
||||
`create_time` datetime NOT NULL COMMENT '创建时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of log_captcha
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for system_action
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `system_action`;
|
||||
CREATE TABLE `system_action` (
|
||||
`id` bigint(20) NOT NULL COMMENT '动作id',
|
||||
`tag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '动作标签 例如 add',
|
||||
`describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '动作标题 例如 增加',
|
||||
`default_check` tinyint(4) NULL DEFAULT NULL COMMENT '0 false 1 true',
|
||||
`status` tinyint(4) NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '动作表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of system_action
|
||||
-- ----------------------------
|
||||
INSERT INTO `system_action` VALUES (1, 'add', '新增', 0, 1);
|
||||
INSERT INTO `system_action` VALUES (2, 'import', '导入', 0, 1);
|
||||
INSERT INTO `system_action` VALUES (3, 'get', '详情', 0, 1);
|
||||
INSERT INTO `system_action` VALUES (4, 'update', '更新', 0, 1);
|
||||
INSERT INTO `system_action` VALUES (5, 'delete', '删除', 0, 1);
|
||||
INSERT INTO `system_action` VALUES (6, 'export', '导出', 0, 1);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for system_menu
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `system_menu`;
|
||||
CREATE TABLE `system_menu` (
|
||||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||||
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '显示的中文名称',
|
||||
`key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'key',
|
||||
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由名称',
|
||||
`component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件名称',
|
||||
`redirect` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '重定向',
|
||||
`icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图标名称',
|
||||
`status` tinyint(4) NULL DEFAULT NULL COMMENT '状态 0 未启用 -1 删除 1正常使用',
|
||||
`parent` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '父级',
|
||||
`order` int(11) NULL DEFAULT NULL COMMENT '排序,数字越小,越靠前',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of system_menu
|
||||
-- ----------------------------
|
||||
INSERT INTO `system_menu` VALUES (1, '首页', NULL, 'index', 'BasicLayout', '/dashboard/workplace', '', 1, NULL, 1);
|
||||
INSERT INTO `system_menu` VALUES (2, '仪表盘', 'dashboard', 'dashboard', 'RouteView', NULL, 'dashboard', 1, 'index', 1);
|
||||
INSERT INTO `system_menu` VALUES (3, '分析页', 'analysis', NULL, NULL, NULL, NULL, NULL, NULL, 1);
|
||||
INSERT INTO `system_menu` VALUES (4, '系统管理', 'system', 'system', 'PageView', NULL, 'setting', NULL, 'index', 1);
|
||||
INSERT INTO `system_menu` VALUES (5, '用户管理', 'userList', 'userList', NULL, NULL, NULL, NULL, 'system', 1);
|
||||
INSERT INTO `system_menu` VALUES (6, '菜单管理', 'menuList', 'menuList', NULL, NULL, NULL, NULL, 'system', 1);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for system_permission
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `system_permission`;
|
||||
CREATE TABLE `system_permission` (
|
||||
`id` bigint(20) NOT NULL COMMENT '权限id',
|
||||
`permission_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限id(文本型)',
|
||||
`permission_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限名称(菜单名称)',
|
||||
`status` tinyint(4) NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '权限表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of system_permission
|
||||
-- ----------------------------
|
||||
INSERT INTO `system_permission` VALUES (1, 'dashboard', '数据中心', 1);
|
||||
INSERT INTO `system_permission` VALUES (2, 'exception', '异常管理', 1);
|
||||
INSERT INTO `system_permission` VALUES (3, 'result', '结果管理', 1);
|
||||
INSERT INTO `system_permission` VALUES (4, 'profile', '个人信息管理', 1);
|
||||
INSERT INTO `system_permission` VALUES (5, 'table', '表格管理', 1);
|
||||
INSERT INTO `system_permission` VALUES (6, 'form', '表单管理', 1);
|
||||
INSERT INTO `system_permission` VALUES (7, 'order', '订单管理', 1);
|
||||
INSERT INTO `system_permission` VALUES (8, 'permission', '权限管理', 1);
|
||||
INSERT INTO `system_permission` VALUES (9, 'role', '个人设置', 1);
|
||||
INSERT INTO `system_permission` VALUES (10, 'user', '个人中心', 1);
|
||||
INSERT INTO `system_permission` VALUES (11, 'system', '系统管理', 1);
|
||||
INSERT INTO `system_permission` VALUES (12, 'otherPage', '其他页面', 1);
|
||||
INSERT INTO `system_permission` VALUES (13, 'UserList', '用户列表', 1);
|
||||
INSERT INTO `system_permission` VALUES (14, 'RoleList', '角色列表', 1);
|
||||
INSERT INTO `system_permission` VALUES (15, 'support', '支持', 1);
|
||||
INSERT INTO `system_permission` VALUES (16, 'userManage', '用户管理', 1);
|
||||
INSERT INTO `system_permission` VALUES (17, 'menuManage', '菜单管理', 1);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for system_permission_action
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `system_permission_action`;
|
||||
CREATE TABLE `system_permission_action` (
|
||||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||||
`action_tag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '动作id 文本型',
|
||||
`permission_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限id 文本型',
|
||||
`status` tinyint(4) NULL DEFAULT NULL COMMENT '状态',
|
||||
`uid` bigint(20) NULL DEFAULT NULL COMMENT '用户id Long',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of system_permission_action
|
||||
-- ----------------------------
|
||||
INSERT INTO `system_permission_action` VALUES (1, 'add', 'role', 1, 1);
|
||||
INSERT INTO `system_permission_action` VALUES (2, 'import', 'role', 1, 1);
|
||||
INSERT INTO `system_permission_action` VALUES (3, 'get', 'role', 1, 1);
|
||||
INSERT INTO `system_permission_action` VALUES (4, 'update', 'role', 1, 1);
|
||||
INSERT INTO `system_permission_action` VALUES (5, 'delete', 'role', 1, 1);
|
||||
INSERT INTO `system_permission_action` VALUES (6, 'export', 'role', 1, 1);
|
||||
INSERT INTO `system_permission_action` VALUES (7, 'add', 'permission', 1, 1);
|
||||
INSERT INTO `system_permission_action` VALUES (8, 'import', 'permission', 1, 1);
|
||||
INSERT INTO `system_permission_action` VALUES (9, 'get', 'permission', 1, 1);
|
||||
INSERT INTO `system_permission_action` VALUES (10, 'update', 'permission', 1, 1);
|
||||
INSERT INTO `system_permission_action` VALUES (11, 'delete', 'permission', 1, 1);
|
||||
INSERT INTO `system_permission_action` VALUES (12, 'export', 'permission', 1, 1);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for system_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `system_role`;
|
||||
CREATE TABLE `system_role` (
|
||||
`id` bigint(20) NOT NULL COMMENT '角色id role_id',
|
||||
`role_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色名称',
|
||||
`role_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色id(文本型)',
|
||||
`status` tinyint(4) NULL DEFAULT NULL,
|
||||
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
|
||||
`level` int(11) NULL DEFAULT NULL COMMENT '数字越小 级别越高 顶级权限为1',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of system_role
|
||||
-- ----------------------------
|
||||
INSERT INTO `system_role` VALUES (1, '超级管理员', 'root', 1, '最高权限', 1);
|
||||
INSERT INTO `system_role` VALUES (2, '管理员', 'admin', 1, '管理权限', 2);
|
||||
INSERT INTO `system_role` VALUES (3, '机构', 'agent', 1, '使用权限', 3);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for system_role_permission
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `system_role_permission`;
|
||||
CREATE TABLE `system_role_permission` (
|
||||
`id` bigint(20) NOT NULL,
|
||||
`role_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '注意是文本型',
|
||||
`permission_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '注意是文本型',
|
||||
`status` tinyint(4) NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of system_role_permission
|
||||
-- ----------------------------
|
||||
INSERT INTO `system_role_permission` VALUES (1, 'root', 'dashboard', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (2, 'root', 'exception', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (3, 'root', 'result', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (4, 'root', 'profile', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (5, 'root', 'table', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (6, 'root', 'form', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (7, 'root', 'order', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (8, 'root', 'permission', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (9, 'root', 'role', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (10, 'root', 'user', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (11, 'root', 'system', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (12, 'root', 'otherPage', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (13, 'root', 'UserList', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (14, 'root', 'RoleList', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (15, 'root', 'support', 1);
|
||||
INSERT INTO `system_role_permission` VALUES (16, 'root', 'userManage', 1);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for user_info
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `user_info`;
|
||||
CREATE TABLE `user_info` (
|
||||
`id` bigint(20) NOT NULL COMMENT '用户uid',
|
||||
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '昵称(用于显示,可以随意更改)',
|
||||
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名(登录使用的账号)',
|
||||
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
|
||||
`avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '头像图片地址',
|
||||
`status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '状态',
|
||||
`telephone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号',
|
||||
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '注册时间',
|
||||
`merchant_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户编号',
|
||||
`deleted` tinyint(4) NULL DEFAULT NULL COMMENT '1 已删除 0未删除',
|
||||
`role_id` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限id 文本类型',
|
||||
`creator_id` int(11) NULL DEFAULT NULL COMMENT '创建者id 0 或者空为自己注册',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `user_info_username_uindex`(`username`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of user_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `user_info` VALUES (1, '萌狼蓝天', 'xrilang', 'VomAhgnr1XAkMKzicqYxdCFBx0ooiXBN66Xq9XCWGJTsJgH3uLJVAVGkoZi2n1Ml', 'https://q1.qlogo.cn/g?b=qq&nk=3447902411&s=640', '1', NULL, NULL, '2024-09-21 22:31:02', '1', 0, 'root', NULL);
|
||||
INSERT INTO `user_info` VALUES (599761118822469, '明月新星', 'moon', 'QTBZMFtfoEu1tHM1jLHdJxfo3ZPlZXQjw1yMaF78Rt5dNwtMdbXQ+hdL6t9Gboe9', NULL, '1', NULL, NULL, '2024-10-10 20:14:16', '1', 0, 'admin', 1);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
Loading…
Reference in New Issue
Block a user