data(postgresql).sql 77 KB

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