TestLaboratory.sql 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818
  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: 12/10/2022 22:29:41
  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=69 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. COMMIT;
  135. -- ----------------------------
  136. -- Table structure for auth_user
  137. -- ----------------------------
  138. DROP TABLE IF EXISTS `auth_user`;
  139. CREATE TABLE `auth_user` (
  140. `id` int NOT NULL AUTO_INCREMENT,
  141. `password` varchar(128) NOT NULL,
  142. `last_login` datetime(6) DEFAULT NULL,
  143. `is_superuser` tinyint(1) NOT NULL,
  144. `username` varchar(150) NOT NULL,
  145. `first_name` varchar(150) NOT NULL,
  146. `last_name` varchar(150) NOT NULL,
  147. `email` varchar(254) NOT NULL,
  148. `is_staff` tinyint(1) NOT NULL,
  149. `is_active` tinyint(1) NOT NULL,
  150. `date_joined` datetime(6) NOT NULL,
  151. PRIMARY KEY (`id`),
  152. UNIQUE KEY `username` (`username`)
  153. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  154. -- ----------------------------
  155. -- Records of auth_user
  156. -- ----------------------------
  157. BEGIN;
  158. COMMIT;
  159. -- ----------------------------
  160. -- Table structure for auth_user_groups
  161. -- ----------------------------
  162. DROP TABLE IF EXISTS `auth_user_groups`;
  163. CREATE TABLE `auth_user_groups` (
  164. `id` bigint NOT NULL AUTO_INCREMENT,
  165. `user_id` int NOT NULL,
  166. `group_id` int NOT NULL,
  167. PRIMARY KEY (`id`),
  168. UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
  169. KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
  170. CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
  171. CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
  172. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  173. -- ----------------------------
  174. -- Records of auth_user_groups
  175. -- ----------------------------
  176. BEGIN;
  177. COMMIT;
  178. -- ----------------------------
  179. -- Table structure for auth_user_user_permissions
  180. -- ----------------------------
  181. DROP TABLE IF EXISTS `auth_user_user_permissions`;
  182. CREATE TABLE `auth_user_user_permissions` (
  183. `id` bigint NOT NULL AUTO_INCREMENT,
  184. `user_id` int NOT NULL,
  185. `permission_id` int NOT NULL,
  186. PRIMARY KEY (`id`),
  187. UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
  188. KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
  189. CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
  190. CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
  191. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  192. -- ----------------------------
  193. -- Records of auth_user_user_permissions
  194. -- ----------------------------
  195. BEGIN;
  196. COMMIT;
  197. -- ----------------------------
  198. -- Table structure for django_admin_log
  199. -- ----------------------------
  200. DROP TABLE IF EXISTS `django_admin_log`;
  201. CREATE TABLE `django_admin_log` (
  202. `id` int NOT NULL AUTO_INCREMENT,
  203. `action_time` datetime(6) NOT NULL,
  204. `object_id` longtext,
  205. `object_repr` varchar(200) NOT NULL,
  206. `action_flag` smallint unsigned NOT NULL,
  207. `change_message` longtext NOT NULL,
  208. `content_type_id` int DEFAULT NULL,
  209. `user_id` int NOT NULL,
  210. PRIMARY KEY (`id`),
  211. KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
  212. KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
  213. CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
  214. CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
  215. CONSTRAINT `django_admin_log_chk_1` CHECK ((`action_flag` >= 0))
  216. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  217. -- ----------------------------
  218. -- Records of django_admin_log
  219. -- ----------------------------
  220. BEGIN;
  221. COMMIT;
  222. -- ----------------------------
  223. -- Table structure for django_content_type
  224. -- ----------------------------
  225. DROP TABLE IF EXISTS `django_content_type`;
  226. CREATE TABLE `django_content_type` (
  227. `id` int NOT NULL AUTO_INCREMENT,
  228. `app_label` varchar(100) NOT NULL,
  229. `model` varchar(100) NOT NULL,
  230. PRIMARY KEY (`id`),
  231. UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
  232. ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  233. -- ----------------------------
  234. -- Records of django_content_type
  235. -- ----------------------------
  236. BEGIN;
  237. INSERT INTO `django_content_type` VALUES (1, 'admin', 'logentry');
  238. INSERT INTO `django_content_type` VALUES (3, 'auth', 'group');
  239. INSERT INTO `django_content_type` VALUES (2, 'auth', 'permission');
  240. INSERT INTO `django_content_type` VALUES (4, 'auth', 'user');
  241. INSERT INTO `django_content_type` VALUES (5, 'contenttypes', 'contenttype');
  242. INSERT INTO `django_content_type` VALUES (15, 'file', 'filemanager');
  243. INSERT INTO `django_content_type` VALUES (17, 'group', 'group');
  244. INSERT INTO `django_content_type` VALUES (16, 'log', 'log');
  245. INSERT INTO `django_content_type` VALUES (12, 'plan', 'testplan');
  246. INSERT INTO `django_content_type` VALUES (6, 'sessions', 'session');
  247. INSERT INTO `django_content_type` VALUES (10, 'software', 'software');
  248. INSERT INTO `django_content_type` VALUES (11, 'software', 'version');
  249. INSERT INTO `django_content_type` VALUES (14, 'task', 'testcase');
  250. INSERT INTO `django_content_type` VALUES (13, 'task', 'testtask');
  251. INSERT INTO `django_content_type` VALUES (7, 'user', 'permission');
  252. INSERT INTO `django_content_type` VALUES (8, 'user', 'role');
  253. INSERT INTO `django_content_type` VALUES (9, 'user', 'user');
  254. COMMIT;
  255. -- ----------------------------
  256. -- Table structure for django_migrations
  257. -- ----------------------------
  258. DROP TABLE IF EXISTS `django_migrations`;
  259. CREATE TABLE `django_migrations` (
  260. `id` bigint NOT NULL AUTO_INCREMENT,
  261. `app` varchar(255) NOT NULL,
  262. `name` varchar(255) NOT NULL,
  263. `applied` datetime(6) NOT NULL,
  264. PRIMARY KEY (`id`)
  265. ) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  266. -- ----------------------------
  267. -- Records of django_migrations
  268. -- ----------------------------
  269. BEGIN;
  270. INSERT INTO `django_migrations` VALUES (1, 'contenttypes', '0001_initial', '2022-06-19 10:44:32.394371');
  271. INSERT INTO `django_migrations` VALUES (2, 'auth', '0001_initial', '2022-06-19 10:44:32.487851');
  272. INSERT INTO `django_migrations` VALUES (3, 'admin', '0001_initial', '2022-06-19 10:44:32.512785');
  273. INSERT INTO `django_migrations` VALUES (4, 'admin', '0002_logentry_remove_auto_add', '2022-06-19 10:44:32.517001');
  274. INSERT INTO `django_migrations` VALUES (5, 'admin', '0003_logentry_add_action_flag_choices', '2022-06-19 10:44:32.521252');
  275. INSERT INTO `django_migrations` VALUES (6, 'contenttypes', '0002_remove_content_type_name', '2022-06-19 10:44:32.537446');
  276. INSERT INTO `django_migrations` VALUES (7, 'auth', '0002_alter_permission_name_max_length', '2022-06-19 10:44:32.549952');
  277. INSERT INTO `django_migrations` VALUES (8, 'auth', '0003_alter_user_email_max_length', '2022-06-19 10:44:32.559319');
  278. INSERT INTO `django_migrations` VALUES (9, 'auth', '0004_alter_user_username_opts', '2022-06-19 10:44:32.564573');
  279. INSERT INTO `django_migrations` VALUES (10, 'auth', '0005_alter_user_last_login_null', '2022-06-19 10:44:32.575576');
  280. INSERT INTO `django_migrations` VALUES (11, 'auth', '0006_require_contenttypes_0002', '2022-06-19 10:44:32.576488');
  281. INSERT INTO `django_migrations` VALUES (12, 'auth', '0007_alter_validators_add_error_messages', '2022-06-19 10:44:32.581006');
  282. INSERT INTO `django_migrations` VALUES (13, 'auth', '0008_alter_user_username_max_length', '2022-06-19 10:44:32.596255');
  283. INSERT INTO `django_migrations` VALUES (14, 'auth', '0009_alter_user_last_name_max_length', '2022-06-19 10:44:32.609861');
  284. INSERT INTO `django_migrations` VALUES (15, 'auth', '0010_alter_group_name_max_length', '2022-06-19 10:44:32.617614');
  285. INSERT INTO `django_migrations` VALUES (16, 'auth', '0011_update_proxy_permissions', '2022-06-19 10:44:32.621214');
  286. INSERT INTO `django_migrations` VALUES (17, 'auth', '0012_alter_user_first_name_max_length', '2022-06-19 10:44:32.633468');
  287. INSERT INTO `django_migrations` VALUES (18, 'file', '0001_initial', '2022-06-19 10:44:32.640435');
  288. INSERT INTO `django_migrations` VALUES (19, 'file', '0002_alter_filemanager_id', '2022-06-19 10:44:32.647955');
  289. INSERT INTO `django_migrations` VALUES (20, 'log', '0001_initial', '2022-06-19 10:44:32.657577');
  290. INSERT INTO `django_migrations` VALUES (21, 'log', '0002_alter_log_id', '2022-06-19 10:44:32.665621');
  291. INSERT INTO `django_migrations` VALUES (22, 'user', '0001_initial', '2022-06-19 10:44:32.726788');
  292. INSERT INTO `django_migrations` VALUES (23, 'software', '0001_initial', '2022-06-19 10:44:32.751318');
  293. INSERT INTO `django_migrations` VALUES (24, 'plan', '0001_initial', '2022-06-19 10:44:32.795555');
  294. INSERT INTO `django_migrations` VALUES (25, 'plan', '0002_alter_testplan_id', '2022-06-19 10:44:32.806378');
  295. INSERT INTO `django_migrations` VALUES (26, 'sessions', '0001_initial', '2022-06-19 10:44:32.814163');
  296. INSERT INTO `django_migrations` VALUES (27, 'software', '0002_alter_software_name', '2022-06-19 10:44:32.825552');
  297. INSERT INTO `django_migrations` VALUES (28, 'task', '0001_initial', '2022-06-19 10:44:32.893446');
  298. INSERT INTO `django_migrations` VALUES (29, 'task', '0002_alter_testtask_id', '2022-06-19 10:44:32.938279');
  299. INSERT INTO `django_migrations` VALUES (30, 'user', '0002_auto_20220619_1043', '2022-06-19 10:44:33.059425');
  300. INSERT INTO `django_migrations` VALUES (31, 'task', '0003_auto_20220626_1630', '2022-06-26 16:31:02.458212');
  301. INSERT INTO `django_migrations` VALUES (32, 'group', '0001_initial', '2022-10-04 20:49:38.358109');
  302. INSERT INTO `django_migrations` VALUES (33, 'software', '0003_auto_20221004_2044', '2022-10-04 20:49:38.476140');
  303. INSERT INTO `django_migrations` VALUES (34, 'task', '0004_alter_testcase_id', '2022-10-04 20:49:38.493060');
  304. INSERT INTO `django_migrations` VALUES (35, 'user', '0003_remove_user_group', '2022-10-05 17:30:42.091655');
  305. INSERT INTO `django_migrations` VALUES (36, 'group', '0002_group_users', '2022-10-05 17:30:42.127830');
  306. INSERT INTO `django_migrations` VALUES (37, 'group', '0003_alter_group_code', '2022-10-05 19:27:19.485913');
  307. COMMIT;
  308. -- ----------------------------
  309. -- Table structure for django_session
  310. -- ----------------------------
  311. DROP TABLE IF EXISTS `django_session`;
  312. CREATE TABLE `django_session` (
  313. `session_key` varchar(40) NOT NULL,
  314. `session_data` longtext NOT NULL,
  315. `expire_date` datetime(6) NOT NULL,
  316. PRIMARY KEY (`session_key`),
  317. KEY `django_session_expire_date_a5c62663` (`expire_date`)
  318. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  319. -- ----------------------------
  320. -- Records of django_session
  321. -- ----------------------------
  322. BEGIN;
  323. COMMIT;
  324. -- ----------------------------
  325. -- Table structure for file_manager
  326. -- ----------------------------
  327. DROP TABLE IF EXISTS `file_manager`;
  328. CREATE TABLE `file_manager` (
  329. `id` varchar(128) NOT NULL,
  330. `path` varchar(200) NOT NULL,
  331. `create_time` datetime(6) NOT NULL,
  332. `update_time` datetime(6) NOT NULL,
  333. `delete` tinyint(1) NOT NULL,
  334. `category` varchar(20) NOT NULL,
  335. PRIMARY KEY (`id`)
  336. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  337. -- ----------------------------
  338. -- Records of file_manager
  339. -- ----------------------------
  340. BEGIN;
  341. COMMIT;
  342. -- ----------------------------
  343. -- Table structure for group
  344. -- ----------------------------
  345. DROP TABLE IF EXISTS `group`;
  346. CREATE TABLE `group` (
  347. `name` varchar(128) NOT NULL,
  348. `id` varchar(128) NOT NULL,
  349. `code` varchar(12) NOT NULL,
  350. `manager` varchar(60) NOT NULL,
  351. `create_time` datetime(6) NOT NULL,
  352. `update_time` datetime(6) NOT NULL,
  353. `delete` tinyint(1) NOT NULL,
  354. PRIMARY KEY (`id`)
  355. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  356. -- ----------------------------
  357. -- Records of group
  358. -- ----------------------------
  359. BEGIN;
  360. COMMIT;
  361. -- ----------------------------
  362. -- Table structure for group_users
  363. -- ----------------------------
  364. DROP TABLE IF EXISTS `group_users`;
  365. CREATE TABLE `group_users` (
  366. `id` bigint NOT NULL AUTO_INCREMENT,
  367. `group_id` varchar(128) NOT NULL,
  368. `user_id` varchar(128) NOT NULL,
  369. PRIMARY KEY (`id`),
  370. UNIQUE KEY `group_users_group_id_user_id_c7ab77af_uniq` (`group_id`,`user_id`),
  371. KEY `group_users_user_id_3c44daf2_fk_user_id` (`user_id`),
  372. CONSTRAINT `group_users_group_id_3ffe8048_fk_group_id` FOREIGN KEY (`group_id`) REFERENCES `group` (`id`),
  373. CONSTRAINT `group_users_user_id_3c44daf2_fk_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
  374. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  375. -- ----------------------------
  376. -- Records of group_users
  377. -- ----------------------------
  378. BEGIN;
  379. COMMIT;
  380. -- ----------------------------
  381. -- Table structure for log
  382. -- ----------------------------
  383. DROP TABLE IF EXISTS `log`;
  384. CREATE TABLE `log` (
  385. `id` varchar(128) NOT NULL,
  386. `action` varchar(100) NOT NULL,
  387. `entity_class` varchar(50) NOT NULL,
  388. `entity_name` varchar(50) DEFAULT NULL,
  389. `method` varchar(30) NOT NULL,
  390. `executor_id` varchar(50) NOT NULL,
  391. `executor_username` varchar(50) NOT NULL,
  392. `executor_identify` int NOT NULL,
  393. `create_time` datetime(6) NOT NULL,
  394. `update_time` datetime(6) NOT NULL,
  395. `delete` tinyint(1) NOT NULL,
  396. PRIMARY KEY (`id`)
  397. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  398. -- ----------------------------
  399. -- Records of log
  400. -- ----------------------------
  401. BEGIN;
  402. COMMIT;
  403. -- ----------------------------
  404. -- Table structure for permission
  405. -- ----------------------------
  406. DROP TABLE IF EXISTS `permission`;
  407. CREATE TABLE `permission` (
  408. `id` varchar(128) NOT NULL,
  409. `name` varchar(25) NOT NULL,
  410. `url` varchar(125) DEFAULT NULL,
  411. `method` varchar(20) DEFAULT NULL,
  412. `create_time` datetime(6) NOT NULL,
  413. `update_time` datetime(6) NOT NULL,
  414. `delete` tinyint(1) NOT NULL,
  415. PRIMARY KEY (`id`)
  416. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  417. -- ----------------------------
  418. -- Records of permission
  419. -- ----------------------------
  420. BEGIN;
  421. 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);
  422. 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);
  423. 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);
  424. 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);
  425. 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);
  426. 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);
  427. 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);
  428. 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);
  429. 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);
  430. 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);
  431. 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);
  432. 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);
  433. 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);
  434. 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);
  435. 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);
  436. 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);
  437. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_24', '上传文件', '/api/v1/file', 'POST', '2021-07-17 11:08:14.000000', '2021-07-17 11:08:18.000000', 0);
  438. INSERT INTO `permission` VALUES ('TestLaboratory_V1_Permission_25', '删除文件', '/api/v1/file', 'DELETE', '2021-07-17 11:08:14.000000', '2021-07-17 11:08:18.000000', 0);
  439. 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);
  440. 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);
  441. 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);
  442. 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);
  443. 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);
  444. 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);
  445. 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);
  446. 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);
  447. 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);
  448. 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);
  449. 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);
  450. 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);
  451. 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);
  452. 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);
  453. 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);
  454. 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);
  455. 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);
  456. 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);
  457. 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);
  458. COMMIT;
  459. -- ----------------------------
  460. -- Table structure for plan
  461. -- ----------------------------
  462. DROP TABLE IF EXISTS `plan`;
  463. CREATE TABLE `plan` (
  464. `id` varchar(128) NOT NULL,
  465. `title` varchar(30) NOT NULL,
  466. `version` varchar(20) NOT NULL,
  467. `state` int NOT NULL,
  468. `description` longtext NOT NULL,
  469. `statement_file` longtext NOT NULL,
  470. `create_time` datetime(6) NOT NULL,
  471. `update_time` datetime(6) NOT NULL,
  472. `delete` tinyint(1) NOT NULL,
  473. `creator_id` varchar(128) DEFAULT NULL,
  474. `software_id` varchar(128) NOT NULL,
  475. PRIMARY KEY (`id`),
  476. KEY `plan_creator_id_c94ecd21_fk` (`creator_id`),
  477. KEY `plan_software_id_4b28cc2e_fk` (`software_id`),
  478. CONSTRAINT `plan_creator_id_c94ecd21_fk` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`),
  479. CONSTRAINT `plan_software_id_4b28cc2e_fk` FOREIGN KEY (`software_id`) REFERENCES `software` (`id`)
  480. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  481. -- ----------------------------
  482. -- Records of plan
  483. -- ----------------------------
  484. BEGIN;
  485. COMMIT;
  486. -- ----------------------------
  487. -- Table structure for role
  488. -- ----------------------------
  489. DROP TABLE IF EXISTS `role`;
  490. CREATE TABLE `role` (
  491. `id` varchar(128) NOT NULL,
  492. `name` varchar(25) NOT NULL,
  493. `create_time` datetime(6) NOT NULL,
  494. `update_time` datetime(6) NOT NULL,
  495. `delete` tinyint(1) NOT NULL,
  496. PRIMARY KEY (`id`),
  497. UNIQUE KEY `name` (`name`)
  498. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  499. -- ----------------------------
  500. -- Records of role
  501. -- ----------------------------
  502. BEGIN;
  503. INSERT INTO `role` VALUES ('TestLaboratory_V1_Role_1', '系统管理员', '2021-07-14 10:44:26.000000', '2021-07-14 10:44:34.000000', 0);
  504. INSERT INTO `role` VALUES ('TestLaboratory_V1_Role_2', '测试管理员', '2021-07-14 10:44:53.000000', '2021-07-14 10:44:56.000000', 0);
  505. INSERT INTO `role` VALUES ('TestLaboratory_V1_Role_3', '测试工程师', '2021-07-14 10:45:12.000000', '2021-07-14 10:45:15.000000', 0);
  506. COMMIT;
  507. -- ----------------------------
  508. -- Table structure for role_permissions
  509. -- ----------------------------
  510. DROP TABLE IF EXISTS `role_permissions`;
  511. CREATE TABLE `role_permissions` (
  512. `id` bigint NOT NULL AUTO_INCREMENT,
  513. `role_id` varchar(128) NOT NULL,
  514. `permission_id` varchar(128) NOT NULL,
  515. PRIMARY KEY (`id`),
  516. UNIQUE KEY `role_permissions_role_id_permission_id_04f77df0_uniq` (`role_id`,`permission_id`),
  517. KEY `role_permissions_permission_id_ad343843_fk_permission_id` (`permission_id`)
  518. ) ENGINE=InnoDB AUTO_INCREMENT=88 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  519. -- ----------------------------
  520. -- Records of role_permissions
  521. -- ----------------------------
  522. BEGIN;
  523. INSERT INTO `role_permissions` VALUES (1, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_1');
  524. INSERT INTO `role_permissions` VALUES (10, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_10');
  525. INSERT INTO `role_permissions` VALUES (11, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_11');
  526. INSERT INTO `role_permissions` VALUES (12, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_12');
  527. INSERT INTO `role_permissions` VALUES (13, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_13');
  528. INSERT INTO `role_permissions` VALUES (14, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_14');
  529. INSERT INTO `role_permissions` VALUES (15, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_15');
  530. INSERT INTO `role_permissions` VALUES (16, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_16');
  531. INSERT INTO `role_permissions` VALUES (17, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_17');
  532. INSERT INTO `role_permissions` VALUES (18, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_18');
  533. INSERT INTO `role_permissions` VALUES (19, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_19');
  534. INSERT INTO `role_permissions` VALUES (2, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_2');
  535. INSERT INTO `role_permissions` VALUES (20, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_20');
  536. INSERT INTO `role_permissions` VALUES (21, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_21');
  537. INSERT INTO `role_permissions` VALUES (51, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_23');
  538. INSERT INTO `role_permissions` VALUES (54, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_24');
  539. INSERT INTO `role_permissions` VALUES (56, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_25');
  540. INSERT INTO `role_permissions` VALUES (58, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_26');
  541. INSERT INTO `role_permissions` VALUES (61, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_27');
  542. INSERT INTO `role_permissions` VALUES (65, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_28');
  543. INSERT INTO `role_permissions` VALUES (67, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_29');
  544. INSERT INTO `role_permissions` VALUES (3, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_3');
  545. INSERT INTO `role_permissions` VALUES (69, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_30');
  546. INSERT INTO `role_permissions` VALUES (71, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_31');
  547. INSERT INTO `role_permissions` VALUES (73, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_32');
  548. INSERT INTO `role_permissions` VALUES (75, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_33');
  549. INSERT INTO `role_permissions` VALUES (77, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_34');
  550. INSERT INTO `role_permissions` VALUES (80, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_35');
  551. INSERT INTO `role_permissions` VALUES (84, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_36');
  552. INSERT INTO `role_permissions` VALUES (86, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_37');
  553. INSERT INTO `role_permissions` VALUES (4, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_4');
  554. INSERT INTO `role_permissions` VALUES (5, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_5');
  555. INSERT INTO `role_permissions` VALUES (6, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_6');
  556. INSERT INTO `role_permissions` VALUES (7, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_7');
  557. INSERT INTO `role_permissions` VALUES (8, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_8');
  558. INSERT INTO `role_permissions` VALUES (9, 'TestLaboratory_V1_Role_1', 'TestLaboratory_V1_Permission_9');
  559. INSERT INTO `role_permissions` VALUES (22, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_1');
  560. INSERT INTO `role_permissions` VALUES (31, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_10');
  561. INSERT INTO `role_permissions` VALUES (32, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_11');
  562. INSERT INTO `role_permissions` VALUES (33, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_12');
  563. INSERT INTO `role_permissions` VALUES (34, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_13');
  564. INSERT INTO `role_permissions` VALUES (35, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_14');
  565. INSERT INTO `role_permissions` VALUES (36, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_15');
  566. INSERT INTO `role_permissions` VALUES (37, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_16');
  567. INSERT INTO `role_permissions` VALUES (38, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_17');
  568. INSERT INTO `role_permissions` VALUES (39, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_18');
  569. INSERT INTO `role_permissions` VALUES (40, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_19');
  570. INSERT INTO `role_permissions` VALUES (23, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_2');
  571. INSERT INTO `role_permissions` VALUES (41, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_20');
  572. INSERT INTO `role_permissions` VALUES (42, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_21');
  573. INSERT INTO `role_permissions` VALUES (52, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_23');
  574. INSERT INTO `role_permissions` VALUES (55, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_24');
  575. INSERT INTO `role_permissions` VALUES (57, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_25');
  576. INSERT INTO `role_permissions` VALUES (59, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_26');
  577. INSERT INTO `role_permissions` VALUES (62, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_27');
  578. INSERT INTO `role_permissions` VALUES (66, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_28');
  579. INSERT INTO `role_permissions` VALUES (68, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_29');
  580. INSERT INTO `role_permissions` VALUES (24, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_3');
  581. INSERT INTO `role_permissions` VALUES (70, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_30');
  582. INSERT INTO `role_permissions` VALUES (72, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_31');
  583. INSERT INTO `role_permissions` VALUES (74, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_32');
  584. INSERT INTO `role_permissions` VALUES (76, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_33');
  585. INSERT INTO `role_permissions` VALUES (78, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_34');
  586. INSERT INTO `role_permissions` VALUES (81, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_35');
  587. INSERT INTO `role_permissions` VALUES (85, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_36');
  588. INSERT INTO `role_permissions` VALUES (87, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_37');
  589. INSERT INTO `role_permissions` VALUES (25, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_4');
  590. INSERT INTO `role_permissions` VALUES (26, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_5');
  591. INSERT INTO `role_permissions` VALUES (27, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_6');
  592. INSERT INTO `role_permissions` VALUES (28, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_7');
  593. INSERT INTO `role_permissions` VALUES (29, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_8');
  594. INSERT INTO `role_permissions` VALUES (30, 'TestLaboratory_V1_Role_2', 'TestLaboratory_V1_Permission_9');
  595. INSERT INTO `role_permissions` VALUES (45, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_12');
  596. INSERT INTO `role_permissions` VALUES (46, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_14');
  597. INSERT INTO `role_permissions` VALUES (47, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_17');
  598. INSERT INTO `role_permissions` VALUES (48, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_18');
  599. INSERT INTO `role_permissions` VALUES (64, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_19');
  600. INSERT INTO `role_permissions` VALUES (43, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_2');
  601. INSERT INTO `role_permissions` VALUES (49, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_21');
  602. INSERT INTO `role_permissions` VALUES (50, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_22');
  603. INSERT INTO `role_permissions` VALUES (53, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_23');
  604. INSERT INTO `role_permissions` VALUES (60, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_26');
  605. INSERT INTO `role_permissions` VALUES (63, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_27');
  606. INSERT INTO `role_permissions` VALUES (44, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_3');
  607. INSERT INTO `role_permissions` VALUES (83, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_31');
  608. INSERT INTO `role_permissions` VALUES (79, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_34');
  609. INSERT INTO `role_permissions` VALUES (82, 'TestLaboratory_V1_Role_3', 'TestLaboratory_V1_Permission_35');
  610. COMMIT;
  611. -- ----------------------------
  612. -- Table structure for software
  613. -- ----------------------------
  614. DROP TABLE IF EXISTS `software`;
  615. CREATE TABLE `software` (
  616. `name` varchar(128) NOT NULL,
  617. `id` varchar(128) NOT NULL,
  618. `type` varchar(20) NOT NULL,
  619. `report_file` longtext,
  620. `create_time` datetime(6) NOT NULL,
  621. `update_time` datetime(6) NOT NULL,
  622. `delete` tinyint(1) NOT NULL,
  623. PRIMARY KEY (`id`)
  624. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  625. -- ----------------------------
  626. -- Records of software
  627. -- ----------------------------
  628. BEGIN;
  629. COMMIT;
  630. -- ----------------------------
  631. -- Table structure for task
  632. -- ----------------------------
  633. DROP TABLE IF EXISTS `task`;
  634. CREATE TABLE `task` (
  635. `id` varchar(128) NOT NULL,
  636. `title` varchar(50) NOT NULL,
  637. `state` int NOT NULL,
  638. `description` longtext NOT NULL,
  639. `statement_file` longtext NOT NULL,
  640. `case_file` longtext,
  641. `case_all` int DEFAULT NULL,
  642. `case_not_execute` int DEFAULT NULL,
  643. `case_success` int DEFAULT NULL,
  644. `case_fail` int DEFAULT NULL,
  645. `create_time` datetime(6) NOT NULL,
  646. `update_time` datetime(6) NOT NULL,
  647. `delete` tinyint(1) NOT NULL,
  648. `plan_id` varchar(128) NOT NULL,
  649. `executor_id` varchar(128) DEFAULT NULL,
  650. PRIMARY KEY (`id`),
  651. KEY `task_plan_id_77395325_fk_plan_id` (`plan_id`),
  652. KEY `task_executor_id_24a67329_fk_user_id` (`executor_id`),
  653. CONSTRAINT `task_executor_id_24a67329_fk_user_id` FOREIGN KEY (`executor_id`) REFERENCES `user` (`id`),
  654. CONSTRAINT `task_plan_id_77395325_fk_plan_id` FOREIGN KEY (`plan_id`) REFERENCES `plan` (`id`)
  655. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  656. -- ----------------------------
  657. -- Records of task
  658. -- ----------------------------
  659. BEGIN;
  660. COMMIT;
  661. -- ----------------------------
  662. -- Table structure for test_case
  663. -- ----------------------------
  664. DROP TABLE IF EXISTS `test_case`;
  665. CREATE TABLE `test_case` (
  666. `id` varchar(128) NOT NULL,
  667. `id_in_task` varchar(30) NOT NULL,
  668. `version` varchar(30) DEFAULT NULL,
  669. `name` varchar(50) NOT NULL,
  670. `state` int NOT NULL,
  671. `writer` varchar(30) DEFAULT NULL,
  672. `executor` varchar(30) DEFAULT NULL,
  673. `assessor` varchar(30) DEFAULT NULL,
  674. `requisite` longtext,
  675. `priority` varchar(10) DEFAULT NULL,
  676. `environment` longtext,
  677. `type` varchar(30) DEFAULT NULL,
  678. `process` longtext NOT NULL,
  679. `expected_result` longtext NOT NULL,
  680. `actual_result` longtext,
  681. `create_time` datetime(6) NOT NULL,
  682. `update_time` datetime(6) NOT NULL,
  683. `delete` tinyint(1) NOT NULL,
  684. `remark` longtext,
  685. `software_id` varchar(128) DEFAULT NULL,
  686. `task_id` varchar(128) NOT NULL,
  687. `executor_id_id` varchar(128) DEFAULT NULL,
  688. PRIMARY KEY (`id`),
  689. KEY `test_case_task_id_6c501356_fk` (`task_id`),
  690. KEY `test_case_executor_id_id_4afa1b6e_fk_user_id` (`executor_id_id`),
  691. KEY `test_case_software_id_b7e9af75_fk` (`software_id`),
  692. CONSTRAINT `test_case_executor_id_id_4afa1b6e_fk_user_id` FOREIGN KEY (`executor_id_id`) REFERENCES `user` (`id`),
  693. CONSTRAINT `test_case_software_id_b7e9af75_fk` FOREIGN KEY (`software_id`) REFERENCES `software` (`id`),
  694. CONSTRAINT `test_case_task_id_6c501356_fk` FOREIGN KEY (`task_id`) REFERENCES `task` (`id`)
  695. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  696. -- ----------------------------
  697. -- Records of test_case
  698. -- ----------------------------
  699. BEGIN;
  700. COMMIT;
  701. -- ----------------------------
  702. -- Table structure for user
  703. -- ----------------------------
  704. DROP TABLE IF EXISTS `user`;
  705. CREATE TABLE `user` (
  706. `id` varchar(128) NOT NULL,
  707. `username` varchar(30) NOT NULL,
  708. `name` varchar(20) NOT NULL,
  709. `password` varchar(60) NOT NULL,
  710. `tel` varchar(20) NOT NULL,
  711. `identify` int NOT NULL,
  712. `create_time` datetime(6) NOT NULL,
  713. `update_time` datetime(6) NOT NULL,
  714. `is_login` tinyint(1) NOT NULL,
  715. `delete` tinyint(1) NOT NULL,
  716. PRIMARY KEY (`id`),
  717. UNIQUE KEY `username` (`username`)
  718. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  719. -- ----------------------------
  720. -- Records of user
  721. -- ----------------------------
  722. BEGIN;
  723. INSERT INTO `user` VALUES ('TestLaboratory_V1_User_1', 'honghong', '小红', '123456', '18851111391', 1, '2021-07-13 14:23:25.000000', '2022-10-10 22:09:59.520843', 1, 0);
  724. INSERT INTO `user` VALUES ('TestLaboratory_V1_User_2', 'zxc', '小蓝', '123456', '11223344556', 2, '2021-09-26 15:41:37.000000', '1900-01-20 17:33:18.000000', 0, 0);
  725. 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);
  726. COMMIT;
  727. -- ----------------------------
  728. -- Table structure for user_roles
  729. -- ----------------------------
  730. DROP TABLE IF EXISTS `user_roles`;
  731. CREATE TABLE `user_roles` (
  732. `id` bigint NOT NULL AUTO_INCREMENT,
  733. `user_id` varchar(128) NOT NULL,
  734. `role_id` varchar(128) NOT NULL,
  735. PRIMARY KEY (`id`),
  736. UNIQUE KEY `user_roles_user_id_role_id_69bfd9a0_uniq` (`user_id`,`role_id`),
  737. KEY `user_roles_role_id_816a4486_fk_role_id` (`role_id`)
  738. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  739. -- ----------------------------
  740. -- Records of user_roles
  741. -- ----------------------------
  742. BEGIN;
  743. COMMIT;
  744. -- ----------------------------
  745. -- Table structure for version
  746. -- ----------------------------
  747. DROP TABLE IF EXISTS `version`;
  748. CREATE TABLE `version` (
  749. `id` varchar(128) NOT NULL,
  750. `number` varchar(20) NOT NULL,
  751. `version_file` longtext NOT NULL,
  752. `create_time` datetime(6) NOT NULL,
  753. `update_time` datetime(6) NOT NULL,
  754. `delete` tinyint(1) NOT NULL,
  755. `software_id` varchar(128) NOT NULL,
  756. PRIMARY KEY (`id`),
  757. KEY `version_software_id_d30b116d` (`software_id`),
  758. CONSTRAINT `version_software_id_d30b116d_fk` FOREIGN KEY (`software_id`) REFERENCES `software` (`id`)
  759. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  760. -- ----------------------------
  761. -- Records of version
  762. -- ----------------------------
  763. BEGIN;
  764. COMMIT;
  765. SET FOREIGN_KEY_CHECKS = 1;