/*
 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: 18/08/2023 18:34:56
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for permission
-- ----------------------------
DROP TABLE IF EXISTS `permission`;
CREATE TABLE `permission`  (
  `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 '*',
  `module` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '*',
  `management` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '*',
  `element` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '*',
  `object` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '*',
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `created_at` datetime NULL DEFAULT current_timestamp(),
  `updated_at` datetime NULL DEFAULT NULL,
  `deleted_at` datetime NULL DEFAULT NULL,
  PRIMARY KEY (`id`, `permission_name`) USING BTREE,
  UNIQUE INDEX `id`(`id`) USING BTREE,
  UNIQUE INDEX `permission_name`(`permission_name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of permission
-- ----------------------------
INSERT INTO `permission` VALUES (9, '*#*', '*', '*', '*', '*', '*', 'all permission', '2023-08-16 11:06:25', NULL, NULL);
INSERT INTO `permission` VALUES (10, 'get#dm.omcdb', 'get', '*', '*', 'omc_db', '*', NULL, '2023-08-08 20:46:56', NULL, NULL);
INSERT INTO `permission` VALUES (11, 'get#dm.omcdb.neinfo', 'get ', '*', '*', 'omc_db', 'ne_info', NULL, '2023-08-08 20:47:11', NULL, NULL);
INSERT INTO `permission` VALUES (12, 'get#dm.omcdb.nelink', 'get ', '*', '*', 'omc_db', 'ne_link', NULL, '2023-08-08 20:47:22', NULL, NULL);
INSERT INTO `permission` VALUES (13, 'get#db.omcdb.neconfig', 'get', '*', '*', 'omc_db', 'ne_config', NULL, '2023-08-08 20:47:40', NULL, NULL);
INSERT INTO `permission` VALUES (14, 'post#dm.omcdb', 'post', '*', '*', 'omc_db', '*', NULL, '2023-08-08 20:47:56', NULL, NULL);
INSERT INTO `permission` VALUES (15, 'put#dm.omcdb', 'put', '*', '*', 'omc_db', '*', NULL, '2023-08-08 20:48:08', NULL, NULL);
INSERT INTO `permission` VALUES (16, 'del#dm.omcdb', 'delete', '*', '*', 'omc_db', '*', NULL, '2023-08-08 20:48:15', NULL, NULL);
INSERT INTO `permission` VALUES (17, 'get#dm.omcdb.mmlcmd', 'get ', '*', '*', 'omc_db', 'mml_command', NULL, '2023-08-08 20:47:11', NULL, NULL);
INSERT INTO `permission` VALUES (18, 'post#sm.omcdb.user', 'post', '*', '*', 'omc_db', 'user', NULL, '2023-08-10 16:37:47', NULL, NULL);
INSERT INTO `permission` VALUES (19, '*#sec.*.*', '*', '*', 'securityManagement', 'oauth', '*', NULL, '2023-08-15 22:08:02', NULL, NULL);
INSERT INTO `permission` VALUES (20, '*#cm.*.*', '*', '*', 'resourceManagement', '*', '*', NULL, '2023-08-15 22:07:30', NULL, NULL);
INSERT INTO `permission` VALUES (21, '*#pm.*.*', '*', '*', 'performanceManagement', '*', '*', NULL, '2023-08-15 22:07:39', NULL, NULL);
INSERT INTO `permission` VALUES (22, '*#fm.*.*', '*', '*', 'faultManagement', '*', '*', NULL, '2023-08-15 22:07:41', NULL, NULL);
INSERT INTO `permission` VALUES (23, '*#*.UDM.*', '*', '*', '*', 'UDM', '*', NULL, '2023-08-16 15:29:41', NULL, NULL);
INSERT INTO `permission` VALUES (24, '*#*.AMF.*', '*', '*', '*', 'AMF', '*', NULL, '2023-08-16 15:30:00', NULL, NULL);
INSERT INTO `permission` VALUES (25, '*#*.SMF.*', '*', '*', '*', 'SMF', '*', NULL, '2023-08-16 15:32:09', NULL, NULL);
INSERT INTO `permission` VALUES (26, '*#*.AUSF.*', '*', '*', '*', 'AUSF', '*', NULL, '2023-08-16 15:32:35', NULL, NULL);
INSERT INTO `permission` VALUES (27, '*#*.UPF.*', '*', '*', '*', 'UPF', '*', NULL, '2023-08-16 15:32:49', NULL, NULL);
INSERT INTO `permission` VALUES (28, '*#*.OMC.*', '*', '*', '*', 'OMC', '*', NULL, '2023-08-16 15:41:03', NULL, NULL);
INSERT INTO `permission` VALUES (29, '*#neManagement.OMC.*@mml', '*', 'mml', 'neManagement', 'OMC', '*', NULL, '2023-08-16 15:41:03', NULL, NULL);
INSERT INTO `permission` VALUES (30, '*#*.OMC.*@mml', '*', 'mml', '*', 'OMC', '*', NULL, '2023-08-16 15:41:03', NULL, NULL);
INSERT INTO `permission` VALUES (31, '*#*.*.*@mml', '*', 'mml', '*', 'OMC', '*', NULL, '2023-08-16 15:41:03', NULL, NULL);

SET FOREIGN_KEY_CHECKS = 1;
