pom-update-schema.sql 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. -- MySQL dump 10.13 Distrib 8.0.17, for Win64 (x86_64)
  2. --
  3. -- Host: localhost Database: db_pom_update
  4. -- ------------------------------------------------------
  5. -- Server version 8.0.27
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!50503 SET NAMES utf8mb4 */;
  10. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  11. /*!40103 SET TIME_ZONE='+00:00' */;
  12. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16. --
  17. -- Table structure for table `tb_user`
  18. --
  19. DROP TABLE IF EXISTS `tb_user`;
  20. /*!40101 SET @saved_cs_client = @@character_set_client */;
  21. /*!50503 SET character_set_client = utf8mb4 */;
  22. CREATE TABLE `tb_user`
  23. (
  24. `id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  25. `account` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  26. `password` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  27. `name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  28. `email` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  29. `phone` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL,
  30. `default_new_version_notify_strategy` varchar(16) COLLATE utf8_unicode_ci NOT NULL,
  31. `create_time` datetime DEFAULT NULL,
  32. PRIMARY KEY (`id`)
  33. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;
  34. /*!40101 SET character_set_client = @saved_cs_client */;
  35. --
  36. -- Table structure for table `tb_project`
  37. --
  38. DROP TABLE IF EXISTS `tb_project`;
  39. /*!40101 SET @saved_cs_client = @@character_set_client */;
  40. /*!50503 SET character_set_client = utf8mb4 */;
  41. CREATE TABLE `tb_project`
  42. (
  43. `id` bigint NOT NULL AUTO_INCREMENT,
  44. `group_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  45. `artifact_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  46. `version` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  47. `name` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  48. `description` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL,
  49. `user_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  50. `status` varchar(16) COLLATE utf8_unicode_ci DEFAULT 'NOMARL',
  51. `create_time` datetime DEFAULT NULL,
  52. `update_time` datetime DEFAULT NULL,
  53. PRIMARY KEY (`id`)
  54. ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;
  55. /*!40101 SET character_set_client = @saved_cs_client */;
  56. --
  57. -- Table structure for table `tb_dependency`
  58. --
  59. DROP TABLE IF EXISTS `tb_dependency`;
  60. /*!40101 SET @saved_cs_client = @@character_set_client */;
  61. /*!50503 SET character_set_client = utf8mb4 */;
  62. CREATE TABLE `tb_dependency`
  63. (
  64. `id` bigint NOT NULL AUTO_INCREMENT,
  65. `project_id` bigint NOT NULL,
  66. `group_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  67. `artifact_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  68. `version` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  69. `new_version_notify_strategy` varchar(32) COLLATE utf8_unicode_ci DEFAULT 'STABLE_ONLY',
  70. PRIMARY KEY (`id`)
  71. ) ENGINE=InnoDB AUTO_INCREMENT=5522 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;
  72. /*!40101 SET character_set_client = @saved_cs_client */;
  73. --
  74. -- Table structure for table `tb_third_project`
  75. --
  76. DROP TABLE IF EXISTS `tb_third_project`;
  77. /*!40101 SET @saved_cs_client = @@character_set_client */;
  78. /*!50503 SET character_set_client = utf8mb4 */;
  79. CREATE TABLE `tb_third_project`
  80. (
  81. `group_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  82. `artifact_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  83. `version` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  84. `stable_version` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  85. `name` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  86. `description` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL,
  87. `home_url` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL,
  88. `change_log_url` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL,
  89. `open_source_protocol` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  90. `stable_version_pattern` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  91. `version_rule` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  92. `status` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  93. `update_time` datetime DEFAULT NULL,
  94. PRIMARY KEY (`group_id`, `artifact_id`)
  95. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;
  96. /*!40101 SET character_set_client = @saved_cs_client */;
  97. --
  98. -- Table structure for table `tb_notify_record`
  99. --
  100. DROP TABLE IF EXISTS `tb_notify_record`;
  101. /*!40101 SET @saved_cs_client = @@character_set_client */;
  102. /*!50503 SET character_set_client = utf8mb4 */;
  103. CREATE TABLE `tb_notify_record`
  104. (
  105. `id` bigint NOT NULL AUTO_INCREMENT,
  106. `project_id` bigint DEFAULT NULL,
  107. `group_id` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  108. `artifact_id` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  109. `current_version` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  110. `new_version` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  111. `notified` tinyint(1) DEFAULT NULL,
  112. `notify_time` datetime DEFAULT NULL,
  113. PRIMARY KEY (`id`)
  114. ) ENGINE=InnoDB AUTO_INCREMENT=843 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;
  115. /*!40101 SET character_set_client = @saved_cs_client */;
  116. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  117. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  118. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  119. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  120. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  121. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  122. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  123. -- Dump completed on 2023-10-03 17:37:55