images.sql 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 主机
  4. Source Server Type : MySQL
  5. Source Server Version : 50726
  6. Source Host : localhost:3306
  7. Source Schema : admin
  8. Target Server Type : MySQL
  9. Target Server Version : 50726
  10. File Encoding : 65001
  11. Date: 11/10/2021 16:57:54
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for images
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `images`;
  19. CREATE TABLE `images`
  20. (
  21. `image_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '镜像名称',
  22. `image_id` int(30) NOT NULL AUTO_INCREMENT COMMENT '镜像id',
  23. `image_tag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '镜像版本',
  24. `creator_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '创建者姓名',
  25. `create_time` datetime NULL DEFAULT NULL COMMENT '镜像创建时间',
  26. `image_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '镜像类型',
  27. `image_description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '描述信息',
  28. `build_environment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '构建环境',
  29. `image_size` double NULL DEFAULT NULL COMMENT '镜像大小',
  30. `image_alias` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '镜像别名',
  31. PRIMARY KEY (`image_id`) USING BTREE
  32. ) ENGINE = InnoDB
  33. AUTO_INCREMENT = 4
  34. CHARACTER SET = utf8mb4
  35. COLLATE = utf8mb4_bin
  36. ROW_FORMAT = Dynamic;
  37. -- ----------------------------
  38. -- Records of images
  39. -- ----------------------------
  40. INSERT INTO `images`
  41. VALUES ('1', 1, '1', '1', '2016-11-11 11:11:11', '基础镜像', '1', NULL, NULL, NULL);
  42. INSERT INTO `images`
  43. VALUES ('2', 2, '1', '1', '2016-11-11 11:11:11', '应用镜像', '1', NULL, NULL, NULL);
  44. INSERT INTO `images`
  45. VALUES ('2', 3, '1', '1', '2016-11-11 11:11:11', '应用镜像', '1', NULL, NULL, NULL);
  46. SET FOREIGN_KEY_CHECKS = 1;