gsdDB.sql 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : apollo
  4. Source Server Type : MySQL
  5. Source Server Version : 50738
  6. Source Host : 192.168.31.174:13306
  7. Source Schema : gsdDB
  8. Target Server Type : MySQL
  9. Target Server Version : 50738
  10. File Encoding : 65001
  11. Date: 13/05/2022 10:57:19
  12. */
  13. # Create Database
  14. CREATE DATABASE IF NOT EXISTS gsdDB DEFAULT CHARACTER SET = utf8mb4;
  15. Use gsdDB;
  16. SET NAMES utf8mb4;
  17. SET FOREIGN_KEY_CHECKS = 0;
  18. -- ----------------------------
  19. -- Table structure for DeviceList
  20. -- ----------------------------
  21. DROP TABLE IF EXISTS `DeviceList`;
  22. CREATE TABLE `DeviceList` (
  23. `Id` int(11) NOT NULL AUTO_INCREMENT,
  24. `DeviceId` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  25. `DeviceToken` tinyint(255) NOT NULL,
  26. `DeviceType` tinyint(255) NOT NULL,
  27. `ServerIp` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
  28. `ServerCname` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
  29. `ServerCpwd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
  30. `UpdateTime` datetime(0) NOT NULL,
  31. `ISDELETE` int(255) NOT NULL,
  32. PRIMARY KEY (`Id`) USING BTREE
  33. ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
  34. -- ----------------------------
  35. -- Table structure for HistoryVideo
  36. -- ----------------------------
  37. DROP TABLE IF EXISTS `HistoryVideo`;
  38. CREATE TABLE `HistoryVideo` (
  39. `Id` bigint(11) NOT NULL AUTO_INCREMENT,
  40. `fileName` varchar(900) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  41. `UpdateTime` datetime(0) NOT NULL,
  42. `ISDELETE` int(255) NOT NULL,
  43. PRIMARY KEY (`Id`) USING BTREE
  44. ) ENGINE = InnoDB AUTO_INCREMENT = 35 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
  45. -- ----------------------------
  46. -- Table structure for InferData
  47. -- ----------------------------
  48. DROP TABLE IF EXISTS `InferData`;
  49. CREATE TABLE `InferData` (
  50. `ID` int(11) NOT NULL AUTO_INCREMENT,
  51. `ClassId` int(11) NOT NULL,
  52. `Num` int(11) NOT NULL,
  53. `Remark` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  54. `ImageBase64` longtext CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
  55. `WarningTime` datetime(0) NOT NULL,
  56. `VideoPath` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
  57. `attr1` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
  58. `attr2` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
  59. `attr3` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
  60. `Warn` tinyint(255) NOT NULL,
  61. `uuid` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  62. `ISDELETE` int(11) NOT NULL,
  63. PRIMARY KEY (`ID`) USING BTREE
  64. ) ENGINE = InnoDB AUTO_INCREMENT = 30 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
  65. SET FOREIGN_KEY_CHECKS = 1;