/*
 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: 09/04/2025 09:26:56
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for u_voip_auth
-- ----------------------------
CREATE TABLE IF NOT EXISTS `u_voip_auth`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `password` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  `create_time` bigint(20) DEFAULT 0 COMMENT '创建时间',
  `created_at` datetime NULL DEFAULT current_timestamp(),
  `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,
  INDEX `idx_user_name`(`user_name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19570 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'UDM' ROW_FORMAT = Dynamic;

ALTER TABLE `u_voip_auth` ADD COLUMN IF NOT EXISTS `create_time` bigint(20) NULL DEFAULT 0 COMMENT '创建时间' AFTER `password`;
ALTER TABLE `u_voip_auth` ADD COLUMN IF NOT EXISTS `created_at` datetime NULL DEFAULT current_timestamp() COMMENT '创建时间' AFTER `create_time`;

SET FOREIGN_KEY_CHECKS = 1;
