/*
 Navicat Premium Dump SQL

 Source Server         : 亿速云（国内）
 Source Server Type    : MySQL
 Source Server Version : 80018 (8.0.18)
 Source Host           : yisurds-66dc0b453c05d4.rds.ysydb1.com:14080
 Source Schema         : LMS_TEST

 Target Server Type    : MySQL
 Target Server Version : 80018 (8.0.18)
 File Encoding         : 65001

 Date: 28/03/2025 20:53:54
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for MachineAuthorization
-- ----------------------------
DROP TABLE IF EXISTS `MachineAuthorization`;
CREATE TABLE `MachineAuthorization`  (
  `ID` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'ID',
  `MachineID` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '机器码或者是授权码',
  `AuthorizedDate` datetime NOT NULL COMMENT '授权日期',
  `ExpiryDate` datetime NOT NULL COMMENT '过期日期',
  `AuthorizationCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '授权码',
  `CreatedUserID` bigint(20) NOT NULL COMMENT '创建用户ID',
  `CreatedDate` datetime NOT NULL COMMENT '创建时间',
  `UpdatedUserID` bigint(20) NOT NULL COMMENT '更新用户ID',
  `UpdatedDate` datetime NOT NULL COMMENT '更新时间',
  `Type` int(10) NOT NULL COMMENT '授权类型',
  PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '机器授权表' ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
