data(postgresql).sql 79 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286
  1. -- Table: public.data
  2. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  3. values(5, '目标精确捕获技术设计支撑工具', 0, '1', 'demo', 'demo', 1, 0, 'M', '0', '0', 'demo', '', 1, now(), 1, null, '目标精确捕获技术设计支撑工具');
  4. DROP TABLE IF EXISTS public.data;
  5. CREATE TABLE IF NOT EXISTS public.data
  6. (
  7. id bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 9223372036854775807 CACHE 1 ),
  8. name character varying(225) COLLATE pg_catalog."default" DEFAULT ''::character varying,
  9. data_type character varying(225) COLLATE pg_catalog."default" DEFAULT ''::character varying,
  10. file_type character varying(225) COLLATE pg_catalog."default" DEFAULT ''::character varying,
  11. object_type character varying(225) COLLATE pg_catalog."default" DEFAULT ''::character varying,
  12. object_subtype character varying(225) COLLATE pg_catalog."default" DEFAULT ''::character varying,
  13. batch_num character varying(225) COLLATE pg_catalog."default" DEFAULT ''::character varying,
  14. scene character varying(225) COLLATE pg_catalog."default" DEFAULT ''::character varying,
  15. data_source character varying(225) COLLATE pg_catalog."default" DEFAULT ''::character varying,
  16. gather_time timestamp without time zone,
  17. gather_spot character varying(225) COLLATE pg_catalog."default" DEFAULT ''::character varying,
  18. url character varying(225) COLLATE pg_catalog."default",
  19. labelUrl character varying(225) COLLATE pg_catalog."default",
  20. increment character varying(225) COLLATE pg_catalog."default" DEFAULT ''::character varying,
  21. labeled boolean DEFAULT false,
  22. CONSTRAINT data_pkey PRIMARY KEY (id)
  23. )
  24. TABLESPACE pg_default;
  25. COMMENT ON TABLE public.data
  26. IS '数据管理表';
  27. COMMENT ON COLUMN public.data.id
  28. IS 'id';
  29. COMMENT ON COLUMN public.data.name
  30. IS '名称';
  31. COMMENT ON COLUMN public.data.data_type
  32. IS '数据类型';
  33. COMMENT ON COLUMN public.data.file_type
  34. IS '文件类型';
  35. COMMENT ON COLUMN public.data.object_type
  36. IS '目标类型';
  37. COMMENT ON COLUMN public.data.object_subtype
  38. IS '目标子类型';
  39. COMMENT ON COLUMN public.data.batch_num
  40. IS '批次号';
  41. COMMENT ON COLUMN public.data.scene
  42. IS '场景';
  43. COMMENT ON COLUMN public.data.data_source
  44. IS '数据源';
  45. COMMENT ON COLUMN public.data.gather_time
  46. IS '采集时间';
  47. COMMENT ON COLUMN public.data.gather_spot
  48. IS '采集地点';
  49. COMMENT ON COLUMN public.data.url
  50. IS '图片url';
  51. COMMENT ON COLUMN public.data.labelUrl
  52. IS '标注url';
  53. COMMENT ON COLUMN public.data.increment
  54. IS '扩增方式';
  55. COMMENT ON COLUMN public.data.labeled
  56. IS '是否标注';
  57. -- 菜单 SQL
  58. INSERT INTO public.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param, is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time, remark) VALUES (2002, '数据管理查询', 2001, 1, NULL, '', NULL, NULL, '1', '0', 'F', '0', '0', 'demo:data:query', NULL, 0, 1, '2024-04-22 17:21:27.187713', 1, NULL, '');
  59. INSERT INTO public.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param, is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time, remark) VALUES (2003, '数据管理新增', 2001, 2, NULL, '', NULL, NULL, '1', '0', 'F', '0', '0', 'demo:data:add', NULL, 0, 1, '2024-04-22 17:21:27.187713', 1, NULL, '');
  60. INSERT INTO public.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param, is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time, remark) VALUES (2004, '数据管理修改', 2001, 3, NULL, '', NULL, NULL, '1', '0', 'F', '0', '0', 'demo:data:edit', NULL, 0, 1, '2024-04-22 17:21:27.187713', 1, NULL, '');
  61. INSERT INTO public.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param, is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time, remark) VALUES (2005, '数据管理删除', 2001, 4, NULL, '', NULL, NULL, '1', '0', 'F', '0', '0', 'demo:data:remove', NULL, 0, 1, '2024-04-22 17:21:27.187713', 1, NULL, '');
  62. INSERT INTO public.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param, is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time, remark) VALUES (2006, '数据管理导出', 2001, 5, NULL, '', NULL, NULL, '1', '0', 'F', '0', '0', 'demo:data:export', NULL, 0, 1, '2024-04-22 17:21:27.187713', 1, NULL, '');
  63. INSERT INTO public.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param, is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time, remark) VALUES (2001, '数据管理', 2, 1, '/demo/data', 'demo/data/index', '数据管理', NULL, '1', '0', 'C', '0', '0', 'demo:data:list', NULL, 6, 1, '2024-04-22 17:21:27.187713', 1, '2024-04-23 20:38:36.673', '数据管理菜单');
  64. INSERT INTO public.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param, is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time, remark) VALUES (2, '数据管理', 0, 2, 'data', NULL, NULL, NULL, '1', '0', 'M', '0', '0', NULL, 'data', 0, 1, NULL, 1, NULL, '数据管理目录');
  65. -- 算法配置表
  66. DROP TABLE IF EXISTS public.algorithm_config;
  67. CREATE TABLE "public"."algorithm_config" (
  68. "id" "pg_catalog"."int8" NOT NULL,
  69. "type" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
  70. "parent_id" "pg_catalog"."int8",
  71. "subsystem" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  72. "algorithm_name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
  73. "algorithm_address" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
  74. "parameter_config" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  75. "create_by" "pg_catalog"."int8",
  76. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  77. "update_by" "pg_catalog"."int8",
  78. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  79. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  80. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  81. version integer DEFAULT 0,
  82. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  83. "system" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  84. CONSTRAINT "algorithm_config_pkey" PRIMARY KEY ("id")
  85. );
  86. ALTER TABLE "public"."algorithm_config"
  87. OWNER TO "postgres";
  88. COMMENT ON COLUMN "public"."algorithm_config"."id" IS '主键ID';
  89. COMMENT ON COLUMN "public"."algorithm_config"."type" IS '类型';
  90. COMMENT ON COLUMN "public"."algorithm_config"."parent_id" IS '父id';
  91. COMMENT ON COLUMN "public"."algorithm_config"."subsystem" IS '分系统';
  92. COMMENT ON COLUMN "public"."algorithm_config"."algorithm_name" IS '算法名称';
  93. COMMENT ON COLUMN "public"."algorithm_config"."algorithm_address" IS '算法地址';
  94. COMMENT ON COLUMN "public"."algorithm_config"."parameter_config" IS '参数配置';
  95. COMMENT ON COLUMN public.algorithm_config.version IS '乐观锁';
  96. COMMENT ON COLUMN public.algorithm_config.tenant_id IS '租户编码';
  97. COMMENT ON COLUMN public.algorithm_config.del_flag IS '逻辑删除标志(0代表存在 1代表删除)';
  98. COMMENT ON COLUMN "public"."algorithm_config"."create_by" IS '创建人';
  99. COMMENT ON COLUMN "public"."algorithm_config"."create_time" IS '创建时间';
  100. COMMENT ON COLUMN "public"."algorithm_config"."update_by" IS '更新人';
  101. COMMENT ON COLUMN "public"."algorithm_config"."update_time" IS '更新时间';
  102. COMMENT ON COLUMN "public"."algorithm_config"."remarks" IS '备注';
  103. COMMENT ON COLUMN "public"."algorithm_config"."system" IS '系统';
  104. COMMENT ON TABLE "public"."algorithm_config" IS '算法配置表';
  105. -- 菜单 SQL
  106. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  107. values(2024052717402600, '算法配置', 152584418900430848, '1', 'config', 'ag/config/index', 1, 0, 'C', '0', '0', 'ag:config:list', '', 1, now(), 1, null, '算法配置菜单');
  108. -- 按钮 SQL
  109. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  110. values(2024052717402601, '算法配置查询', 2024052717402600, '1', '', '', 1, 0, 'F', '0', '0', 'ag:config:query', '', 1, now(), 1, null, '');
  111. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  112. values(2024052717402602, '算法配置新增', 2024052717402600, '2', '', '', 1, 0, 'F', '0', '0', 'ag:config:add', '', 1, now(), 1, null, '');
  113. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  114. values(2024052717402603, '算法配置修改', 2024052717402600, '3', '', '', 1, 0, 'F', '0', '0', 'ag:config:edit', '', 1, now(), 1, null, '');
  115. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  116. values(2024052717402604, '算法配置删除', 2024052717402600, '4', '', '', 1, 0, 'F', '0', '0', 'ag:config:remove', '', 1, now(), 1, null, '');
  117. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  118. values(2024052717402605, '算法配置导出', 2024052717402600, '5', '', '', 1, 0, 'F', '0', '0', 'ag:config:export', '', 1, now(), 1, null, '');
  119. -- 算法模型表
  120. DROP TABLE IF EXISTS public.algorithm_model;
  121. CREATE TABLE "public"."algorithm_model" (
  122. "id" "pg_catalog"."int8" NOT NULL,
  123. "algorithm_id" "pg_catalog"."int8" NOT NULL,
  124. "model_name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
  125. "model_address" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
  126. "sample_number" "pg_catalog"."int8",
  127. "cycle_epoch" "pg_catalog"."int8",
  128. "create_by" "pg_catalog"."int8",
  129. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  130. "update_by" "pg_catalog"."int8",
  131. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  132. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  133. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  134. version integer DEFAULT 0,
  135. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  136. "system" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  137. CONSTRAINT "algorithm_model_pkey" PRIMARY KEY ("id")
  138. );
  139. ALTER TABLE "public"."algorithm_model"
  140. OWNER TO "postgres";
  141. COMMENT ON COLUMN "public"."algorithm_model"."id" IS '主键ID';
  142. COMMENT ON COLUMN "public"."algorithm_model"."algorithm_id" IS '算法';
  143. COMMENT ON COLUMN "public"."algorithm_model"."model_name" IS '模型名称';
  144. COMMENT ON COLUMN "public"."algorithm_model"."model_address" IS '模型';
  145. COMMENT ON COLUMN "public"."algorithm_model"."sample_number" IS '训练样本数';
  146. COMMENT ON COLUMN "public"."algorithm_model"."cycle_epoch" IS '训练循环次数';
  147. COMMENT ON COLUMN "public"."algorithm_model"."create_by" IS '创建人';
  148. COMMENT ON COLUMN "public"."algorithm_model"."create_time" IS '创建时间';
  149. COMMENT ON COLUMN "public"."algorithm_model"."update_by" IS '更新人';
  150. COMMENT ON COLUMN "public"."algorithm_model"."update_time" IS '更新时间';
  151. COMMENT ON COLUMN "public"."algorithm_model"."remarks" IS '备注';
  152. COMMENT ON COLUMN "public"."algorithm_model"."system" IS '系统';
  153. COMMENT ON COLUMN "public"."algorithm_model"."version" IS '乐观锁';
  154. COMMENT ON COLUMN "public"."algorithm_model"."tenant_id" IS '租户编码';
  155. COMMENT ON COLUMN "public"."algorithm_model"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  156. COMMENT ON TABLE "public"."algorithm_model" IS '算法模型配置表';
  157. -- 算法任务表
  158. DROP TABLE IF EXISTS public.algorithm_task;
  159. CREATE TABLE "public"."algorithm_task" (
  160. "id" "pg_catalog"."int8" NOT NULL,
  161. "name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
  162. "status" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT 0 NOT NULL,
  163. "start_time" "pg_catalog"."timestamp",
  164. "end_time" "pg_catalog"."timestamp",
  165. "cost_second" "pg_catalog"."int8",
  166. "log" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  167. "create_by" "pg_catalog"."int8",
  168. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  169. "update_by" "pg_catalog"."int8",
  170. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  171. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  172. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  173. version integer DEFAULT 0,
  174. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  175. "system" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  176. CONSTRAINT "algorithm_task_pkey" PRIMARY KEY ("id")
  177. );
  178. ALTER TABLE "public"."algorithm_task"
  179. OWNER TO "postgres";
  180. COMMENT ON COLUMN "public"."algorithm_task"."id" IS '主键ID';
  181. COMMENT ON COLUMN "public"."algorithm_task"."name" IS '任务名称';
  182. COMMENT ON COLUMN "public"."algorithm_task"."status" IS '任务状态';
  183. COMMENT ON COLUMN "public"."algorithm_task"."start_time" IS '开始时间';
  184. COMMENT ON COLUMN "public"."algorithm_task"."end_time" IS '结束时间';
  185. COMMENT ON COLUMN "public"."algorithm_task"."cost_second" IS '耗时';
  186. COMMENT ON COLUMN "public"."algorithm_task"."log" IS '日志';
  187. COMMENT ON COLUMN "public"."algorithm_task"."create_by" IS '创建人';
  188. COMMENT ON COLUMN "public"."algorithm_task"."create_time" IS '创建时间';
  189. COMMENT ON COLUMN "public"."algorithm_task"."update_by" IS '更新人';
  190. COMMENT ON COLUMN "public"."algorithm_task"."update_time" IS '更新时间';
  191. COMMENT ON COLUMN "public"."algorithm_task"."remarks" IS '备注';
  192. COMMENT ON COLUMN "public"."algorithm_task"."version" IS '乐观锁';
  193. COMMENT ON COLUMN "public"."algorithm_task"."tenant_id" IS '租户编码';
  194. COMMENT ON COLUMN "public"."algorithm_task"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  195. COMMENT ON COLUMN "public"."algorithm_task"."system" IS '系统';
  196. COMMENT ON TABLE "public"."algorithm_task" IS '算法任务表';
  197. -- 算法子任务表
  198. DROP TABLE IF EXISTS public.algorithm_subtask;
  199. CREATE TABLE "public"."algorithm_subtask" (
  200. "id" "pg_catalog"."int8" NOT NULL,
  201. "task_id" "pg_catalog"."int8",
  202. "name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
  203. "type" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
  204. "status" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
  205. "parameters" "pg_catalog"."text" COLLATE "pg_catalog"."default" NOT NULL,
  206. "start_time" "pg_catalog"."timestamp",
  207. "end_time" "pg_catalog"."timestamp",
  208. "cost_second" "pg_catalog"."int8",
  209. "log" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  210. "index" "pg_catalog"."int8" DEFAULT 0,
  211. "create_by" "pg_catalog"."int8",
  212. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  213. "update_by" "pg_catalog"."int8",
  214. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  215. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  216. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  217. version integer DEFAULT 0,
  218. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  219. "system" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  220. CONSTRAINT "algorithm_subtask_pkey" PRIMARY KEY ("id")
  221. );
  222. ALTER TABLE "public"."algorithm_subtask"
  223. OWNER TO "postgres";
  224. COMMENT ON COLUMN "public"."algorithm_subtask"."id" IS '主键ID';
  225. COMMENT ON COLUMN "public"."algorithm_subtask"."task_id" IS '任务ID';
  226. COMMENT ON COLUMN "public"."algorithm_subtask"."name" IS '任务名称';
  227. COMMENT ON COLUMN "public"."algorithm_subtask"."type" IS '任务类型';
  228. COMMENT ON COLUMN "public"."algorithm_subtask"."status" IS '任务状态';
  229. COMMENT ON COLUMN "public"."algorithm_subtask"."parameters" IS '调用算法时所用的参数';
  230. COMMENT ON COLUMN "public"."algorithm_subtask"."start_time" IS '开始时间';
  231. COMMENT ON COLUMN "public"."algorithm_subtask"."end_time" IS '结束时间';
  232. COMMENT ON COLUMN "public"."algorithm_subtask"."cost_second" IS '耗时';
  233. COMMENT ON COLUMN "public"."algorithm_subtask"."log" IS '日志';
  234. COMMENT ON COLUMN "public"."algorithm_subtask"."index" IS '序号';
  235. COMMENT ON COLUMN "public"."algorithm_subtask"."create_by" IS '创建人';
  236. COMMENT ON COLUMN "public"."algorithm_subtask"."create_time" IS '创建时间';
  237. COMMENT ON COLUMN "public"."algorithm_subtask"."update_by" IS '更新人';
  238. COMMENT ON COLUMN "public"."algorithm_subtask"."update_time" IS '更新时间';
  239. COMMENT ON COLUMN "public"."algorithm_subtask"."remarks" IS '备注';
  240. COMMENT ON COLUMN "public"."algorithm_subtask"."version" IS '乐观锁';
  241. COMMENT ON COLUMN "public"."algorithm_subtask"."tenant_id" IS '租户编码';
  242. COMMENT ON COLUMN "public"."algorithm_subtask"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  243. COMMENT ON COLUMN "public"."algorithm_subtask"."system" IS '系统';
  244. COMMENT ON TABLE "public"."algorithm_subtask" IS '算法子任务表';
  245. -- 算法业务处理表
  246. DROP TABLE IF EXISTS public.algorithm_biz_process;
  247. CREATE TABLE "public"."algorithm_biz_process" (
  248. "id" "pg_catalog"."int8" NOT NULL,
  249. "sub_task_id" "pg_catalog"."int8" NOT NULL,
  250. "name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  251. "type" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  252. "status" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  253. "algorithm_id" "pg_catalog"."int8",
  254. "model_id" "pg_catalog"."int8",
  255. "parameters" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  256. "preprocess_path" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  257. "result_path" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  258. "index" "pg_catalog"."int8" DEFAULT 0,
  259. "start_time" "pg_catalog"."timestamp",
  260. "end_time" "pg_catalog"."timestamp",
  261. "cost_second" "pg_catalog"."int8",
  262. "log" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  263. "create_by" "pg_catalog"."int8",
  264. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  265. "update_by" "pg_catalog"."int8",
  266. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  267. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  268. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  269. version integer DEFAULT 0,
  270. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  271. "system" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  272. CONSTRAINT "algorithm_biz_process_pkey" PRIMARY KEY ("id")
  273. );
  274. ALTER TABLE "public"."algorithm_biz_process"
  275. OWNER TO "postgres";
  276. COMMENT ON COLUMN "public"."algorithm_biz_process"."id" IS '主键ID';
  277. COMMENT ON COLUMN "public"."algorithm_biz_process"."sub_task_id" IS '子任务id';
  278. COMMENT ON COLUMN "public"."algorithm_biz_process"."name" IS '任务名称';
  279. COMMENT ON COLUMN "public"."algorithm_biz_process"."type" IS '任务类型';
  280. COMMENT ON COLUMN "public"."algorithm_biz_process"."status" IS '任务状态';
  281. COMMENT ON COLUMN "public"."algorithm_biz_process"."algorithm_id" IS '算法';
  282. COMMENT ON COLUMN "public"."algorithm_biz_process"."model_id" IS '模型';
  283. COMMENT ON COLUMN "public"."algorithm_biz_process"."parameters" IS '调用算法时所用的参数';
  284. COMMENT ON COLUMN "public"."algorithm_biz_process"."preprocess_path" IS '预处理数据路径';
  285. COMMENT ON COLUMN "public"."algorithm_biz_process"."result_path" IS '结果数据路径';
  286. COMMENT ON COLUMN "public"."algorithm_biz_process"."index" IS '序号';
  287. COMMENT ON COLUMN "public"."algorithm_biz_process"."start_time" IS '开始时间';
  288. COMMENT ON COLUMN "public"."algorithm_biz_process"."end_time" IS '结束时间';
  289. COMMENT ON COLUMN "public"."algorithm_biz_process"."cost_second" IS '耗时';
  290. COMMENT ON COLUMN "public"."algorithm_biz_process"."log" IS '日志';
  291. COMMENT ON COLUMN "public"."algorithm_biz_process"."create_by" IS '创建人';
  292. COMMENT ON COLUMN "public"."algorithm_biz_process"."create_time" IS '创建时间';
  293. COMMENT ON COLUMN "public"."algorithm_biz_process"."update_by" IS '更新人';
  294. COMMENT ON COLUMN "public"."algorithm_biz_process"."update_time" IS '更新时间';
  295. COMMENT ON COLUMN "public"."algorithm_biz_process"."remarks" IS '备注';
  296. COMMENT ON COLUMN "public"."algorithm_biz_process"."version" IS '乐观锁';
  297. COMMENT ON COLUMN "public"."algorithm_biz_process"."tenant_id" IS '租户编码';
  298. COMMENT ON COLUMN "public"."algorithm_biz_process"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  299. COMMENT ON COLUMN "public"."algorithm_biz_process"."system" IS '系统';
  300. COMMENT ON TABLE "public"."algorithm_biz_process" IS '算法业务处理表';
  301. -- 菜单 SQL
  302. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  303. values(2024052914210100, '算法模型配置', 152584418900430848, '1', 'model', 'ag/model/index', 1, 0, 'C', '0', '0', 'ag:model:list', '', 1, now(), 1, null, '算法模型配置菜单');
  304. -- 按钮 SQL
  305. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  306. values(2024052914210001, '算法模型配置查询', 2024052914210100, '1', '', '', 1, 0, 'F', '0', '0', 'ag:model:query', '', 1, now(), 1, null, '');
  307. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  308. values(2024052914210002, '算法模型配置新增', 2024052914210100, '2', '', '', 1, 0, 'F', '0', '0', 'ag:model:add', '', 1, now(), 1, null, '');
  309. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  310. values(2024052914210003, '算法模型配置修改', 2024052914210100, '3', '', '', 1, 0, 'F', '0', '0', 'ag:model:edit', '', 1, now(), 1, null, '');
  311. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  312. values(2024052914210004, '算法模型配置删除', 2024052914210100, '4', '', '', 1, 0, 'F', '0', '0', 'ag:model:remove', '', 1, now(), 1, null, '');
  313. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  314. values(2024052914210005, '算法模型配置导出', 2024052914210100, '5', '', '', 1, 0, 'F', '0', '0', 'ag:model:export', '', 1, now(), 1, null, '');
  315. -- 菜单 SQL
  316. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  317. values(2024052914210200, '算法任务', 153308760386924544, '1', 'task', 'task/task/index', 1, 0, 'C', '0', '0', 'task:task:list', '', 1, now(), 1, null, '算法任务菜单');
  318. -- 按钮 SQL
  319. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  320. values(2024052914210101, '算法任务查询', 2024052914210200, '1', '', '', 1, 0, 'F', '0', '0', 'task:task:query', '', 1, now(), 1, null, '');
  321. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  322. values(2024052914210102, '算法任务新增', 2024052914210200, '2', '', '', 1, 0, 'F', '0', '0', 'task:task:add', '', 1, now(), 1, null, '');
  323. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  324. values(2024052914210103, '算法任务修改', 2024052914210200, '3', '', '', 1, 0, 'F', '0', '0', 'task:task:edit', '', 1, now(), 1, null, '');
  325. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  326. values(2024052914210104, '算法任务删除', 2024052914210200, '4', '', '', 1, 0, 'F', '0', '0', 'task:task:remove', '', 1, now(), 1, null, '');
  327. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  328. values(2024052914210105, '算法任务导出', 2024052914210200, '5', '', '', 1, 0, 'F', '0', '0', 'task:task:export', '', 1, now(), 1, null, '');
  329. -- 菜单 SQL
  330. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  331. values(2024052914210300, '算法子任务', 153308760386924544, '1', 'subtask', 'task/subtask/index', 1, 0, 'C', '0', '0', 'task:subtask:list', '', 1, now(), 1, null, '算法子任务菜单');
  332. -- 按钮 SQL
  333. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  334. values(2024052914210201, '算法子任务查询', 2024052914210300, '1', '', '', 1, 0, 'F', '0', '0', 'task:subtask:query', '', 1, now(), 1, null, '');
  335. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  336. values(2024052914210202, '算法子任务新增', 2024052914210300, '2', '', '', 1, 0, 'F', '0', '0', 'task:subtask:add', '', 1, now(), 1, null, '');
  337. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  338. values(2024052914210203, '算法子任务修改', 2024052914210300, '3', '', '', 1, 0, 'F', '0', '0', 'task:subtask:edit', '', 1, now(), 1, null, '');
  339. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  340. values(2024052914210204, '算法子任务删除', 2024052914210300, '4', '', '', 1, 0, 'F', '0', '0', 'task:subtask:remove', '', 1, now(), 1, null, '');
  341. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  342. values(2024052914210205, '算法子任务导出', 2024052914210300, '5', '', '', 1, 0, 'F', '0', '0', 'task:subtask:export', '', 1, now(), 1, null, '');
  343. -- 菜单 SQL
  344. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  345. values(2024052914210400, '算法子任务详情', 153308760386924544, '1', 'subtaskDetail', 'task/subtaskDetail/index', 1, 0, 'C', '0', '0', 'task:subtaskDetail:list', '', 1, now(), 1, null, '算法子任务详情菜单');
  346. -- 按钮 SQL
  347. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  348. values(2024052914210301, '算法子任务详情查询', 2024052914210400, '1', '', '', 1, 0, 'F', '0', '0', 'task:subtaskDetail:query', '', 1, now(), 1, null, '');
  349. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  350. values(2024052914210302, '算法子任务详情新增', 2024052914210400, '2', '', '', 1, 0, 'F', '0', '0', 'task:subtaskDetail:add', '', 1, now(), 1, null, '');
  351. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  352. values(2024052914210303, '算法子任务详情修改', 2024052914210400, '3', '', '', 1, 0, 'F', '0', '0', 'task:subtaskDetail:edit', '', 1, now(), 1, null, '');
  353. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  354. values(2024052914210304, '算法子任务详情删除', 2024052914210400, '4', '', '', 1, 0, 'F', '0', '0', 'task:subtaskDetail:remove', '', 1, now(), 1, null, '');
  355. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  356. values(2024052914210305, '算法子任务详情导出', 2024052914210400, '5', '', '', 1, 0, 'F', '0', '0', 'task:subtaskDetail:export', '', 1, now(), 1, null, '');
  357. -- 2024/6/11 添加
  358. -- 算法数据集合表
  359. DROP TABLE IF EXISTS public.algorithm_data_set;
  360. CREATE TABLE "public"."algorithm_data_set" (
  361. "id" "pg_catalog"."int8" NOT NULL,
  362. "sub_task_id" "pg_catalog"."int8" NOT NULL,
  363. "name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  364. "type" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  365. "status" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  366. "parameters" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  367. "result_path" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  368. "index" "pg_catalog"."int8" DEFAULT 0,
  369. "start_time" "pg_catalog"."timestamp",
  370. "end_time" "pg_catalog"."timestamp",
  371. "cost_second" "pg_catalog"."int8",
  372. "log" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  373. "create_by" "pg_catalog"."int8",
  374. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  375. "update_by" "pg_catalog"."int8",
  376. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  377. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  378. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  379. version integer DEFAULT 0,
  380. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  381. "system" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  382. CONSTRAINT "algorithm_data_set_pkey" PRIMARY KEY ("id")
  383. );
  384. ALTER TABLE "public"."algorithm_data_set"
  385. OWNER TO "postgres";
  386. COMMENT ON COLUMN "public"."algorithm_data_set"."id" IS '主键ID';
  387. COMMENT ON COLUMN "public"."algorithm_data_set"."sub_task_id" IS '子任务id';
  388. COMMENT ON COLUMN "public"."algorithm_data_set"."name" IS '任务名称';
  389. COMMENT ON COLUMN "public"."algorithm_data_set"."type" IS '任务类型';
  390. COMMENT ON COLUMN "public"."algorithm_data_set"."status" IS '任务状态';
  391. COMMENT ON COLUMN "public"."algorithm_data_set"."parameters" IS '调用算法时所用的参数';
  392. COMMENT ON COLUMN "public"."algorithm_data_set"."result_path" IS '结果数据路径';
  393. COMMENT ON COLUMN "public"."algorithm_data_set"."index" IS '序号';
  394. COMMENT ON COLUMN "public"."algorithm_data_set"."start_time" IS '开始时间';
  395. COMMENT ON COLUMN "public"."algorithm_data_set"."end_time" IS '结束时间';
  396. COMMENT ON COLUMN "public"."algorithm_data_set"."cost_second" IS '耗时';
  397. COMMENT ON COLUMN "public"."algorithm_data_set"."log" IS '日志';
  398. COMMENT ON COLUMN "public"."algorithm_data_set"."create_by" IS '创建人';
  399. COMMENT ON COLUMN "public"."algorithm_data_set"."create_time" IS '创建时间';
  400. COMMENT ON COLUMN "public"."algorithm_data_set"."update_by" IS '更新人';
  401. COMMENT ON COLUMN "public"."algorithm_data_set"."update_time" IS '更新时间';
  402. COMMENT ON COLUMN "public"."algorithm_data_set"."remarks" IS '备注';
  403. COMMENT ON COLUMN "public"."algorithm_data_set"."version" IS '乐观锁';
  404. COMMENT ON COLUMN "public"."algorithm_data_set"."tenant_id" IS '租户编码';
  405. COMMENT ON COLUMN "public"."algorithm_data_set"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  406. COMMENT ON COLUMN "public"."algorithm_data_set"."system" IS '系统';
  407. COMMENT ON TABLE "public"."algorithm_data_set" IS '算法数据集合表';
  408. -- 算法数据处理表
  409. DROP TABLE IF EXISTS public.algorithm_data_process;
  410. CREATE TABLE "public"."algorithm_data_process" (
  411. "id" "pg_catalog"."int8" NOT NULL,
  412. "sub_task_id" "pg_catalog"."int8" NOT NULL,
  413. "name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  414. "type" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  415. "status" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  416. "algorithm_id" "pg_catalog"."int8",
  417. "parameters" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  418. "preprocess_path" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  419. "result_path" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  420. "index" "pg_catalog"."int8" DEFAULT 0,
  421. "start_time" "pg_catalog"."timestamp",
  422. "end_time" "pg_catalog"."timestamp",
  423. "cost_second" "pg_catalog"."int8",
  424. "log" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  425. "create_by" "pg_catalog"."int8",
  426. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  427. "update_by" "pg_catalog"."int8",
  428. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  429. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  430. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  431. version integer DEFAULT 0,
  432. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  433. "system" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  434. CONSTRAINT "algorithm_data_process_pkey" PRIMARY KEY ("id")
  435. );
  436. ALTER TABLE "public"."algorithm_data_process"
  437. OWNER TO "postgres";
  438. COMMENT ON COLUMN "public"."algorithm_data_process"."id" IS '主键ID';
  439. COMMENT ON COLUMN "public"."algorithm_data_process"."sub_task_id" IS '子任务id';
  440. COMMENT ON COLUMN "public"."algorithm_data_process"."name" IS '任务名称';
  441. COMMENT ON COLUMN "public"."algorithm_data_process"."type" IS '任务类型';
  442. COMMENT ON COLUMN "public"."algorithm_data_process"."status" IS '任务状态';
  443. COMMENT ON COLUMN "public"."algorithm_data_process"."algorithm_id" IS '算法';
  444. COMMENT ON COLUMN "public"."algorithm_data_process"."parameters" IS '调用算法时所用的参数';
  445. COMMENT ON COLUMN "public"."algorithm_data_process"."preprocess_path" IS '预处理数据路径';
  446. COMMENT ON COLUMN "public"."algorithm_data_process"."result_path" IS '结果数据路径';
  447. COMMENT ON COLUMN "public"."algorithm_data_process"."index" IS '序号';
  448. COMMENT ON COLUMN "public"."algorithm_data_process"."start_time" IS '开始时间';
  449. COMMENT ON COLUMN "public"."algorithm_data_process"."end_time" IS '结束时间';
  450. COMMENT ON COLUMN "public"."algorithm_data_process"."cost_second" IS '耗时';
  451. COMMENT ON COLUMN "public"."algorithm_data_process"."log" IS '日志';
  452. COMMENT ON COLUMN "public"."algorithm_data_process"."create_by" IS '创建人';
  453. COMMENT ON COLUMN "public"."algorithm_data_process"."create_time" IS '创建时间';
  454. COMMENT ON COLUMN "public"."algorithm_data_process"."update_by" IS '更新人';
  455. COMMENT ON COLUMN "public"."algorithm_data_process"."update_time" IS '更新时间';
  456. COMMENT ON COLUMN "public"."algorithm_data_process"."remarks" IS '备注';
  457. COMMENT ON COLUMN "public"."algorithm_data_process"."version" IS '乐观锁';
  458. COMMENT ON COLUMN "public"."algorithm_data_process"."tenant_id" IS '租户编码';
  459. COMMENT ON COLUMN "public"."algorithm_data_process"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  460. COMMENT ON COLUMN "public"."algorithm_data_process"."system" IS '系统';
  461. COMMENT ON TABLE "public"."algorithm_data_process" IS '算法数据处理表';
  462. -- 菜单 SQL
  463. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  464. values(2024061115343900, '算法业务处理', 153308760386924544, '1', 'bizProcess', 'task/bizProcess/index', 1, 0, 'C', '0', '0', 'task:bizProcess:list', '', 1, now(), 1, null, '算法业务处理菜单');
  465. -- 按钮 SQL
  466. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  467. values(2024061115343901, '算法业务处理查询', 2024061115343900, '1', '', '', 1, 0, 'F', '0', '0', 'task:bizProcess:query', '', 1, now(), 1, null, '');
  468. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  469. values(2024061115343902, '算法业务处理新增', 2024061115343900, '2', '', '', 1, 0, 'F', '0', '0', 'task:bizProcess:add', '', 1, now(), 1, null, '');
  470. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  471. values(2024061115343903, '算法业务处理修改', 2024061115343900, '3', '', '', 1, 0, 'F', '0', '0', 'task:bizProcess:edit', '', 1, now(), 1, null, '');
  472. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  473. values(2024061115343904, '算法业务处理删除', 2024061115343900, '4', '', '', 1, 0, 'F', '0', '0', 'task:bizProcess:remove', '', 1, now(), 1, null, '');
  474. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  475. values(2024061115343905, '算法业务处理导出', 2024061115343900, '5', '', '', 1, 0, 'F', '0', '0', 'task:bizProcess:export', '', 1, now(), 1, null, '');
  476. -- 菜单 SQL
  477. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  478. values(2024061115344000, '算法数据处理', 153308760386924544, '1', 'dataProcess', 'task/dataProcess/index', 1, 0, 'C', '0', '0', 'task:dataProcess:list', '', 1, now(), 1, null, '算法数据处理菜单');
  479. -- 按钮 SQL
  480. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  481. values(2024061115344001, '算法数据处理查询', 2024061115344000, '1', '', '', 1, 0, 'F', '0', '0', 'task:dataProcess:query', '', 1, now(), 1, null, '');
  482. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  483. values(2024061115344002, '算法数据处理新增', 2024061115344000, '2', '', '', 1, 0, 'F', '0', '0', 'task:dataProcess:add', '', 1, now(), 1, null, '');
  484. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  485. values(2024061115344003, '算法数据处理修改', 2024061115344000, '3', '', '', 1, 0, 'F', '0', '0', 'task:dataProcess:edit', '', 1, now(), 1, null, '');
  486. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  487. values(2024061115344004, '算法数据处理删除', 2024061115344000, '4', '', '', 1, 0, 'F', '0', '0', 'task:dataProcess:remove', '', 1, now(), 1, null, '');
  488. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  489. values(2024061115344005, '算法数据处理导出', 2024061115344000, '5', '', '', 1, 0, 'F', '0', '0', 'task:dataProcess:export', '', 1, now(), 1, null, '');
  490. -- 菜单 SQL
  491. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  492. values(2024061115344100, '算法数据集合', 153308760386924544, '1', 'dataSet', 'task/dataSet/index', 1, 0, 'C', '0', '0', 'task:dataSet:list', '', 1, now(), 1, null, '算法数据集合菜单');
  493. -- 按钮 SQL
  494. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  495. values(2024061115344101, '算法数据集合查询', 2024061115344100, '1', '', '', 1, 0, 'F', '0', '0', 'task:dataSet:query', '', 1, now(), 1, null, '');
  496. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  497. values(2024061115344102, '算法数据集合新增', 2024061115344100, '2', '', '', 1, 0, 'F', '0', '0', 'task:dataSet:add', '', 1, now(), 1, null, '');
  498. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  499. values(2024061115344103, '算法数据集合修改', 2024061115344100, '3', '', '', 1, 0, 'F', '0', '0', 'task:dataSet:edit', '', 1, now(), 1, null, '');
  500. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  501. values(2024061115344104, '算法数据集合删除', 2024061115344100, '4', '', '', 1, 0, 'F', '0', '0', 'task:dataSet:remove', '', 1, now(), 1, null, '');
  502. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  503. values(2024061115344105, '算法数据集合导出', 2024061115344100, '5', '', '', 1, 0, 'F', '0', '0', 'task:dataSet:export', '', 1, now(), 1, null, '');
  504. -- 20240817更新
  505. -- @author sukang
  506. -- 训练测试任务配置表
  507. DROP TABLE IF EXISTS public.algorithm_task_configuration;
  508. CREATE TABLE "public"."algorithm_task_configuration" (
  509. id BIGINT PRIMARY KEY,
  510. name VARCHAR(255) NOT NULL,
  511. train_url VARCHAR(255),
  512. train_params TEXT,
  513. verify_url VARCHAR(255),
  514. verify_params TEXT,
  515. test_url VARCHAR(255),
  516. test_params TEXT,
  517. remark VARCHAR(400),
  518. "create_by" "pg_catalog"."int8",
  519. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  520. "update_by" "pg_catalog"."int8",
  521. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  522. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  523. version integer DEFAULT 0,
  524. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  525. CONSTRAINT "algorithm_task_configuration_pkey" PRIMARY KEY ("id")
  526. );
  527. ALTER TABLE "public"."algorithm_task_configuration"
  528. OWNER TO "postgres";
  529. COMMENT ON COLUMN "public"."algorithm_task_configuration" IS '训练测试任务配置表';
  530. COMMENT ON COLUMN "public"."algorithm_task_configuration"."id" IS '主键ID';
  531. COMMENT ON COLUMN "public"."algorithm_task_configuration"."name" IS '算法任务名称';
  532. COMMENT ON COLUMN "public"."algorithm_task_configuration"."train_url" IS '训练算法地址';
  533. COMMENT ON COLUMN "public"."algorithm_task_configuration"."train_params" IS '训练超参配置';
  534. COMMENT ON COLUMN "public"."algorithm_task_configuration"."verify_url" IS '验证算法地址';
  535. COMMENT ON COLUMN "public"."algorithm_task_configuration"."verify_params" IS '验证超参配置';
  536. COMMENT ON COLUMN "public"."algorithm_task_configuration"."test_url" IS '测试算法地址';
  537. COMMENT ON COLUMN "public"."algorithm_task_configuration"."test_params" IS '测试超参配置';
  538. COMMENT ON COLUMN "public"."algorithm_task_configuration"."remark" IS '备注';
  539. COMMENT ON COLUMN "public"."algorithm_task_configuration"."create_by" IS '创建人';
  540. COMMENT ON COLUMN "public"."algorithm_task_configuration"."create_time" IS '创建时间';
  541. COMMENT ON COLUMN "public"."algorithm_task_configuration"."update_by" IS '更新人';
  542. COMMENT ON COLUMN "public"."algorithm_task_configuration"."update_time" IS '更新时间';
  543. COMMENT ON COLUMN "public"."algorithm_task_configuration"."tenant_id" IS '租户编码';
  544. COMMENT ON COLUMN "public"."algorithm_task_configuration"."version" IS '乐观锁';
  545. COMMENT ON COLUMN "public"."algorithm_task_configuration"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  546. -- 菜单 SQL
  547. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  548. values(2024082310223600, '算法任务配置', 152584418900430848, '1', '/config/taskConfiguration', 'task/taskConfiguration/index', 1, 0, 'C', '0', '0', 'task:taskConfiguration:list', '', 1, now(), 1, null, '算法任务菜单');
  549. -- 按钮 SQL
  550. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  551. values(2024082310223601, '算法任务查询', 2024082310223600, '1', '', '', 1, 0, 'F', '0', '0', 'task:taskConfiguration:query', '', 1, now(), 1, null, '');
  552. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  553. values(2024082310223602, '算法任务新增', 2024082310223600, '2', '', '', 1, 0, 'F', '0', '0', 'task:taskConfiguration:add', '', 1, now(), 1, null, '');
  554. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  555. values(2024082310223603, '算法任务修改', 2024082310223600, '3', '', '', 1, 0, 'F', '0', '0', 'task:taskConfiguration:edit', '', 1, now(), 1, null, '');
  556. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  557. values(2024082310223604, '算法任务删除', 2024082310223600, '4', '', '', 1, 0, 'F', '0', '0', 'task:taskConfiguration:remove', '', 1, now(), 1, null, '');
  558. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  559. values(2024082310223605, '算法任务导出', 2024082310223600, '5', '', '', 1, 0, 'F', '0', '0', 'task:taskConfiguration:export', '', 1, now(), 1, null, '');
  560. DROP TABLE IF EXISTS public.target_identification_task;
  561. CREATE TABLE "public"."target_identification_task" (
  562. "id" "pg_catalog"."int8" NOT NULL,
  563. "name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  564. "status" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  565. "create_by" "pg_catalog"."int8",
  566. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  567. "update_by" "pg_catalog"."int8",
  568. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  569. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  570. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  571. version integer DEFAULT 0,
  572. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  573. "system" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  574. CONSTRAINT "target_identification_task_pk" PRIMARY KEY ("id")
  575. );
  576. ALTER TABLE "public"."target_identification_task"
  577. OWNER TO "postgres";
  578. COMMENT ON COLUMN "public"."target_identification_task"."id" IS '主键ID';
  579. COMMENT ON COLUMN "public"."target_identification_task"."name" IS '任务名称';
  580. COMMENT ON COLUMN "public"."target_identification_task"."status" IS '任务状态';
  581. COMMENT ON COLUMN "public"."target_identification_task"."create_by" IS '创建人';
  582. COMMENT ON COLUMN "public"."target_identification_task"."create_time" IS '创建时间';
  583. COMMENT ON COLUMN "public"."target_identification_task"."update_by" IS '更新人';
  584. COMMENT ON COLUMN "public"."target_identification_task"."update_time" IS '更新时间';
  585. COMMENT ON COLUMN "public"."target_identification_task"."remarks" IS '备注';
  586. COMMENT ON COLUMN "public"."target_identification_task"."version" IS '乐观锁';
  587. COMMENT ON COLUMN "public"."target_identification_task"."tenant_id" IS '租户编码';
  588. COMMENT ON COLUMN "public"."target_identification_task"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  589. COMMENT ON TABLE "public"."target_identification_task" IS '目标识别任务';
  590. DROP TABLE IF EXISTS public.target_identification_subtask;
  591. CREATE TABLE "public"."target_identification_subtask" (
  592. "id" "pg_catalog"."int8" NOT NULL,
  593. "task_id" "pg_catalog"."int8",
  594. "name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  595. "status" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  596. "create_by" "pg_catalog"."int8",
  597. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  598. "update_by" "pg_catalog"."int8",
  599. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  600. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  601. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  602. version integer DEFAULT 0,
  603. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  604. CONSTRAINT "target_identification_subtask_pk" PRIMARY KEY ("id")
  605. );
  606. ALTER TABLE "public"."target_identification_subtask"
  607. OWNER TO "postgres";
  608. COMMENT ON COLUMN "public"."target_identification_subtask"."id" IS '主键ID';
  609. COMMENT ON COLUMN "public"."target_identification_subtask"."task_id" IS '任务ID';
  610. COMMENT ON COLUMN "public"."target_identification_subtask"."name" IS '任务名称';
  611. COMMENT ON COLUMN "public"."target_identification_subtask"."status" IS '任务状态';
  612. COMMENT ON COLUMN "public"."target_identification_subtask"."create_by" IS '创建人';
  613. COMMENT ON COLUMN "public"."target_identification_subtask"."create_time" IS '创建时间';
  614. COMMENT ON COLUMN "public"."target_identification_subtask"."update_by" IS '更新人';
  615. COMMENT ON COLUMN "public"."target_identification_subtask"."update_time" IS '更新时间';
  616. COMMENT ON COLUMN "public"."target_identification_subtask"."remarks" IS '备注';
  617. COMMENT ON COLUMN "public"."target_identification_subtask"."version" IS '乐观锁';
  618. COMMENT ON COLUMN "public"."target_identification_subtask"."tenant_id" IS '租户编码';
  619. COMMENT ON COLUMN "public"."target_identification_subtask"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  620. COMMENT ON TABLE "public"."target_identification_subtask" IS '目标识别子任务';
  621. DROP TABLE IF EXISTS public.target_identification_subtask_details;
  622. CREATE TABLE "public"."target_identification_subtask_details" (
  623. "id" "pg_catalog"."int8" NOT NULL,
  624. "subtask_id" "pg_catalog"."int8",
  625. "name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  626. "status" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  627. "type" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  628. "algorithm_id" "pg_catalog"."int8",
  629. "data_batch_nums" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  630. "parameters" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  631. "preprocess_path" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  632. "result_path" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  633. "index" "pg_catalog"."int8" DEFAULT 0,
  634. "start_time" "pg_catalog"."timestamp",
  635. "end_time" "pg_catalog"."timestamp",
  636. "cost_second" "pg_catalog"."int8",
  637. "log" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  638. "create_by" "pg_catalog"."int8",
  639. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  640. "update_by" "pg_catalog"."int8",
  641. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  642. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  643. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  644. version integer DEFAULT 0,
  645. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  646. CONSTRAINT "target_identification_subtask_details_pk" PRIMARY KEY ("id")
  647. );
  648. ALTER TABLE "public"."target_identification_subtask_details"
  649. OWNER TO "postgres";
  650. COMMENT ON COLUMN "public"."target_identification_subtask_details"."id" IS '主键ID';
  651. COMMENT ON COLUMN "public"."target_identification_subtask_details"."subtask_id" IS '子任务id';
  652. COMMENT ON COLUMN "public"."target_identification_subtask_details"."name" IS '任务名称';
  653. COMMENT ON COLUMN "public"."target_identification_subtask_details"."status" IS '任务状态';
  654. COMMENT ON COLUMN "public"."target_identification_subtask_details"."type" IS '任务类型(1训练,2验证,3测试)';
  655. COMMENT ON COLUMN "public"."target_identification_subtask_details"."algorithm_id" IS '算法';
  656. COMMENT ON COLUMN "public"."target_identification_subtask_details"."data_batch_nums" IS '数据批次号';
  657. COMMENT ON COLUMN "public"."target_identification_subtask_details"."parameters" IS '调用算法时所用的参数';
  658. COMMENT ON COLUMN "public"."target_identification_subtask_details"."preprocess_path" IS '预处理数据路径';
  659. COMMENT ON COLUMN "public"."target_identification_subtask_details"."result_path" IS '结果数据路径';
  660. COMMENT ON COLUMN "public"."target_identification_subtask_details"."index" IS '序号';
  661. COMMENT ON COLUMN "public"."target_identification_subtask_details"."start_time" IS '开始时间';
  662. COMMENT ON COLUMN "public"."target_identification_subtask_details"."end_time" IS '结束时间';
  663. COMMENT ON COLUMN "public"."target_identification_subtask_details"."cost_second" IS '耗时';
  664. COMMENT ON COLUMN "public"."target_identification_subtask_details"."create_by" IS '创建人';
  665. COMMENT ON COLUMN "public"."target_identification_subtask_details"."create_time" IS '创建时间';
  666. COMMENT ON COLUMN "public"."target_identification_subtask_details"."update_by" IS '更新人';
  667. COMMENT ON COLUMN "public"."target_identification_subtask_details"."update_time" IS '更新时间';
  668. COMMENT ON COLUMN "public"."target_identification_subtask_details"."remarks" IS '备注';
  669. COMMENT ON COLUMN "public"."target_identification_subtask_details"."version" IS '乐观锁';
  670. COMMENT ON COLUMN "public"."target_identification_subtask_details"."tenant_id" IS '租户编码';
  671. COMMENT ON COLUMN "public"."target_identification_subtask_details"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  672. COMMENT ON TABLE "public"."target_identification_subtask_details" IS '目标识别子任务详情';
  673. DROP TABLE IF EXISTS public.data_amplification_task;
  674. CREATE TABLE "public"."data_amplification_task" (
  675. "id" "pg_catalog"."int8" NOT NULL,
  676. "name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  677. "status" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  678. "data_batch_nums" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  679. "parameters" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  680. "start_time" "pg_catalog"."timestamp",
  681. "end_time" "pg_catalog"."timestamp",
  682. "cost_second" "pg_catalog"."int8",
  683. "log" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  684. "create_by" "pg_catalog"."int8",
  685. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  686. "update_by" "pg_catalog"."int8",
  687. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  688. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  689. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  690. version integer DEFAULT 0,
  691. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  692. CONSTRAINT "data_amplification_task_pkey" PRIMARY KEY ("id")
  693. );
  694. ALTER TABLE "public"."data_amplification_task"
  695. OWNER TO "postgres";
  696. COMMENT ON COLUMN "public"."data_amplification_task"."id" IS '主键ID';
  697. COMMENT ON COLUMN "public"."data_amplification_task"."name" IS '任务名称';
  698. COMMENT ON COLUMN "public"."data_amplification_task"."status" IS '任务状态';
  699. COMMENT ON COLUMN "public"."data_amplification_task"."data_batch_nums" IS '数据批次号';
  700. COMMENT ON COLUMN "public"."data_amplification_task"."parameters" IS '调用算法时所用的参数';
  701. COMMENT ON COLUMN "public"."data_amplification_task"."start_time" IS '开始时间';
  702. COMMENT ON COLUMN "public"."data_amplification_task"."end_time" IS '结束时间';
  703. COMMENT ON COLUMN "public"."data_amplification_task"."cost_second" IS '耗时';
  704. COMMENT ON COLUMN "public"."data_amplification_task"."log" IS '日志';
  705. COMMENT ON COLUMN "public"."data_amplification_task"."create_by" IS '创建人';
  706. COMMENT ON COLUMN "public"."data_amplification_task"."create_time" IS '创建时间';
  707. COMMENT ON COLUMN "public"."data_amplification_task"."update_by" IS '更新人';
  708. COMMENT ON COLUMN "public"."data_amplification_task"."update_time" IS '更新时间';
  709. COMMENT ON COLUMN "public"."data_amplification_task"."remarks" IS '备注';
  710. COMMENT ON COLUMN "public"."data_amplification_task"."version" IS '乐观锁';
  711. COMMENT ON COLUMN "public"."data_amplification_task"."tenant_id" IS '租户编码';
  712. COMMENT ON COLUMN "public"."data_amplification_task"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  713. COMMENT ON TABLE "public"."data_amplification_task" IS '数据扩增任务';
  714. -- 菜单
  715. -- 菜单 SQL
  716. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  717. values(2024081714395300, '目标识别任务', 153308760386924544, '1', 'identificationTask', 'identification/identificationTask/index', 1, 0, 'C', '0', '0', 'identification:identificationTask:list', '', 1, now(), 1, null, '目标识别任务菜单');
  718. -- 按钮 SQL
  719. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  720. values(2024081714395301, '目标识别任务查询', 2024081714395300, '1', '', '', 1, 0, 'F', '0', '0', 'identification:identificationTask:query', '', 1, now(), 1, null, '');
  721. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  722. values(2024081714395302, '目标识别任务新增', 2024081714395300, '2', '', '', 1, 0, 'F', '0', '0', 'identification:identificationTask:add', '', 1, now(), 1, null, '');
  723. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  724. values(2024081714395303, '目标识别任务修改', 2024081714395300, '3', '', '', 1, 0, 'F', '0', '0', 'identification:identificationTask:edit', '', 1, now(), 1, null, '');
  725. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  726. values(2024081714395304, '目标识别任务删除', 2024081714395300, '4', '', '', 1, 0, 'F', '0', '0', 'identification:identificationTask:remove', '', 1, now(), 1, null, '');
  727. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  728. values(2024081714395305, '目标识别任务导出', 2024081714395300, '5', '', '', 1, 0, 'F', '0', '0', 'identification:identificationTask:export', '', 1, now(), 1, null, '');
  729. -- 菜单 SQL
  730. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  731. values(2024081714564100, '目标识别子任务详情', 153308760386924544, '1', 'identificationSubtaskDetails', 'identification/identificationSubtaskDetails/index', 1, 0, 'C', '0', '0', 'identification:identificationSubtaskDetails:list', '', 1, now(), 1, null, '目标识别子任务详情菜单');
  732. -- 按钮 SQL
  733. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  734. values(2024081714564101, '目标识别子任务详情查询', 2024081714564100, '1', '', '', 1, 0, 'F', '0', '0', 'identification:identificationSubtaskDetails:query', '', 1, now(), 1, null, '');
  735. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  736. values(2024081714564102, '目标识别子任务详情新增', 2024081714564100, '2', '', '', 1, 0, 'F', '0', '0', 'identification:identificationSubtaskDetails:add', '', 1, now(), 1, null, '');
  737. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  738. values(2024081714564103, '目标识别子任务详情修改', 2024081714564100, '3', '', '', 1, 0, 'F', '0', '0', 'identification:identificationSubtaskDetails:edit', '', 1, now(), 1, null, '');
  739. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  740. values(2024081714564104, '目标识别子任务详情删除', 2024081714564100, '4', '', '', 1, 0, 'F', '0', '0', 'identification:identificationSubtaskDetails:remove', '', 1, now(), 1, null, '');
  741. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  742. values(2024081714564105, '目标识别子任务详情导出', 2024081714564100, '5', '', '', 1, 0, 'F', '0', '0', 'identification:identificationSubtaskDetails:export', '', 1, now(), 1, null, '');
  743. -- 菜单 SQL
  744. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  745. values(2024081714395200, '目标识别子任务', 153308760386924544, '1', 'identificationSubtask', 'identification/identificationSubtask/index', 1, 0, 'C', '0', '0', 'identification:identificationSubtask:list', '', 1, now(), 1, null, '目标识别子任务菜单');
  746. -- 按钮 SQL
  747. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  748. values(2024081714395201, '目标识别子任务查询', 2024081714395200, '1', '', '', 1, 0, 'F', '0', '0', 'identification:identificationSubtask:query', '', 1, now(), 1, null, '');
  749. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  750. values(2024081714395202, '目标识别子任务新增', 2024081714395200, '2', '', '', 1, 0, 'F', '0', '0', 'identification:identificationSubtask:add', '', 1, now(), 1, null, '');
  751. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  752. values(2024081714395203, '目标识别子任务修改', 2024081714395200, '3', '', '', 1, 0, 'F', '0', '0', 'identification:identificationSubtask:edit', '', 1, now(), 1, null, '');
  753. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  754. values(2024081714395204, '目标识别子任务删除', 2024081714395200, '4', '', '', 1, 0, 'F', '0', '0', 'identification:identificationSubtask:remove', '', 1, now(), 1, null, '');
  755. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  756. values(2024081714395205, '目标识别子任务导出', 2024081714395200, '5', '', '', 1, 0, 'F', '0', '0', 'identification:identificationSubtask:export', '', 1, now(), 1, null, '');
  757. CREATE TABLE "public"."object_trace_merge" (
  758. "id" "pg_catalog"."int8" NOT NULL,
  759. "name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  760. "status" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  761. "parameters" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  762. "preprocess_path" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  763. "result_path" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  764. "start_time" "pg_catalog"."timestamp",
  765. "end_time" "pg_catalog"."timestamp",
  766. "cost_second" "pg_catalog"."int8",
  767. "create_by" "pg_catalog"."int8",
  768. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  769. "update_by" "pg_catalog"."int8",
  770. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  771. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  772. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  773. version integer DEFAULT 0,
  774. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  775. CONSTRAINT "target_identification_subtask_details_pk" PRIMARY KEY ("id")
  776. );
  777. ALTER TABLE "public"."object_trace_merge"
  778. OWNER TO "postgres";
  779. COMMENT ON COLUMN "public"."object_trace_merge"."id" IS '主键ID';
  780. COMMENT ON COLUMN "public"."object_trace_merge"."name" IS '任务名称';
  781. COMMENT ON COLUMN "public"."object_trace_merge"."status" IS '任务状态';
  782. COMMENT ON COLUMN "public"."object_trace_merge"."parameters" IS '调用算法时所用的参数';
  783. COMMENT ON COLUMN "public"."object_trace_merge"."preprocess_path" IS '预处理数据路径';
  784. COMMENT ON COLUMN "public"."object_trace_merge"."result_path" IS '结果数据路径';
  785. COMMENT ON COLUMN "public"."object_trace_merge"."start_time" IS '开始时间';
  786. COMMENT ON COLUMN "public"."object_trace_merge"."end_time" IS '结束时间';
  787. COMMENT ON COLUMN "public"."object_trace_merge"."cost_second" IS '耗时';
  788. COMMENT ON COLUMN "public"."object_trace_merge"."create_by" IS '创建人';
  789. COMMENT ON COLUMN "public"."object_trace_merge"."create_time" IS '创建时间';
  790. COMMENT ON COLUMN "public"."object_trace_merge"."update_by" IS '更新人';
  791. COMMENT ON COLUMN "public"."object_trace_merge"."update_time" IS '更新时间';
  792. COMMENT ON COLUMN "public"."object_trace_merge"."remarks" IS '备注';
  793. COMMENT ON COLUMN "public"."object_trace_merge"."version" IS '乐观锁';
  794. COMMENT ON COLUMN "public"."object_trace_merge"."tenant_id" IS '租户编码';
  795. COMMENT ON COLUMN "public"."object_trace_merge"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  796. COMMENT ON TABLE "public"."object_trace_merge" IS '多源信息融合';
  797. -- 菜单 SQL
  798. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  799. values(4, '多目标选择', 5, '12345', 'multiObj', 1, 0, 'M', '0', '0', 'demo:traceMerge:list', '', 1, now(), 1, null, '多目标选择');
  800. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  801. values(2024101614471100, '多源信息融合', 4, '1', '/demo/traceMerge', 'demo/traceMerge/index', 1, 0, 'C', '0', '0', 'demo:traceMerge:list', '', 1, now(), 1, null, '多源信息融合菜单');
  802. -- 按钮 SQL
  803. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  804. values(2024101614471101, '多源信息融合查询', 2024101614471100, '1', '', '', 1, 0, 'F', '0', '0', 'demo:traceMerge:query', '', 1, now(), 1, null, '');
  805. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  806. values(2024101614471102, '多源信息融合新增', 2024101614471100, '2', '', '', 1, 0, 'F', '0', '0', 'demo:traceMerge:add', '', 1, now(), 1, null, '');
  807. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  808. values(2024101614471103, '多源信息融合修改', 2024101614471100, '3', '', '', 1, 0, 'F', '0', '0', 'demo:traceMerge:edit', '', 1, now(), 1, null, '');
  809. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  810. values(2024101614471104, '多源信息融合删除', 2024101614471100, '4', '', '', 1, 0, 'F', '0', '0', 'demo:traceMerge:remove', '', 1, now(), 1, null, '');
  811. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  812. values(2024101614471105, '多源信息融合导出', 2024101614471100, '5', '', '', 1, 0, 'F', '0', '0', 'demo:traceMerge:export', '', 1, now(), 1, null, '');
  813. CREATE TABLE "public"."object_match" (
  814. "id" "pg_catalog"."int8" NOT NULL,
  815. "name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  816. "status" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  817. "parameters" "pg_catalog"."text" COLLATE "pg_catalog"."default",
  818. "preprocess_path" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  819. "result_path" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
  820. "start_time" "pg_catalog"."timestamp",
  821. "end_time" "pg_catalog"."timestamp",
  822. "cost_second" "pg_catalog"."int8",
  823. "create_by" "pg_catalog"."int8",
  824. "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  825. "update_by" "pg_catalog"."int8",
  826. "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
  827. "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  828. "tenant_id" "pg_catalog"."int8" DEFAULT 0,
  829. version integer DEFAULT 0,
  830. del_flag smallint DEFAULT '0'::smallint NOT NULL,
  831. CONSTRAINT "obj_match_pk" PRIMARY KEY ("id")
  832. );
  833. ALTER TABLE "public"."object_match"
  834. OWNER TO "postgres";
  835. COMMENT ON COLUMN "public"."object_match"."id" IS '主键ID';
  836. COMMENT ON COLUMN "public"."object_match"."name" IS '任务名称';
  837. COMMENT ON COLUMN "public"."object_match"."status" IS '任务状态';
  838. COMMENT ON COLUMN "public"."object_match"."parameters" IS '调用算法时所用的参数';
  839. COMMENT ON COLUMN "public"."object_match"."preprocess_path" IS '预处理数据路径';
  840. COMMENT ON COLUMN "public"."object_match"."result_path" IS '结果数据路径';
  841. COMMENT ON COLUMN "public"."object_match"."start_time" IS '开始时间';
  842. COMMENT ON COLUMN "public"."object_match"."end_time" IS '结束时间';
  843. COMMENT ON COLUMN "public"."object_match"."cost_second" IS '耗时';
  844. COMMENT ON COLUMN "public"."object_match"."create_by" IS '创建人';
  845. COMMENT ON COLUMN "public"."object_match"."create_time" IS '创建时间';
  846. COMMENT ON COLUMN "public"."object_match"."update_by" IS '更新人';
  847. COMMENT ON COLUMN "public"."object_match"."update_time" IS '更新时间';
  848. COMMENT ON COLUMN "public"."object_match"."remarks" IS '备注';
  849. COMMENT ON COLUMN "public"."object_match"."version" IS '乐观锁';
  850. COMMENT ON COLUMN "public"."object_match"."tenant_id" IS '租户编码';
  851. COMMENT ON COLUMN "public"."object_match"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
  852. COMMENT ON TABLE "public"."object_match" IS '异源图像匹配';
  853. -- 菜单 SQL
  854. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  855. values(2024102812160200, '异源图像匹配', 4, '5', '/demo/match', 'demo/match/index', 1, 0, 'C', '0', '0', 'demo:match:list', '', 1, now(), 1, null, '异源图像匹配菜单');
  856. -- 按钮 SQL
  857. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  858. values(2024102812160201, '异源图像匹配查询', 2024102812160200, '1', '', '', 1, 0, 'F', '0', '0', 'demo:match:query', '', 1, now(), 1, null, '');
  859. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  860. values(2024102812160202, '异源图像匹配新增', 2024102812160200, '2', '', '', 1, 0, 'F', '0', '0', 'demo:match:add', '', 1, now(), 1, null, '');
  861. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  862. values(2024102812160203, '异源图像匹配修改', 2024102812160200, '3', '', '', 1, 0, 'F', '0', '0', 'demo:match:edit', '', 1, now(), 1, null, '');
  863. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  864. values(2024102812160204, '异源图像匹配删除', 2024102812160200, '4', '', '', 1, 0, 'F', '0', '0', 'demo:match:remove', '', 1, now(), 1, null, '');
  865. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  866. values(2024102812160205, '异源图像匹配导出', 2024102812160200, '5', '', '', 1, 0, 'F', '0', '0', 'demo:match:export', '', 1, now(), 1, null, '');
  867. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  868. values(2024111112160200, '多目标追踪', 4, '1', '/demo/multi', 'demo/multi/index', 1, 0, 'C', '0', '0', 'demo:match:list', '', 1, now(), 1, null, '多目标追踪菜单');
  869. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  870. values(2024111112210200, '多目标检测', 5, '123', '/taais/homePage', 'taais/homePage/index', 1, 0, 'C', '0', '0', '', '', 1, now(), 1, null, '多目标检测菜单');
  871. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  872. values(2024111103270000, '侦察图像拼接', 5, '1234', '/demo/detect', 'demo/detect/index', 1, 0, 'M', '0', '0', '', '', 1, now(), 1, null, '侦察图像拼接菜单');
  873. insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  874. values(2024111112211200, '数据扩增处理', 2, '123', '/task/amplify', 'task/amplify/index', 1, 0, 'C', '0', '0', '', '', 1, now(), 1, null, '数据扩增处理菜单');