/*
 Navicat Premium Data Transfer

 Source Server         : local_mariadb
 Source Server Type    : MariaDB
 Source Server Version : 100338 (10.3.38-MariaDB)
 Source Host           : localhost:33066
 Source Schema         : omc_db

 Target Server Type    : MariaDB
 Target Server Version : 100338 (10.3.38-MariaDB)
 File Encoding         : 65001

 Date: 10/08/2023 08:44:54
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for permission_map
-- ----------------------------
DROP TABLE IF EXISTS `permission_map`;
CREATE TABLE `permission_map`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `permission_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `element` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `object` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `create_at` datetime NULL DEFAULT current_timestamp() ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`, `permission_name`) USING BTREE,
  UNIQUE INDEX `id`(`id`) USING BTREE,
  INDEX `permission_name`(`permission_name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of permission_map
-- ----------------------------
INSERT INTO `permission_map` VALUES (1, 'get.dm.omcdb', 'get', 'omc_db', '*', NULL, '2023-08-08 20:46:56');
INSERT INTO `permission_map` VALUES (2, 'get.dm.omcdb.neinfo', 'get ', 'omc_db', 'ne_info', NULL, '2023-08-08 20:47:11');
INSERT INTO `permission_map` VALUES (3, 'get.dm.omcdb.nelink', 'get ', 'omc_db', 'ne_link', NULL, '2023-08-08 20:47:22');
INSERT INTO `permission_map` VALUES (4, 'get.db.omcdb.neconfig', 'get', 'omc_db', 'ne_config', NULL, '2023-08-08 20:47:40');
INSERT INTO `permission_map` VALUES (5, 'post.dm.omcdb', 'post', 'omc_db', '*', NULL, '2023-08-08 20:47:56');
INSERT INTO `permission_map` VALUES (6, 'put.dm.omcdb', 'put', 'omc_db', '*', NULL, '2023-08-08 20:48:08');
INSERT INTO `permission_map` VALUES (7, 'del.dm.omcdb', 'delete', 'omc_db', '*', NULL, '2023-08-08 20:48:15');
INSERT INTO `permission_map` VALUES (8, 'get.dm.omcdb.mmlcmd', 'get ', 'omc_db', 'mml_command', NULL, '2023-08-08 20:47:11');
INSERT INTO `permission_map` VALUES (9, '*#*', '*', '*', '*', NULL, '2023-08-09 20:07:49');
INSERT INTO `permission_map` VALUES (10, 'get#dm.omcdb', 'get', 'omc_db', '*', NULL, '2023-08-08 20:46:56');
INSERT INTO `permission_map` VALUES (11, 'get#dm.omcdb.neinfo', 'get ', 'omc_db', 'ne_info', NULL, '2023-08-08 20:47:11');
INSERT INTO `permission_map` VALUES (12, 'get#dm.omcdb.nelink', 'get ', 'omc_db', 'ne_link', NULL, '2023-08-08 20:47:22');
INSERT INTO `permission_map` VALUES (13, 'get#db.omcdb.neconfig', 'get', 'omc_db', 'ne_config', NULL, '2023-08-08 20:47:40');
INSERT INTO `permission_map` VALUES (14, 'post#dm.omcdb', 'post', 'omc_db', '*', NULL, '2023-08-08 20:47:56');
INSERT INTO `permission_map` VALUES (15, 'put#dm.omcdb', 'put', 'omc_db', '*', NULL, '2023-08-08 20:48:08');
INSERT INTO `permission_map` VALUES (16, 'del#dm.omcdb', 'delete', 'omc_db', '*', NULL, '2023-08-08 20:48:15');
INSERT INTO `permission_map` VALUES (17, 'get#dm.omcdb.mmlcmd', 'get ', 'omc_db', 'mml_command', NULL, '2023-08-08 20:47:11');

SET FOREIGN_KEY_CHECKS = 1;
