TestLaboratory.sql 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : localhost_3306
  4. Source Server Type : MySQL
  5. Source Server Version : 80029
  6. Source Host : localhost:3306
  7. Source Schema : TestLaboratory
  8. Target Server Type : MySQL
  9. Target Server Version : 80029
  10. File Encoding : 65001
  11. Date: 17/11/2022 09:30:54
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for auth_group
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `auth_group`;
  19. CREATE TABLE `auth_group` (
  20. `id` int NOT NULL AUTO_INCREMENT,
  21. `name` varchar(150) NOT NULL,
  22. PRIMARY KEY (`id`),
  23. UNIQUE KEY `name` (`name`)
  24. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  25. -- ----------------------------
  26. -- Records of auth_group
  27. -- ----------------------------
  28. BEGIN;
  29. COMMIT;
  30. -- ----------------------------
  31. -- Table structure for auth_group_permissions
  32. -- ----------------------------
  33. DROP TABLE IF EXISTS `auth_group_permissions`;
  34. CREATE TABLE `auth_group_permissions` (
  35. `id` bigint NOT NULL AUTO_INCREMENT,
  36. `group_id` int NOT NULL,
  37. `permission_id` int NOT NULL,
  38. PRIMARY KEY (`id`),
  39. UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
  40. KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
  41. CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
  42. CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
  43. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  44. -- ----------------------------
  45. -- Records of auth_group_permissions
  46. -- ----------------------------
  47. BEGIN;
  48. COMMIT;
  49. -- ----------------------------
  50. -- Table structure for auth_permission
  51. -- ----------------------------
  52. DROP TABLE IF EXISTS `auth_permission`;
  53. CREATE TABLE `auth_permission` (
  54. `id` int NOT NULL AUTO_INCREMENT,
  55. `name` varchar(255) NOT NULL,
  56. `content_type_id` int NOT NULL,
  57. `codename` varchar(100) NOT NULL,
  58. PRIMARY KEY (`id`),
  59. UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
  60. CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
  61. ) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  62. -- ----------------------------
  63. -- Records of auth_permission
  64. -- ----------------------------
  65. BEGIN;
  66. INSERT INTO `auth_permission` VALUES (1, 'Can add log entry', 1, 'add_logentry');
  67. INSERT INTO `auth_permission` VALUES (2, 'Can change log entry', 1, 'change_logentry');
  68. INSERT INTO `auth_permission` VALUES (3, 'Can delete log entry', 1, 'delete_logentry');
  69. INSERT INTO `auth_permission` VALUES (4, 'Can view log entry', 1, 'view_logentry');
  70. INSERT INTO `auth_permission` VALUES (5, 'Can add permission', 2, 'add_permission');
  71. INSERT INTO `auth_permission` VALUES (6, 'Can change permission', 2, 'change_permission');
  72. INSERT INTO `auth_permission` VALUES (7, 'Can delete permission', 2, 'delete_permission');
  73. INSERT INTO `auth_permission` VALUES (8, 'Can view permission', 2, 'view_permission');
  74. INSERT INTO `auth_permission` VALUES (9, 'Can add group', 3, 'add_group');
  75. INSERT INTO `auth_permission` VALUES (10, 'Can change group', 3, 'change_group');
  76. INSERT INTO `auth_permission` VALUES (11, 'Can delete group', 3, 'delete_group');
  77. INSERT INTO `auth_permission` VALUES (12, 'Can view group', 3, 'view_group');
  78. INSERT INTO `auth_permission` VALUES (13, 'Can add user', 4, 'add_user');
  79. INSERT INTO `auth_permission` VALUES (14, 'Can change user', 4, 'change_user');
  80. INSERT INTO `auth_permission` VALUES (15, 'Can delete user', 4, 'delete_user');
  81. INSERT INTO `auth_permission` VALUES (16, 'Can view user', 4, 'view_user');
  82. INSERT INTO `auth_permission` VALUES (17, 'Can add content type', 5, 'add_contenttype');
  83. INSERT INTO `auth_permission` VALUES (18, 'Can change content type', 5, 'change_contenttype');
  84. INSERT INTO `auth_permission` VALUES (19, 'Can delete content type', 5, 'delete_contenttype');
  85. INSERT INTO `auth_permission` VALUES (20, 'Can view content type', 5, 'view_contenttype');
  86. INSERT INTO `auth_permission` VALUES (21, 'Can add session', 6, 'add_session');
  87. INSERT INTO `auth_permission` VALUES (22, 'Can change session', 6, 'change_session');
  88. INSERT INTO `auth_permission` VALUES (23, 'Can delete session', 6, 'delete_session');
  89. INSERT INTO `auth_permission` VALUES (24, 'Can view session', 6, 'view_session');
  90. INSERT INTO `auth_permission` VALUES (25, 'Can add 权限', 7, 'add_permission');
  91. INSERT INTO `auth_permission` VALUES (26, 'Can change 权限', 7, 'change_permission');
  92. INSERT INTO `auth_permission` VALUES (27, 'Can delete 权限', 7, 'delete_permission');
  93. INSERT INTO `auth_permission` VALUES (28, 'Can view 权限', 7, 'view_permission');
  94. INSERT INTO `auth_permission` VALUES (29, 'Can add 角色', 8, 'add_role');
  95. INSERT INTO `auth_permission` VALUES (30, 'Can change 角色', 8, 'change_role');
  96. INSERT INTO `auth_permission` VALUES (31, 'Can delete 角色', 8, 'delete_role');
  97. INSERT INTO `auth_permission` VALUES (32, 'Can view 角色', 8, 'view_role');
  98. INSERT INTO `auth_permission` VALUES (33, 'Can add 用户', 9, 'add_user');
  99. INSERT INTO `auth_permission` VALUES (34, 'Can change 用户', 9, 'change_user');
  100. INSERT INTO `auth_permission` VALUES (35, 'Can delete 用户', 9, 'delete_user');
  101. INSERT INTO `auth_permission` VALUES (36, 'Can view 用户', 9, 'view_user');
  102. INSERT INTO `auth_permission` VALUES (37, 'Can add 被测试软件', 10, 'add_software');
  103. INSERT INTO `auth_permission` VALUES (38, 'Can change 被测试软件', 10, 'change_software');
  104. INSERT INTO `auth_permission` VALUES (39, 'Can delete 被测试软件', 10, 'delete_software');
  105. INSERT INTO `auth_permission` VALUES (40, 'Can view 被测试软件', 10, 'view_software');
  106. INSERT INTO `auth_permission` VALUES (41, 'Can add 软件版本', 11, 'add_version');
  107. INSERT INTO `auth_permission` VALUES (42, 'Can change 软件版本', 11, 'change_version');
  108. INSERT INTO `auth_permission` VALUES (43, 'Can delete 软件版本', 11, 'delete_version');
  109. INSERT INTO `auth_permission` VALUES (44, 'Can view 软件版本', 11, 'view_version');
  110. INSERT INTO `auth_permission` VALUES (45, 'Can add 测试计划', 12, 'add_testplan');
  111. INSERT INTO `auth_permission` VALUES (46, 'Can change 测试计划', 12, 'change_testplan');
  112. INSERT INTO `auth_permission` VALUES (47, 'Can delete 测试计划', 12, 'delete_testplan');
  113. INSERT INTO `auth_permission` VALUES (48, 'Can view 测试计划', 12, 'view_testplan');
  114. INSERT INTO `auth_permission` VALUES (49, 'Can add 测试任务', 13, 'add_testtask');
  115. INSERT INTO `auth_permission` VALUES (50, 'Can change 测试任务', 13, 'change_testtask');
  116. INSERT INTO `auth_permission` VALUES (51, 'Can delete 测试任务', 13, 'delete_testtask');
  117. INSERT INTO `auth_permission` VALUES (52, 'Can view 测试任务', 13, 'view_testtask');
  118. INSERT INTO `auth_permission` VALUES (53, 'Can add 测试用例', 14, 'add_testcase');
  119. INSERT INTO `auth_permission` VALUES (54, 'Can change 测试用例', 14, 'change_testcase');
  120. INSERT INTO `auth_permission` VALUES (55, 'Can delete 测试用例', 14, 'delete_testcase');
  121. INSERT INTO `auth_permission` VALUES (56, 'Can view 测试用例', 14, 'view_testcase');
  122. INSERT INTO `auth_permission` VALUES (57, 'Can add 文件管理', 15, 'add_filemanager');
  123. INSERT INTO `auth_permission` VALUES (58, 'Can change 文件管理', 15, 'change_filemanager');
  124. INSERT INTO `auth_permission` VALUES (59, 'Can delete 文件管理', 15, 'delete_filemanager');
  125. INSERT INTO `auth_permission` VALUES (60, 'Can view 文件管理', 15, 'view_filemanager');
  126. INSERT INTO `auth_permission` VALUES (61, 'Can add 日志', 16, 'add_log');
  127. INSERT INTO `auth_permission` VALUES (62, 'Can change 日志', 16, 'change_log');
  128. INSERT INTO `auth_permission` VALUES (63, 'Can delete 日志', 16, 'delete_log');
  129. INSERT INTO `auth_permission` VALUES (64, 'Can view 日志', 16, 'view_log');
  130. INSERT INTO `auth_permission` VALUES (65, 'Can add 被测试软件', 17, 'add_group');
  131. INSERT INTO `auth_permission` VALUES (66, 'Can change 被测试软件', 17, 'change_group');
  132. INSERT INTO `auth_permission` VALUES (67, 'Can delete 被测试软件', 17, 'delete_group');
  133. INSERT INTO `auth_permission` VALUES (68, 'Can view 被测试软件', 17, 'view_group');
  134. INSERT INTO `auth_permission` VALUES (69, 'Can add 北斗测试用例', 18, 'add_beidoucase');
  135. INSERT INTO `auth_permission` VALUES (70, 'Can change 北斗测试用例', 18, 'change_beidoucase');
  136. INSERT INTO `auth_permission` VALUES (71, 'Can delete 北斗测试用例', 18, 'delete_beidoucase');
  137. INSERT INTO `auth_permission` VALUES (72, 'Can view 北斗测试用例', 18, 'view_beidoucase');
  138. COMMIT;
  139. -- ----------------------------
  140. -- Table structure for auth_user
  141. -- ----------------------------
  142. DROP TABLE IF EXISTS `auth_user`;
  143. CREATE TABLE `auth_user` (
  144. `id` int NOT NULL AUTO_INCREMENT,
  145. `password` varchar(128) NOT NULL,
  146. `last_login` datetime(6) DEFAULT NULL,
  147. `is_superuser` tinyint(1) NOT NULL,
  148. `username` varchar(150) NOT NULL,
  149. `first_name` varchar(150) NOT NULL,
  150. `last_name` varchar(150) NOT NULL,
  151. `email` varchar(254) NOT NULL,
  152. `is_staff` tinyint(1) NOT NULL,
  153. `is_active` tinyint(1) NOT NULL,
  154. `date_joined` datetime(6) NOT NULL,
  155. PRIMARY KEY (`id`),
  156. UNIQUE KEY `username` (`username`)
  157. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  158. -- ----------------------------
  159. -- Records of auth_user
  160. -- ----------------------------
  161. BEGIN;
  162. COMMIT;
  163. -- ----------------------------
  164. -- Table structure for auth_user_groups
  165. -- ----------------------------
  166. DROP TABLE IF EXISTS `auth_user_groups`;
  167. CREATE TABLE `auth_user_groups` (
  168. `id` bigint NOT NULL AUTO_INCREMENT,
  169. `user_id` int NOT NULL,
  170. `group_id` int NOT NULL,
  171. PRIMARY KEY (`id`),
  172. UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
  173. KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
  174. CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
  175. CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
  176. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  177. -- ----------------------------
  178. -- Records of auth_user_groups
  179. -- ----------------------------
  180. BEGIN;
  181. COMMIT;
  182. -- ----------------------------
  183. -- Table structure for auth_user_user_permissions
  184. -- ----------------------------
  185. DROP TABLE IF EXISTS `auth_user_user_permissions`;
  186. CREATE TABLE `auth_user_user_permissions` (
  187. `id` bigint NOT NULL AUTO_INCREMENT,
  188. `user_id` int NOT NULL,
  189. `permission_id` int NOT NULL,
  190. PRIMARY KEY (`id`),
  191. UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
  192. KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
  193. CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
  194. CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
  195. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  196. -- ----------------------------
  197. -- Records of auth_user_user_permissions
  198. -- ----------------------------
  199. BEGIN;
  200. COMMIT;
  201. -- ----------------------------
  202. -- Table structure for beidou_case
  203. -- ----------------------------
  204. DROP TABLE IF EXISTS `beidou_case`;
  205. CREATE TABLE `beidou_case` (
  206. `id` varchar(128) NOT NULL,
  207. `version` varchar(30) DEFAULT NULL,
  208. `title` varchar(50) NOT NULL,
  209. `state` int NOT NULL,
  210. `positioning_accuracy` double DEFAULT NULL,
  211. `timing_accuracy` double DEFAULT NULL,
  212. `pseudo_range_measurement_accuracy` double DEFAULT NULL,
  213. `carrier_measurement_accuracy` double DEFAULT NULL,
  214. `speed_measurement_accuracy` double DEFAULT NULL,
  215. `sensitivity_capture` double DEFAULT NULL,
  216. `receiving_sensitivity` double DEFAULT NULL,
  217. `sensitivity_track` double DEFAULT NULL,
  218. `power_range_low` double DEFAULT NULL,
  219. `power_range_high` double DEFAULT NULL,
  220. `self_integrity` double DEFAULT NULL,
  221. `system_integrity` double DEFAULT NULL,
  222. `capture_time` double DEFAULT NULL,
  223. `recapture_time` double DEFAULT NULL,
  224. `update_rate` double DEFAULT NULL,
  225. `trace_channels` int DEFAULT NULL,
  226. `max_velocity` double DEFAULT NULL,
  227. `max_acceleration` double DEFAULT NULL,
  228. `create_time` datetime(6) NOT NULL,
  229. `update_time` datetime(6) NOT NULL,
  230. `delete` tinyint(1) NOT NULL,
  231. `remark` longtext,
  232. `executor_id` varchar(128) DEFAULT NULL,
  233. `software_id` varchar(128) DEFAULT NULL,
  234. `task_id` varchar(128) NOT NULL,
  235. PRIMARY KEY (`id`),
  236. KEY `beidou_case_executor_id_f189bc82_fk_user_id` (`executor_id`),
  237. KEY `beidou_case_software_id_5cfe9205_fk_software_id` (`software_id`),
  238. KEY `beidou_case_task_id_f61ad6ca_fk_task_id` (`task_id`),
  239. CONSTRAINT `beidou_case_executor_id_f189bc82_fk_user_id` FOREIGN KEY (`executor_id`) REFERENCES `user` (`id`),
  240. CONSTRAINT `beidou_case_software_id_5cfe9205_fk_software_id` FOREIGN KEY (`software_id`) REFERENCES `software` (`id`),
  241. CONSTRAINT `beidou_case_task_id_f61ad6ca_fk_task_id` FOREIGN KEY (`task_id`) REFERENCES `task` (`id`)
  242. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  243. -- ----------------------------
  244. -- Records of beidou_case
  245. -- ----------------------------
  246. BEGIN;
  247. COMMIT;
  248. -- ----------------------------
  249. -- Table structure for django_admin_log
  250. -- ----------------------------
  251. DROP TABLE IF EXISTS `django_admin_log`;
  252. CREATE TABLE `django_admin_log` (
  253. `id` int NOT NULL AUTO_INCREMENT,
  254. `action_time` datetime(6) NOT NULL,
  255. `object_id` longtext,
  256. `object_repr` varchar(200) NOT NULL,
  257. `action_flag` smallint unsigned NOT NULL,
  258. `change_message` longtext NOT NULL,
  259. `content_type_id` int DEFAULT NULL,
  260. `user_id` int NOT NULL,
  261. PRIMARY KEY (`id`),
  262. KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
  263. KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
  264. CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
  265. CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
  266. CONSTRAINT `django_admin_log_chk_1` CHECK ((`action_flag` >= 0))
  267. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  268. -- ----------------------------
  269. -- Records of django_admin_log
  270. -- ----------------------------
  271. BEGIN;
  272. COMMIT;
  273. -- ----------------------------
  274. -- Table structure for django_content_type
  275. -- ----------------------------
  276. DROP TABLE IF EXISTS `django_content_type`;
  277. CREATE TABLE `django_content_type` (
  278. `id` int NOT NULL AUTO_INCREMENT,
  279. `app_label` varchar(100) NOT NULL,
  280. `model` varchar(100) NOT NULL,
  281. PRIMARY KEY (`id`),
  282. UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
  283. ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  284. -- ----------------------------
  285. -- Records of django_content_type
  286. -- ----------------------------
  287. BEGIN;
  288. INSERT INTO `django_content_type` VALUES (1, 'admin', 'logentry');
  289. INSERT INTO `django_content_type` VALUES (3, 'auth', 'group');
  290. INSERT INTO `django_content_type` VALUES (2, 'auth', 'permission');
  291. INSERT INTO `django_content_type` VALUES (4, 'auth', 'user');
  292. INSERT INTO `django_content_type` VALUES (5, 'contenttypes', 'contenttype');
  293. INSERT INTO `django_content_type` VALUES (15, 'file', 'filemanager');
  294. INSERT INTO `django_content_type` VALUES (17, 'group', 'group');
  295. INSERT INTO `django_content_type` VALUES (16, 'log', 'log');
  296. INSERT INTO `django_content_type` VALUES (12, 'plan', 'testplan');
  297. INSERT INTO `django_content_type` VALUES (6, 'sessions', 'session');
  298. INSERT INTO `django_content_type` VALUES (10, 'software', 'software');
  299. INSERT INTO `django_content_type` VALUES (11, 'software', 'version');
  300. INSERT INTO `django_content_type` VALUES (18, 'task', 'beidoucase');
  301. INSERT INTO `django_content_type` VALUES (14, 'task', 'testcase');
  302. INSERT INTO `django_content_type` VALUES (13, 'task', 'testtask');
  303. INSERT INTO `django_content_type` VALUES (7, 'user', 'permission');
  304. INSERT INTO `django_content_type` VALUES (8, 'user', 'role');
  305. INSERT INTO `django_content_type` VALUES (9, 'user', 'user');
  306. COMMIT;
  307. -- ----------------------------
  308. -- Table structure for django_migrations
  309. -- ----------------------------
  310. DROP TABLE IF EXISTS `django_migrations`;
  311. CREATE TABLE `django_migrations` (
  312. `id` bigint NOT NULL AUTO_INCREMENT,
  313. `app` varchar(255) NOT NULL,
  314. `name` varchar(255) NOT NULL,
  315. `applied` datetime(6) NOT NULL,
  316. PRIMARY KEY (`id`)
  317. ) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  318. -- ----------------------------
  319. -- Records of django_migrations
  320. -- ----------------------------
  321. BEGIN;
  322. INSERT INTO `django_migrations` VALUES (1, 'contenttypes', '0001_initial', '2022-06-19 10:44:32.394371');
  323. INSERT INTO `django_migrations` VALUES (2, 'auth', '0001_initial', '2022-06-19 10:44:32.487851');
  324. INSERT INTO `django_migrations` VALUES (3, 'admin', '0001_initial', '2022-06-19 10:44:32.512785');
  325. INSERT INTO `django_migrations` VALUES (4, 'admin', '0002_logentry_remove_auto_add', '2022-06-19 10:44:32.517001');
  326. INSERT INTO `django_migrations` VALUES (5, 'admin', '0003_logentry_add_action_flag_choices', '2022-06-19 10:44:32.521252');
  327. INSERT INTO `django_migrations` VALUES (6, 'contenttypes', '0002_remove_content_type_name', '2022-06-19 10:44:32.537446');
  328. INSERT INTO `django_migrations` VALUES (7, 'auth', '0002_alter_permission_name_max_length', '2022-06-19 10:44:32.549952');
  329. INSERT INTO `django_migrations` VALUES (8, 'auth', '0003_alter_user_email_max_length', '2022-06-19 10:44:32.559319');
  330. INSERT INTO `django_migrations` VALUES (9, 'auth', '0004_alter_user_username_opts', '2022-06-19 10:44:32.564573');
  331. INSERT INTO `django_migrations` VALUES (10, 'auth', '0005_alter_user_last_login_null', '2022-06-19 10:44:32.575576');
  332. INSERT INTO `django_migrations` VALUES (11, 'auth', '0006_require_contenttypes_0002', '2022-06-19 10:44:32.576488');
  333. INSERT INTO `django_migrations` VALUES (12, 'auth', '0007_alter_validators_add_error_messages', '2022-06-19 10:44:32.581006');
  334. INSERT INTO `django_migrations` VALUES (13, 'auth', '0008_alter_user_username_max_length', '2022-06-19 10:44:32.596255');
  335. INSERT INTO `django_migrations` VALUES (14, 'auth', '0009_alter_user_last_name_max_length', '2022-06-19 10:44:32.609861');
  336. INSERT INTO `django_migrations` VALUES (15, 'auth', '0010_alter_group_name_max_length', '2022-06-19 10:44:32.617614');
  337. INSERT INTO `django_migrations` VALUES (16, 'auth', '0011_update_proxy_permissions', '2022-06-19 10:44:32.621214');
  338. INSERT INTO `django_migrations` VALUES (17, 'auth', '0012_alter_user_first_name_max_length', '2022-06-19 10:44:32.633468');
  339. INSERT INTO `django_migrations` VALUES (18, 'file', '0001_initial', '2022-06-19 10:44:32.640435');
  340. INSERT INTO `django_migrations` VALUES (19, 'file', '0002_alter_filemanager_id', '2022-06-19 10:44:32.647955');
  341. INSERT INTO `django_migrations` VALUES (20, 'log', '0001_initial', '2022-06-19 10:44:32.657577');
  342. INSERT INTO `django_migrations` VALUES (21, 'log', '0002_alter_log_id', '2022-06-19 10:44:32.665621');
  343. INSERT INTO `django_migrations` VALUES (22, 'user', '0001_initial', '2022-06-19 10:44:32.726788');
  344. INSERT INTO `django_migrations` VALUES (23, 'software', '0001_initial', '2022-06-19 10:44:32.751318');
  345. INSERT INTO `django_migrations` VALUES (24, 'plan', '0001_initial', '2022-06-19 10:44:32.795555');
  346. INSERT INTO `django_migrations` VALUES (25, 'plan', '0002_alter_testplan_id', '2022-06-19 10:44:32.806378');
  347. INSERT INTO `django_migrations` VALUES (26, 'sessions', '0001_initial', '2022-06-19 10:44:32.814163');
  348. INSERT INTO `django_migrations` VALUES (27, 'software', '0002_alter_software_name', '2022-06-19 10:44:32.825552');
  349. INSERT INTO `django_migrations` VALUES (28, 'task', '0001_initial', '2022-06-19 10:44:32.893446');
  350. INSERT INTO `django_migrations` VALUES (29, 'task', '0002_alter_testtask_id', '2022-06-19 10:44:32.938279');
  351. INSERT INTO `django_migrations` VALUES (30, 'user', '0002_auto_20220619_1043', '2022-06-19 10:44:33.059425');
  352. INSERT INTO `django_migrations` VALUES (31, 'task', '0003_auto_20220626_1630', '2022-06-26 16:31:02.458212');
  353. INSERT INTO `django_migrations` VALUES (32, 'group', '0001_initial', '2022-10-04 20:49:38.358109');
  354. INSERT INTO `django_migrations` VALUES (33, 'software', '0003_auto_20221004_2044', '2022-10-04 20:49:38.476140');
  355. INSERT INTO `django_migrations` VALUES (34, 'task', '0004_alter_testcase_id', '2022-10-04 20:49:38.493060');
  356. INSERT INTO `django_migrations` VALUES (35, 'user', '0003_remove_user_group', '2022-10-05 17:30:42.091655');
  357. INSERT INTO `django_migrations` VALUES (36, 'group', '0002_group_users', '2022-10-05 17:30:42.127830');
  358. INSERT INTO `django_migrations` VALUES (37, 'group', '0003_alter_group_code', '2022-10-05 19:27:19.485913');
  359. INSERT INTO `django_migrations` VALUES (38, 'task', '0005_testtask_type', '2022-11-15 10:49:43.901233');
  360. INSERT INTO `django_migrations` VALUES (39, 'task', '0006_beidoucase', '2022-11-15 20:24:01.661133');
  361. COMMIT;
  362. -- ----------------------------
  363. -- Table structure for django_session
  364. -- ----------------------------
  365. DROP TABLE IF EXISTS `django_session`;
  366. CREATE TABLE `django_session` (
  367. `session_key` varchar(40) NOT NULL,
  368. `session_data` longtext NOT NULL,
  369. `expire_date` datetime(6) NOT NULL,
  370. PRIMARY KEY (`session_key`),
  371. KEY `django_session_expire_date_a5c62663` (`expire_date`)
  372. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  373. -- ----------------------------
  374. -- Records of django_session
  375. -- ----------------------------
  376. BEGIN;
  377. COMMIT;
  378. -- ----------------------------
  379. -- Table structure for file_manager
  380. -- ----------------------------
  381. DROP TABLE IF EXISTS `file_manager`;
  382. CREATE TABLE `file_manager` (
  383. `id` varchar(128) NOT NULL,
  384. `path` varchar(200) NOT NULL,
  385. `create_time` datetime(6) NOT NULL,
  386. `update_time` datetime(6) NOT NULL,
  387. `delete` tinyint(1) NOT NULL,
  388. `category` varchar(20) NOT NULL,
  389. PRIMARY KEY (`id`)
  390. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  391. -- ----------------------------
  392. -- Records of file_manager
  393. -- ----------------------------
  394. BEGIN;
  395. COMMIT;
  396. -- ----------------------------
  397. -- Table structure for group
  398. -- ----------------------------
  399. DROP TABLE IF EXISTS `group`;
  400. CREATE TABLE `group` (
  401. `name` varchar(128) NOT NULL,
  402. `id` varchar(128) NOT NULL,
  403. `code` varchar(12) NOT NULL,
  404. `manager` varchar(60) NOT NULL,
  405. `create_time` datetime(6) NOT NULL,
  406. `update_time` datetime(6) NOT NULL,
  407. `delete` tinyint(1) NOT NULL,
  408. PRIMARY KEY (`id`)
  409. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  410. -- ----------------------------
  411. -- Records of group
  412. -- ----------------------------
  413. BEGIN;
  414. COMMIT;
  415. -- ----------------------------
  416. -- Table structure for group_users
  417. -- ----------------------------
  418. DROP TABLE IF EXISTS `group_users`;
  419. CREATE TABLE `group_users` (
  420. `id` bigint NOT NULL AUTO_INCREMENT,
  421. `group_id` varchar(128) NOT NULL,
  422. `user_id` varchar(128) NOT NULL,
  423. PRIMARY KEY (`id`),
  424. UNIQUE KEY `group_users_group_id_user_id_c7ab77af_uniq` (`group_id`,`user_id`),
  425. KEY `group_users_user_id_3c44daf2_fk_user_id` (`user_id`),
  426. CONSTRAINT `group_users_group_id_3ffe8048_fk_group_id` FOREIGN KEY (`group_id`) REFERENCES `group` (`id`),
  427. CONSTRAINT `group_users_user_id_3c44daf2_fk_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
  428. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  429. -- ----------------------------
  430. -- Records of group_users
  431. -- ----------------------------
  432. BEGIN;
  433. COMMIT;
  434. -- ----------------------------
  435. -- Table structure for log
  436. -- ----------------------------
  437. DROP TABLE IF EXISTS `log`;
  438. CREATE TABLE `log` (
  439. `id` varchar(128) NOT NULL,
  440. `action` varchar(100) NOT NULL,
  441. `entity_class` varchar(50) NOT NULL,
  442. `entity_name` varchar(50) DEFAULT NULL,
  443. `method` varchar(30) NOT NULL,
  444. `executor_id` varchar(50) NOT NULL,
  445. `executor_username` varchar(50) NOT NULL,
  446. `executor_identify` int NOT NULL,
  447. `create_time` datetime(6) NOT NULL,
  448. `update_time` datetime(6) NOT NULL,
  449. `delete` tinyint(1) NOT NULL,
  450. PRIMARY KEY (`id`)
  451. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  452. -- ----------------------------
  453. -- Records of log
  454. -- ----------------------------
  455. BEGIN;
  456. COMMIT;
  457. -- ----------------------------
  458. -- Table structure for permission
  459. -- ----------------------------
  460. DROP TABLE IF EXISTS `permission`;
  461. CREATE TABLE `permission` (
  462. `id` varchar(128) NOT NULL,
  463. `name` varchar(25) NOT NULL,
  464. `url` varchar(125) DEFAULT NULL,
  465. `method` varchar(20) DEFAULT NULL,
  466. `create_time` datetime(6) NOT NULL,
  467. `update_time` datetime(6) NOT NULL,
  468. `delete` tinyint(1) NOT NULL,
  469. PRIMARY KEY (`id`)
  470. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  471. -- ----------------------------
  472. -- Records of permission
  473. -- ----------------------------
  474. BEGIN;
  475. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_1', '新建测试目标', '/api/v1/software', 'POST', '2021-07-14 10:20:49.000000', '2021-07-14 10:20:51.000000', 0);
  476. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_10', '导出测试用例', '/api/v1/software/.*/versions', 'GET', '2021-07-14 10:31:00.000000', '2021-07-14 10:31:03.000000', 0);
  477. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_11', '创建测试计划', '/api/v1/test-plans', 'POST', '2021-07-14 10:32:39.000000', '2021-07-14 10:32:41.000000', 0);
  478. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_12', '查看测试计划列表', '/api/v1/test-plans', 'GET', '2021-07-14 10:33:34.000000', '2021-07-14 10:33:39.000000', 0);
  479. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_13', '编辑测试计划', '/api/v1/test-plans/.*/edit', 'POST', '2021-07-14 10:34:37.000000', '2021-07-14 10:34:41.000000', 0);
  480. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_14', '查看测试计划', '/api/v1/test-plans/.*', 'GET', '2021-07-14 10:35:27.000000', '2021-07-14 10:35:30.000000', 0);
  481. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_15', '删除测试计划', '/api/v1/test-plans/.*', 'DELETE', '2021-07-14 10:35:53.000000', '2021-07-14 10:35:56.000000', 0);
  482. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_16', '创建测试任务', '/api/v1/test-tasks', 'POST', '2021-07-14 10:37:00.000000', '2021-07-14 10:37:04.000000', 0);
  483. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_17', '查看测试任务列表', '/api/v1/test-tasks', 'GET', '2021-07-14 10:37:43.000000', '2021-07-14 10:37:47.000000', 0);
  484. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_18', '查看测试任务', '/api/v1/test-tasks/.*', 'GET', '2021-07-14 10:38:34.000000', '2021-07-14 10:38:37.000000', 0);
  485. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_19', '编辑测试任务', '/api/v1/test-tasks/.*/edit', 'POST', '2021-07-14 10:39:01.000000', '2021-07-14 10:39:05.000000', 0);
  486. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_2', '查看测试目标列表', '/api/v1/software', 'GET', '2021-07-14 10:23:46.000000', '2021-07-14 10:23:49.000000', 0);
  487. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_20', '删除测试任务', '/api/v1/test-tasks/.*', 'DELETE', '2021-07-14 10:39:54.000000', '2021-07-14 10:39:58.000000', 0);
  488. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_21', '执行测试任务', '/api/v1/test-tasks/.*/case-file/execute', 'POST', '2021-07-14 10:40:58.000000', '2021-07-14 10:41:01.000000', 0);
  489. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_22', '导出测试用例', '/api/v1/test-tasks/.*/case-file', 'GET', '2021-07-14 10:42:06.000000', '2021-07-14 10:42:12.000000', 0);
  490. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_23', '查看用户列表', '/api/v1/users', 'GET', '2021-07-15 11:22:54.000000', '2021-07-15 11:22:57.000000', 0);
  491. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_24', '上传文件', '/api/v1/files', 'POST', '2021-07-17 11:08:14.000000', '2021-07-17 11:08:18.000000', 0);
  492. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_25', '删除文件', '/api/v1/files', 'DELETE', '2021-07-17 11:08:14.000000', '2021-07-17 11:08:18.000000', 0);
  493. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_26', '查看用户', '/api/v1/users/.*', 'GET', '2021-07-17 17:18:35.000000', '2021-07-17 17:18:38.000000', 0);
  494. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_27', '编辑用户信息', '/api/v1/users/.*/edit', 'POST', '2021-07-15 11:22:54.000000', '2021-07-15 11:22:57.000000', 0);
  495. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_28', '查看版本列表', '/api/v1/software/versions', 'GET', '2021-07-20 17:32:29.000000', '2021-07-20 17:32:33.000000', 0);
  496. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_29', '创建分组', '/api/v1/group', 'POST', '2021-07-20 17:32:29.000000', '2021-07-20 17:32:33.000000', 0);
  497. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_3', '查看测试目标', '/api/v1/software/.*', 'GET', '2021-07-14 10:25:16.000000', '2021-07-14 10:25:19.000000', 0);
  498. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_30', '编辑分组信息', '/api/v1/group/.*/edit', 'POST', '2022-10-06 08:59:33.000000', '2022-10-06 08:59:38.000000', 0);
  499. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_31', '分组列表', '/api/v1/group', 'GET', '2022-10-06 09:00:25.000000', '2022-10-06 09:00:29.000000', 0);
  500. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_32', '查看分组信息', '/api/v1/group/.*', 'GET', '2022-10-06 09:01:18.000000', '2022-10-06 09:01:22.000000', 0);
  501. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_33', '删除分组', '/api/v1/group/.*', 'DELETE', '2022-10-06 09:01:59.000000', '2022-10-06 09:02:03.000000', 0);
  502. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_34', '加入班级', '/api/v1/users/.*/join', 'POST', '2022-10-06 09:02:48.000000', '2022-10-06 09:02:53.000000', 0);
  503. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_35', '退出班级', '/api/v1/users/.*/quit', 'POST', '2022-10-06 09:03:27.000000', '2022-10-06 09:03:30.000000', 0);
  504. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_36', '分组用户', '/api/v1/group/user', 'GET', '2022-10-10 22:02:45.000000', '2022-10-10 22:02:47.000000', 0);
  505. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_37', '导出用户', '/api/v1/users/group', 'GET', '2022-10-12 11:35:48.000000', '2022-10-12 11:35:50.000000', 0);
  506. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_38', '创建北斗任务', '/api/v1/test-tasks/beidou', 'POST', '2022-10-06 08:59:33.000000', '2022-10-06 08:59:38.000000', 0);
  507. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_39', '北斗任务列表', '/api/v1/test-tasks/beidou/list', 'GET', '2022-10-06 09:00:25.000000', '2022-10-06 09:00:29.000000', 0);
  508. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_4', '编辑测试目标', '/api/v1/software/.*/edit', 'POST', '2021-07-14 10:25:48.000000', '2021-07-14 10:25:50.000000', 0);
  509. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_40', '北斗任务executor信息', '/api/v1/test-tasks/beidou/info', 'GET', '2022-10-06 09:01:18.000000', '2022-10-06 09:01:22.000000', 0);
  510. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_41', '编辑北斗任务', '/api/v1/test-tasks/beidou/edit', 'POST', '2022-10-06 09:01:18.000000', '2022-10-06 09:01:22.000000', 0);
  511. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_42', '删除北斗任务', '/api/v1/test-tasks/beidou/edit', 'DELETE', '2022-10-06 09:01:59.000000', '2022-10-06 09:02:03.000000', 0);
  512. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_43', '执行北斗任务', '/api/v1/test-tasks/beidou/.*/execute', 'POST', '2022-10-06 09:02:48.000000', '2022-10-06 09:02:53.000000', 0);
  513. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_44', '查看北斗任务执行结果', '/api/v1/test-tasks/beidou/.*', 'GET', '2022-10-06 09:03:27.000000', '2022-10-06 09:03:30.000000', 0);
  514. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_5', '删除测试目标', '/api/v1/software/.*', 'DELETE', '2021-07-14 10:26:40.000000', '2021-07-14 10:26:42.000000', 0);
  515. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_6', '生成测试报告', '/api/v1/software/.*/report', 'GET', '2021-07-14 10:27:43.000000', '2021-07-14 10:27:46.000000', 0);
  516. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_7', '新建版本', '/api/v1/software/.*/versions', 'POST', '2021-07-14 10:29:22.000000', '2021-07-14 10:29:25.000000', 0);
  517. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_8', '编辑版本', '/api/v1/software/.*/versions/edit', 'POST', '2021-07-14 10:29:51.000000', '2021-07-14 10:29:59.000000', 0);
  518. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_9', '删除版本', '/api/v1/software/.*/versions', 'DELETE', '2021-07-14 10:30:31.000000', '2021-07-14 10:30:33.000000', 0);
  519. COMMIT;
  520. -- ----------------------------
  521. -- Table structure for plan
  522. -- ----------------------------
  523. DROP TABLE IF EXISTS `plan`;
  524. CREATE TABLE `plan` (
  525. `id` varchar(128) NOT NULL,
  526. `title` varchar(30) NOT NULL,
  527. `version` varchar(20) NOT NULL,
  528. `state` int NOT NULL,
  529. `description` longtext NOT NULL,
  530. `statement_file` longtext NOT NULL,
  531. `create_time` datetime(6) NOT NULL,
  532. `update_time` datetime(6) NOT NULL,
  533. `delete` tinyint(1) NOT NULL,
  534. `creator_id` varchar(128) DEFAULT NULL,
  535. `software_id` varchar(128) NOT NULL,
  536. PRIMARY KEY (`id`),
  537. KEY `plan_creator_id_c94ecd21_fk` (`creator_id`),
  538. KEY `plan_software_id_4b28cc2e_fk` (`software_id`),
  539. CONSTRAINT `plan_creator_id_c94ecd21_fk` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`),
  540. CONSTRAINT `plan_software_id_4b28cc2e_fk` FOREIGN KEY (`software_id`) REFERENCES `software` (`id`)
  541. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  542. -- ----------------------------
  543. -- Records of plan
  544. -- ----------------------------
  545. BEGIN;
  546. COMMIT;
  547. -- ----------------------------
  548. -- Table structure for role
  549. -- ----------------------------
  550. DROP TABLE IF EXISTS `role`;
  551. CREATE TABLE `role` (
  552. `id` varchar(128) NOT NULL,
  553. `name` varchar(25) NOT NULL,
  554. `create_time` datetime(6) NOT NULL,
  555. `update_time` datetime(6) NOT NULL,
  556. `delete` tinyint(1) NOT NULL,
  557. PRIMARY KEY (`id`),
  558. UNIQUE KEY `name` (`name`)
  559. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  560. -- ----------------------------
  561. -- Records of role
  562. -- ----------------------------
  563. BEGIN;
  564. INSERT INTO `role` VALUES ('TestLaboratory_V1_Role_1', '系统管理员', '2021-07-14 10:44:26.000000', '2021-07-14 10:44:34.000000', 0);
  565. INSERT INTO `role` VALUES ('TestLaboratory_V1_Role_2', '测试管理员', '2021-07-14 10:44:53.000000', '2021-07-14 10:44:56.000000', 0);
  566. INSERT INTO `role` VALUES ('TestLaboratory_V1_Role_3', '测试工程师', '2021-07-14 10:45:12.000000', '2021-07-14 10:45:15.000000', 0);
  567. COMMIT;
  568. -- ----------------------------
  569. -- Table structure for role_permissions
  570. -- ----------------------------
  571. DROP TABLE IF EXISTS `role_permissions`;
  572. CREATE TABLE `role_permissions` (
  573. `id` bigint NOT NULL AUTO_INCREMENT,
  574. `role_id` varchar(128) NOT NULL,
  575. `permission_id` varchar(128) NOT NULL,
  576. PRIMARY KEY (`id`),
  577. UNIQUE KEY `role_permissions_role_id_permission_id_04f77df0_uniq` (`role_id`,`permission_id`),
  578. KEY `role_permissions_permission_id_ad343843_fk_permission_id` (`permission_id`)
  579. ) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  580. -- ----------------------------
  581. -- Records of role_permissions
  582. -- ----------------------------
  583. BEGIN;
  584. INSERT INTO `role_permissions` VALUES (1, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_1');
  585. INSERT INTO `role_permissions` VALUES (10, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_10');
  586. INSERT INTO `role_permissions` VALUES (11, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_11');
  587. INSERT INTO `role_permissions` VALUES (12, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_12');
  588. INSERT INTO `role_permissions` VALUES (13, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_13');
  589. INSERT INTO `role_permissions` VALUES (14, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_14');
  590. INSERT INTO `role_permissions` VALUES (15, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_15');
  591. INSERT INTO `role_permissions` VALUES (16, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_16');
  592. INSERT INTO `role_permissions` VALUES (17, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_17');
  593. INSERT INTO `role_permissions` VALUES (18, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_18');
  594. INSERT INTO `role_permissions` VALUES (19, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_19');
  595. INSERT INTO `role_permissions` VALUES (2, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_2');
  596. INSERT INTO `role_permissions` VALUES (20, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_20');
  597. INSERT INTO `role_permissions` VALUES (21, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_21');
  598. INSERT INTO `role_permissions` VALUES (51, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_23');
  599. INSERT INTO `role_permissions` VALUES (54, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_24');
  600. INSERT INTO `role_permissions` VALUES (56, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_25');
  601. INSERT INTO `role_permissions` VALUES (58, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_26');
  602. INSERT INTO `role_permissions` VALUES (61, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_27');
  603. INSERT INTO `role_permissions` VALUES (65, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_28');
  604. INSERT INTO `role_permissions` VALUES (67, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_29');
  605. INSERT INTO `role_permissions` VALUES (3, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_3');
  606. INSERT INTO `role_permissions` VALUES (69, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_30');
  607. INSERT INTO `role_permissions` VALUES (71, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_31');
  608. INSERT INTO `role_permissions` VALUES (73, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_32');
  609. INSERT INTO `role_permissions` VALUES (75, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_33');
  610. INSERT INTO `role_permissions` VALUES (77, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_34');
  611. INSERT INTO `role_permissions` VALUES (80, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_35');
  612. INSERT INTO `role_permissions` VALUES (84, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_36');
  613. INSERT INTO `role_permissions` VALUES (86, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_37');
  614. INSERT INTO `role_permissions` VALUES (88, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_38');
  615. INSERT INTO `role_permissions` VALUES (90, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_39');
  616. INSERT INTO `role_permissions` VALUES (4, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_4');
  617. INSERT INTO `role_permissions` VALUES (93, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_40');
  618. INSERT INTO `role_permissions` VALUES (96, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_41');
  619. INSERT INTO `role_permissions` VALUES (98, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_42');
  620. INSERT INTO `role_permissions` VALUES (100, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_43');
  621. INSERT INTO `role_permissions` VALUES (103, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_44');
  622. INSERT INTO `role_permissions` VALUES (5, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_5');
  623. INSERT INTO `role_permissions` VALUES (6, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_6');
  624. INSERT INTO `role_permissions` VALUES (7, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_7');
  625. INSERT INTO `role_permissions` VALUES (8, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_8');
  626. INSERT INTO `role_permissions` VALUES (9, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_9');
  627. INSERT INTO `role_permissions` VALUES (22, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_1');
  628. INSERT INTO `role_permissions` VALUES (31, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_10');
  629. INSERT INTO `role_permissions` VALUES (32, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_11');
  630. INSERT INTO `role_permissions` VALUES (33, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_12');
  631. INSERT INTO `role_permissions` VALUES (34, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_13');
  632. INSERT INTO `role_permissions` VALUES (35, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_14');
  633. INSERT INTO `role_permissions` VALUES (36, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_15');
  634. INSERT INTO `role_permissions` VALUES (37, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_16');
  635. INSERT INTO `role_permissions` VALUES (38, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_17');
  636. INSERT INTO `role_permissions` VALUES (39, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_18');
  637. INSERT INTO `role_permissions` VALUES (40, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_19');
  638. INSERT INTO `role_permissions` VALUES (23, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_2');
  639. INSERT INTO `role_permissions` VALUES (41, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_20');
  640. INSERT INTO `role_permissions` VALUES (42, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_21');
  641. INSERT INTO `role_permissions` VALUES (52, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_23');
  642. INSERT INTO `role_permissions` VALUES (55, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_24');
  643. INSERT INTO `role_permissions` VALUES (57, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_25');
  644. INSERT INTO `role_permissions` VALUES (59, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_26');
  645. INSERT INTO `role_permissions` VALUES (62, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_27');
  646. INSERT INTO `role_permissions` VALUES (66, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_28');
  647. INSERT INTO `role_permissions` VALUES (68, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_29');
  648. INSERT INTO `role_permissions` VALUES (24, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_3');
  649. INSERT INTO `role_permissions` VALUES (70, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_30');
  650. INSERT INTO `role_permissions` VALUES (72, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_31');
  651. INSERT INTO `role_permissions` VALUES (74, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_32');
  652. INSERT INTO `role_permissions` VALUES (76, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_33');
  653. INSERT INTO `role_permissions` VALUES (78, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_34');
  654. INSERT INTO `role_permissions` VALUES (81, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_35');
  655. INSERT INTO `role_permissions` VALUES (85, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_36');
  656. INSERT INTO `role_permissions` VALUES (87, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_37');
  657. INSERT INTO `role_permissions` VALUES (89, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_38');
  658. INSERT INTO `role_permissions` VALUES (91, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_39');
  659. INSERT INTO `role_permissions` VALUES (25, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_4');
  660. INSERT INTO `role_permissions` VALUES (94, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_40');
  661. INSERT INTO `role_permissions` VALUES (97, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_41');
  662. INSERT INTO `role_permissions` VALUES (99, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_42');
  663. INSERT INTO `role_permissions` VALUES (101, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_43');
  664. INSERT INTO `role_permissions` VALUES (104, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_44');
  665. INSERT INTO `role_permissions` VALUES (26, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_5');
  666. INSERT INTO `role_permissions` VALUES (27, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_6');
  667. INSERT INTO `role_permissions` VALUES (28, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_7');
  668. INSERT INTO `role_permissions` VALUES (29, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_8');
  669. INSERT INTO `role_permissions` VALUES (30, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_9');
  670. INSERT INTO `role_permissions` VALUES (45, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_12');
  671. INSERT INTO `role_permissions` VALUES (46, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_14');
  672. INSERT INTO `role_permissions` VALUES (47, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_17');
  673. INSERT INTO `role_permissions` VALUES (48, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_18');
  674. INSERT INTO `role_permissions` VALUES (64, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_19');
  675. INSERT INTO `role_permissions` VALUES (43, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_2');
  676. INSERT INTO `role_permissions` VALUES (49, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_21');
  677. INSERT INTO `role_permissions` VALUES (50, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_22');
  678. INSERT INTO `role_permissions` VALUES (53, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_23');
  679. INSERT INTO `role_permissions` VALUES (60, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_26');
  680. INSERT INTO `role_permissions` VALUES (63, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_27');
  681. INSERT INTO `role_permissions` VALUES (44, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_3');
  682. INSERT INTO `role_permissions` VALUES (83, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_31');
  683. INSERT INTO `role_permissions` VALUES (79, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_34');
  684. INSERT INTO `role_permissions` VALUES (82, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_35');
  685. INSERT INTO `role_permissions` VALUES (92, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_39');
  686. INSERT INTO `role_permissions` VALUES (95, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_40');
  687. INSERT INTO `role_permissions` VALUES (102, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_43');
  688. INSERT INTO `role_permissions` VALUES (105, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_44');
  689. COMMIT;
  690. -- ----------------------------
  691. -- Table structure for software
  692. -- ----------------------------
  693. DROP TABLE IF EXISTS `software`;
  694. CREATE TABLE `software` (
  695. `name` varchar(128) NOT NULL,
  696. `id` varchar(128) NOT NULL,
  697. `type` varchar(20) NOT NULL,
  698. `report_file` longtext,
  699. `create_time` datetime(6) NOT NULL,
  700. `update_time` datetime(6) NOT NULL,
  701. `delete` tinyint(1) NOT NULL,
  702. PRIMARY KEY (`id`)
  703. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  704. -- ----------------------------
  705. -- Records of software
  706. -- ----------------------------
  707. BEGIN;
  708. COMMIT;
  709. -- ----------------------------
  710. -- Table structure for task
  711. -- ----------------------------
  712. DROP TABLE IF EXISTS `task`;
  713. CREATE TABLE `task` (
  714. `id` varchar(128) NOT NULL,
  715. `title` varchar(50) NOT NULL,
  716. `state` int NOT NULL,
  717. `description` longtext NOT NULL,
  718. `statement_file` longtext NOT NULL,
  719. `case_file` longtext,
  720. `case_all` int DEFAULT NULL,
  721. `case_not_execute` int DEFAULT NULL,
  722. `case_success` int DEFAULT NULL,
  723. `case_fail` int DEFAULT NULL,
  724. `create_time` datetime(6) NOT NULL,
  725. `update_time` datetime(6) NOT NULL,
  726. `delete` tinyint(1) NOT NULL,
  727. `plan_id` varchar(128) NOT NULL,
  728. `executor_id` varchar(128) DEFAULT NULL,
  729. `type` varchar(30) NOT NULL,
  730. PRIMARY KEY (`id`),
  731. KEY `task_plan_id_77395325_fk_plan_id` (`plan_id`),
  732. KEY `task_executor_id_24a67329_fk_user_id` (`executor_id`),
  733. CONSTRAINT `task_executor_id_24a67329_fk_user_id` FOREIGN KEY (`executor_id`) REFERENCES `user` (`id`),
  734. CONSTRAINT `task_plan_id_77395325_fk_plan_id` FOREIGN KEY (`plan_id`) REFERENCES `plan` (`id`)
  735. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  736. -- ----------------------------
  737. -- Records of task
  738. -- ----------------------------
  739. BEGIN;
  740. COMMIT;
  741. -- ----------------------------
  742. -- Table structure for test_case
  743. -- ----------------------------
  744. DROP TABLE IF EXISTS `test_case`;
  745. CREATE TABLE `test_case` (
  746. `id` varchar(128) NOT NULL,
  747. `id_in_task` varchar(30) NOT NULL,
  748. `version` varchar(30) DEFAULT NULL,
  749. `name` varchar(50) NOT NULL,
  750. `state` int NOT NULL,
  751. `writer` varchar(30) DEFAULT NULL,
  752. `executor` varchar(30) DEFAULT NULL,
  753. `assessor` varchar(30) DEFAULT NULL,
  754. `requisite` longtext,
  755. `priority` varchar(10) DEFAULT NULL,
  756. `environment` longtext,
  757. `type` varchar(30) DEFAULT NULL,
  758. `process` longtext NOT NULL,
  759. `expected_result` longtext NOT NULL,
  760. `actual_result` longtext,
  761. `create_time` datetime(6) NOT NULL,
  762. `update_time` datetime(6) NOT NULL,
  763. `delete` tinyint(1) NOT NULL,
  764. `remark` longtext,
  765. `software_id` varchar(128) DEFAULT NULL,
  766. `task_id` varchar(128) NOT NULL,
  767. `executor_id_id` varchar(128) DEFAULT NULL,
  768. PRIMARY KEY (`id`),
  769. KEY `test_case_task_id_6c501356_fk` (`task_id`),
  770. KEY `test_case_executor_id_id_4afa1b6e_fk_user_id` (`executor_id_id`),
  771. KEY `test_case_software_id_b7e9af75_fk` (`software_id`),
  772. CONSTRAINT `test_case_executor_id_id_4afa1b6e_fk_user_id` FOREIGN KEY (`executor_id_id`) REFERENCES `user` (`id`),
  773. CONSTRAINT `test_case_software_id_b7e9af75_fk` FOREIGN KEY (`software_id`) REFERENCES `software` (`id`),
  774. CONSTRAINT `test_case_task_id_6c501356_fk` FOREIGN KEY (`task_id`) REFERENCES `task` (`id`)
  775. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  776. -- ----------------------------
  777. -- Records of test_case
  778. -- ----------------------------
  779. BEGIN;
  780. COMMIT;
  781. -- ----------------------------
  782. -- Table structure for user
  783. -- ----------------------------
  784. DROP TABLE IF EXISTS `user`;
  785. CREATE TABLE `user` (
  786. `id` varchar(128) NOT NULL,
  787. `username` varchar(30) NOT NULL,
  788. `name` varchar(20) NOT NULL,
  789. `password` varchar(60) NOT NULL,
  790. `tel` varchar(20) NOT NULL,
  791. `identify` int NOT NULL,
  792. `create_time` datetime(6) NOT NULL,
  793. `update_time` datetime(6) NOT NULL,
  794. `is_login` tinyint(1) NOT NULL,
  795. `delete` tinyint(1) NOT NULL,
  796. PRIMARY KEY (`id`),
  797. UNIQUE KEY `username` (`username`)
  798. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  799. -- ----------------------------
  800. -- Records of user
  801. -- ----------------------------
  802. BEGIN;
  803. INSERT INTO `user` VALUES ('TestLaboratory_V1_User_1', 'honghong', '小红', '123456', '18851111391', 1, '2021-07-13 14:23:25.000000', '2022-11-17 00:09:51.441505', 1, 0);
  804. INSERT INTO `user` VALUES ('TestLaboratory_V1_User_2', 'zxc', '小蓝', '123456', '11223344556', 2, '2021-09-26 15:41:37.000000', '2022-11-16 11:36:16.512469', 1, 0);
  805. INSERT INTO `user` VALUES ('TestLaboratory_V1_User_3', 'bcd', '小黄', '123456', '138138138138', 2, '2021-09-26 15:44:39.000000', '2021-09-26 15:44:43.000000', 0, 0);
  806. COMMIT;
  807. -- ----------------------------
  808. -- Table structure for user_roles
  809. -- ----------------------------
  810. DROP TABLE IF EXISTS `user_roles`;
  811. CREATE TABLE `user_roles` (
  812. `id` bigint NOT NULL AUTO_INCREMENT,
  813. `user_id` varchar(128) NOT NULL,
  814. `role_id` varchar(128) NOT NULL,
  815. PRIMARY KEY (`id`),
  816. UNIQUE KEY `user_roles_user_id_role_id_69bfd9a0_uniq` (`user_id`,`role_id`),
  817. KEY `user_roles_role_id_816a4486_fk_role_id` (`role_id`)
  818. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  819. -- ----------------------------
  820. -- Records of user_roles
  821. -- ----------------------------
  822. BEGIN;
  823. COMMIT;
  824. -- ----------------------------
  825. -- Table structure for version
  826. -- ----------------------------
  827. DROP TABLE IF EXISTS `version`;
  828. CREATE TABLE `version` (
  829. `id` varchar(128) NOT NULL,
  830. `number` varchar(20) NOT NULL,
  831. `version_file` longtext NOT NULL,
  832. `create_time` datetime(6) NOT NULL,
  833. `update_time` datetime(6) NOT NULL,
  834. `delete` tinyint(1) NOT NULL,
  835. `software_id` varchar(128) NOT NULL,
  836. PRIMARY KEY (`id`),
  837. KEY `version_software_id_d30b116d` (`software_id`),
  838. CONSTRAINT `version_software_id_d30b116d_fk` FOREIGN KEY (`software_id`) REFERENCES `software` (`id`)
  839. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  840. -- ----------------------------
  841. -- Records of version
  842. -- ----------------------------
  843. BEGIN;
  844. COMMIT;
  845. SET FOREIGN_KEY_CHECKS = 1;