/*
 Navicat Premium Data Transfer

 Source Server         : omc@192.168.2.211
 Source Server Type    : MariaDB
 Source Server Version : 100621 (10.6.21-MariaDB-0ubuntu0.22.04.2)
 Source Host           : 192.168.2.211:33066
 Source Schema         : tenants_db

 Target Server Type    : MariaDB
 Target Server Version : 100621 (10.6.21-MariaDB-0ubuntu0.22.04.2)
 File Encoding         : 65001

 Date: 12/04/2025 17:18:16
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for u_ims_user
-- ----------------------------
CREATE TABLE IF NOT EXISTS `u_ims_user`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `imsi` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'SIM/USIMID',
  `msisdn` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  `tag` tinyint(4) NULL DEFAULT NULL COMMENT '0: VoIP, 1: VoLTE',
  `vni` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  `tenant_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'multi-tenancy refer to sys_tenant.tenant_id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_imsi_msisdn_neid`(`imsi`, `msisdn`, `ne_id`) USING BTREE COMMENT 'imsi_msisdn_neid'
) ENGINE = InnoDB AUTO_INCREMENT = 379066 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'UDM' ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
