/*
 Navicat Premium Dump SQL

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 90600 (9.6.0)
 Source Host           : localhost:3306
 Source Schema         : audio

 Target Server Type    : MySQL
 Target Server Version : 90600 (9.6.0)
 File Encoding         : 65001

 Date: 28/05/2026 17:59:03
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for ota
-- ----------------------------
DROP TABLE IF EXISTS `ota`;
CREATE TABLE `ota`  (
  `id` int NOT NULL AUTO_INCREMENT,
  `verCode` int NOT NULL,
  `verName` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `md5` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `force` tinyint NOT NULL DEFAULT 0 COMMENT '是否强升；0-否',
  `desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  `model` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '对应的设备型号',
  `hw` int NOT NULL DEFAULT 0 COMMENT '硬件版本号',
  `target` tinyint NOT NULL DEFAULT 0 COMMENT '是否定向，1-是，0-否；否表示面向所有用户',
  `beta` tinyint NOT NULL DEFAULT 0 COMMENT '是否灰度，1-是，0-否',
  `startTime` datetime NULL DEFAULT NULL COMMENT '升级开始时间',
  `endTime` datetime NULL DEFAULT NULL COMMENT '升级结束时间',
  `status` tinyint NOT NULL DEFAULT 1 COMMENT '是否可用',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 48 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC;

SET FOREIGN_KEY_CHECKS = 1;
