powerjob.sql 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. -- ----------------------------
  2. -- Table structure for pj_app_info
  3. -- ----------------------------
  4. CREATE TABLE [pj_app_info] (
  5. [id] bigint IDENTITY(1,1) NOT NULL,
  6. [app_name] varchar(255) NULL,
  7. [current_server] varchar(255) NULL,
  8. [gmt_create] datetime2(7) NULL,
  9. [gmt_modified] datetime2(7) NULL,
  10. [password] varchar(255) NULL
  11. )
  12. GO
  13. ALTER TABLE [pj_app_info] SET (LOCK_ESCALATION = TABLE)
  14. GO
  15. -- ----------------------------
  16. -- Records of [pj_app_info]
  17. -- ----------------------------
  18. SET IDENTITY_INSERT [pj_app_info] ON
  19. GO
  20. INSERT INTO [pj_app_info] ([id], [app_name], [current_server], [gmt_create], [gmt_modified], [password]) VALUES (N'1', N'ruoyi-worker', N'192.168.31.100:10010', N'2023-06-13 16:32:59.2630000', N'2023-07-04 17:25:49.7980000', N'123456')
  21. GO
  22. SET IDENTITY_INSERT [pj_app_info] OFF
  23. GO
  24. -- ----------------------------
  25. -- Table structure for pj_container_info
  26. -- ----------------------------
  27. CREATE TABLE [pj_container_info] (
  28. [id] bigint IDENTITY(1,1) NOT NULL,
  29. [app_id] bigint NULL,
  30. [container_name] varchar(255) NULL,
  31. [gmt_create] datetime2(7) NULL,
  32. [gmt_modified] datetime2(7) NULL,
  33. [last_deploy_time] datetime2(7) NULL,
  34. [source_info] varchar(255) NULL,
  35. [source_type] int NULL,
  36. [status] int NULL,
  37. [version] varchar(255) NULL
  38. )
  39. GO
  40. ALTER TABLE [pj_container_info] SET (LOCK_ESCALATION = TABLE)
  41. GO
  42. -- ----------------------------
  43. -- Table structure for pj_instance_info
  44. -- ----------------------------
  45. CREATE TABLE [pj_instance_info] (
  46. [id] bigint IDENTITY(1,1) NOT NULL,
  47. [actual_trigger_time] bigint NULL,
  48. [app_id] bigint NULL,
  49. [expected_trigger_time] bigint NULL,
  50. [finished_time] bigint NULL,
  51. [gmt_create] datetime2(7) NULL,
  52. [gmt_modified] datetime2(7) NULL,
  53. [instance_id] bigint NULL,
  54. [instance_params] varchar(max) NULL,
  55. [job_id] bigint NULL,
  56. [job_params] varchar(max) NULL,
  57. [last_report_time] bigint NULL,
  58. [result] varchar(max) NULL,
  59. [running_times] bigint NULL,
  60. [status] int NULL,
  61. [task_tracker_address] varchar(255) NULL,
  62. [type] int NULL,
  63. [wf_instance_id] bigint NULL
  64. )
  65. GO
  66. ALTER TABLE [pj_instance_info] SET (LOCK_ESCALATION = TABLE)
  67. GO
  68. -- ----------------------------
  69. -- Table structure for pj_job_info
  70. -- ----------------------------
  71. CREATE TABLE [pj_job_info] (
  72. [id] bigint IDENTITY(1,1) NOT NULL,
  73. [alarm_config] varchar(255) NULL,
  74. [app_id] bigint NULL,
  75. [concurrency] int NULL,
  76. [designated_workers] varchar(255) NULL,
  77. [dispatch_strategy] int NULL,
  78. [execute_type] int NULL,
  79. [extra] varchar(255) NULL,
  80. [gmt_create] datetime2(7) NULL,
  81. [gmt_modified] datetime2(7) NULL,
  82. [instance_retry_num] int NULL,
  83. [instance_time_limit] bigint NULL,
  84. [job_description] varchar(255) NULL,
  85. [job_name] varchar(255) NULL,
  86. [job_params] varchar(max) NULL,
  87. [lifecycle] varchar(255) NULL,
  88. [log_config] varchar(255) NULL,
  89. [max_instance_num] int NULL,
  90. [max_worker_count] int NULL,
  91. [min_cpu_cores] float(53) NOT NULL,
  92. [min_disk_space] float(53) NOT NULL,
  93. [min_memory_space] float(53) NOT NULL,
  94. [next_trigger_time] bigint NULL,
  95. [notify_user_ids] varchar(255) NULL,
  96. [processor_info] varchar(255) NULL,
  97. [processor_type] int NULL,
  98. [status] int NULL,
  99. [tag] varchar(255) NULL,
  100. [task_retry_num] int NULL,
  101. [time_expression] varchar(255) NULL,
  102. [time_expression_type] int NULL
  103. )
  104. GO
  105. ALTER TABLE [pj_job_info] SET (LOCK_ESCALATION = TABLE)
  106. GO
  107. -- ----------------------------
  108. -- Records of [pj_job_info]
  109. -- ----------------------------
  110. SET IDENTITY_INSERT [pj_job_info] ON
  111. GO
  112. INSERT INTO [pj_job_info] ([id], [alarm_config], [app_id], [concurrency], [designated_workers], [dispatch_strategy], [execute_type], [extra], [gmt_create], [gmt_modified], [instance_retry_num], [instance_time_limit], [job_description], [job_name], [job_params], [lifecycle], [log_config], [max_instance_num], [max_worker_count], [min_cpu_cores], [min_disk_space], [min_memory_space], [next_trigger_time], [notify_user_ids], [processor_info], [processor_type], [status], [tag], [task_retry_num], [time_expression], [time_expression_type]) VALUES (N'1', N'{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', N'1', N'5', N'', N'2', N'1', NULL, N'2023-06-02 15:01:27.7170000', N'2023-07-04 17:22:12.3740000', N'1', N'0', N'', N'?????????', NULL, N'{}', N'{"type":1}', N'0', N'0', N'0.000000000000000', N'0.000000000000000', N'0.000000000000000', NULL, NULL, N'org.dromara.job.processors.StandaloneProcessorDemo', N'1', N'2', NULL, N'1', N'30000', N'3')
  113. GO
  114. INSERT INTO [pj_job_info] ([id], [alarm_config], [app_id], [concurrency], [designated_workers], [dispatch_strategy], [execute_type], [extra], [gmt_create], [gmt_modified], [instance_retry_num], [instance_time_limit], [job_description], [job_name], [job_params], [lifecycle], [log_config], [max_instance_num], [max_worker_count], [min_cpu_cores], [min_disk_space], [min_memory_space], [next_trigger_time], [notify_user_ids], [processor_info], [processor_type], [status], [tag], [task_retry_num], [time_expression], [time_expression_type]) VALUES (N'2', N'{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', N'1', N'5', N'', N'1', N'2', NULL, N'2023-06-02 15:04:45.3420000', N'2023-07-04 17:22:12.8160000', N'0', N'0', NULL, N'???????', NULL, N'{}', N'{"type":1}', N'0', N'0', N'0.000000000000000', N'0.000000000000000', N'0.000000000000000', NULL, NULL, N'org.dromara.job.processors.BroadcastProcessorDemo', N'1', N'2', NULL, N'1', N'30000', N'3')
  115. GO
  116. INSERT INTO [pj_job_info] ([id], [alarm_config], [app_id], [concurrency], [designated_workers], [dispatch_strategy], [execute_type], [extra], [gmt_create], [gmt_modified], [instance_retry_num], [instance_time_limit], [job_description], [job_name], [job_params], [lifecycle], [log_config], [max_instance_num], [max_worker_count], [min_cpu_cores], [min_disk_space], [min_memory_space], [next_trigger_time], [notify_user_ids], [processor_info], [processor_type], [status], [tag], [task_retry_num], [time_expression], [time_expression_type]) VALUES (N'3', N'{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', N'1', N'5', N'', N'1', N'4', NULL, N'2023-06-02 15:13:23.5190000', N'2023-06-02 16:03:22.4210000', N'0', N'0', NULL, N'Map?????', NULL, N'{}', N'{"type":1}', N'0', N'0', N'0.000000000000000', N'0.000000000000000', N'0.000000000000000', NULL, NULL, N'org.dromara.job.processors.MapProcessorDemo', N'1', N'2', NULL, N'1', N'1000', N'3')
  117. GO
  118. INSERT INTO [pj_job_info] ([id], [alarm_config], [app_id], [concurrency], [designated_workers], [dispatch_strategy], [execute_type], [extra], [gmt_create], [gmt_modified], [instance_retry_num], [instance_time_limit], [job_description], [job_name], [job_params], [lifecycle], [log_config], [max_instance_num], [max_worker_count], [min_cpu_cores], [min_disk_space], [min_memory_space], [next_trigger_time], [notify_user_ids], [processor_info], [processor_type], [status], [tag], [task_retry_num], [time_expression], [time_expression_type]) VALUES (N'4', N'{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', N'1', N'5', N'', N'1', N'3', NULL, N'2023-06-02 15:45:25.8960000', N'2023-06-02 16:03:23.1250000', N'0', N'0', NULL, N'MapReduce?????', NULL, N'{}', N'{"type":1}', N'0', N'0', N'0.000000000000000', N'0.000000000000000', N'0.000000000000000', NULL, NULL, N'org.dromara.job.processors.MapReduceProcessorDemo', N'1', N'2', NULL, N'1', N'1000', N'3')
  119. GO
  120. SET IDENTITY_INSERT [pj_job_info] OFF
  121. GO
  122. -- ----------------------------
  123. -- Table structure for pj_oms_lock
  124. -- ----------------------------
  125. CREATE TABLE [pj_oms_lock] (
  126. [id] bigint IDENTITY(1,1) NOT NULL,
  127. [gmt_create] datetime2(7) NULL,
  128. [gmt_modified] datetime2(7) NULL,
  129. [lock_name] varchar(255) NULL,
  130. [max_lock_time] bigint NULL,
  131. [ownerip] varchar(255) NULL
  132. )
  133. GO
  134. ALTER TABLE [pj_oms_lock] SET (LOCK_ESCALATION = TABLE)
  135. GO
  136. -- ----------------------------
  137. -- Table structure for pj_server_info
  138. -- ----------------------------
  139. CREATE TABLE [pj_server_info] (
  140. [id] bigint IDENTITY(1,1) NOT NULL,
  141. [gmt_create] datetime2(7) NULL,
  142. [gmt_modified] datetime2(7) NULL,
  143. [ip] varchar(255) NULL
  144. )
  145. GO
  146. ALTER TABLE [pj_server_info] SET (LOCK_ESCALATION = TABLE)
  147. GO
  148. -- ----------------------------
  149. -- Table structure for pj_user_info
  150. -- ----------------------------
  151. CREATE TABLE [pj_user_info] (
  152. [id] bigint IDENTITY(1,1) NOT NULL,
  153. [email] varchar(255) NULL,
  154. [extra] varchar(255) NULL,
  155. [gmt_create] datetime2(7) NULL,
  156. [gmt_modified] datetime2(7) NULL,
  157. [password] varchar(255) NULL,
  158. [phone] varchar(255) NULL,
  159. [username] varchar(255) NULL,
  160. [web_hook] varchar(255) NULL
  161. )
  162. GO
  163. ALTER TABLE [pj_user_info] SET (LOCK_ESCALATION = TABLE)
  164. GO
  165. -- ----------------------------
  166. -- Table structure for pj_workflow_info
  167. -- ----------------------------
  168. CREATE TABLE [pj_workflow_info] (
  169. [id] bigint IDENTITY(1,1) NOT NULL,
  170. [app_id] bigint NULL,
  171. [extra] varchar(255) NULL,
  172. [gmt_create] datetime2(7) NULL,
  173. [gmt_modified] datetime2(7) NULL,
  174. [lifecycle] varchar(255) NULL,
  175. [max_wf_instance_num] int NULL,
  176. [next_trigger_time] bigint NULL,
  177. [notify_user_ids] varchar(255) NULL,
  178. [pedag] varchar(max) NULL,
  179. [status] int NULL,
  180. [time_expression] varchar(255) NULL,
  181. [time_expression_type] int NULL,
  182. [wf_description] varchar(255) NULL,
  183. [wf_name] varchar(255) NULL
  184. )
  185. GO
  186. ALTER TABLE [pj_workflow_info] SET (LOCK_ESCALATION = TABLE)
  187. GO
  188. -- ----------------------------
  189. -- Table structure for pj_workflow_instance_info
  190. -- ----------------------------
  191. CREATE TABLE [pj_workflow_instance_info] (
  192. [id] bigint IDENTITY(1,1) NOT NULL,
  193. [actual_trigger_time] bigint NULL,
  194. [app_id] bigint NULL,
  195. [dag] varchar(max) NULL,
  196. [expected_trigger_time] bigint NULL,
  197. [finished_time] bigint NULL,
  198. [gmt_create] datetime2(7) NULL,
  199. [gmt_modified] datetime2(7) NULL,
  200. [parent_wf_instance_id] bigint NULL,
  201. [result] varchar(max) NULL,
  202. [status] int NULL,
  203. [wf_context] varchar(max) NULL,
  204. [wf_init_params] varchar(max) NULL,
  205. [wf_instance_id] bigint NULL,
  206. [workflow_id] bigint NULL
  207. )
  208. GO
  209. ALTER TABLE [pj_workflow_instance_info] SET (LOCK_ESCALATION = TABLE)
  210. GO
  211. -- ----------------------------
  212. -- Table structure for pj_workflow_node_info
  213. -- ----------------------------
  214. CREATE TABLE [pj_workflow_node_info] (
  215. [id] bigint IDENTITY(1,1) NOT NULL,
  216. [app_id] bigint NOT NULL,
  217. [enable] bit NOT NULL,
  218. [extra] varchar(max) NULL,
  219. [gmt_create] datetime2(7) NOT NULL,
  220. [gmt_modified] datetime2(7) NOT NULL,
  221. [job_id] bigint NULL,
  222. [node_name] varchar(255) NULL,
  223. [node_params] varchar(max) NULL,
  224. [skip_when_failed] bit NOT NULL,
  225. [type] int NULL,
  226. [workflow_id] bigint NULL
  227. )
  228. GO
  229. ALTER TABLE [pj_workflow_node_info] SET (LOCK_ESCALATION = TABLE)
  230. GO
  231. -- ----------------------------
  232. -- Uniques structure for table pj_app_info
  233. -- ----------------------------
  234. ALTER TABLE [pj_app_info] ADD CONSTRAINT [uidx01_app_info] UNIQUE NONCLUSTERED ([app_name] ASC)
  235. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  236. ON [PRIMARY]
  237. GO
  238. -- ----------------------------
  239. -- Primary Key structure for table pj_app_info
  240. -- ----------------------------
  241. ALTER TABLE [pj_app_info] ADD CONSTRAINT [PK__pj_app_i__3213E83FDD7E2005] PRIMARY KEY CLUSTERED ([id])
  242. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  243. ON [PRIMARY]
  244. GO
  245. -- ----------------------------
  246. -- Indexes structure for table pj_container_info
  247. -- ----------------------------
  248. CREATE NONCLUSTERED INDEX [idx01_container_info]
  249. ON [pj_container_info] (
  250. [app_id] ASC
  251. )
  252. GO
  253. -- ----------------------------
  254. -- Primary Key structure for table pj_container_info
  255. -- ----------------------------
  256. ALTER TABLE [pj_container_info] ADD CONSTRAINT [PK__pj_conta__3213E83FE1AAA8BE] PRIMARY KEY CLUSTERED ([id])
  257. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  258. ON [PRIMARY]
  259. GO
  260. -- ----------------------------
  261. -- Indexes structure for table pj_instance_info
  262. -- ----------------------------
  263. CREATE NONCLUSTERED INDEX [idx01_instance_info]
  264. ON [pj_instance_info] (
  265. [job_id] ASC,
  266. [status] ASC
  267. )
  268. GO
  269. CREATE NONCLUSTERED INDEX [idx02_instance_info]
  270. ON [pj_instance_info] (
  271. [app_id] ASC,
  272. [status] ASC
  273. )
  274. GO
  275. CREATE NONCLUSTERED INDEX [idx03_instance_info]
  276. ON [pj_instance_info] (
  277. [instance_id] ASC,
  278. [status] ASC
  279. )
  280. GO
  281. -- ----------------------------
  282. -- Primary Key structure for table pj_instance_info
  283. -- ----------------------------
  284. ALTER TABLE [pj_instance_info] ADD CONSTRAINT [PK__pj_insta__3213E83F6F188642] PRIMARY KEY CLUSTERED ([id])
  285. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  286. ON [PRIMARY]
  287. GO
  288. -- ----------------------------
  289. -- Indexes structure for table pj_job_info
  290. -- ----------------------------
  291. CREATE NONCLUSTERED INDEX [idx01_job_info]
  292. ON [pj_job_info] (
  293. [app_id] ASC,
  294. [status] ASC,
  295. [time_expression_type] ASC,
  296. [next_trigger_time] ASC
  297. )
  298. GO
  299. -- ----------------------------
  300. -- Primary Key structure for table pj_job_info
  301. -- ----------------------------
  302. ALTER TABLE [pj_job_info] ADD CONSTRAINT [PK__pj_job_i__3213E83FBFBCD483] PRIMARY KEY CLUSTERED ([id])
  303. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  304. ON [PRIMARY]
  305. GO
  306. -- ----------------------------
  307. -- Uniques structure for table pj_oms_lock
  308. -- ----------------------------
  309. ALTER TABLE [pj_oms_lock] ADD CONSTRAINT [uidx01_oms_lock] UNIQUE NONCLUSTERED ([lock_name] ASC)
  310. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  311. ON [PRIMARY]
  312. GO
  313. -- ----------------------------
  314. -- Primary Key structure for table pj_oms_lock
  315. -- ----------------------------
  316. ALTER TABLE [pj_oms_lock] ADD CONSTRAINT [PK__pj_oms_l__3213E83F31F31A08] PRIMARY KEY CLUSTERED ([id])
  317. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  318. ON [PRIMARY]
  319. GO
  320. -- ----------------------------
  321. -- Indexes structure for table pj_server_info
  322. -- ----------------------------
  323. CREATE NONCLUSTERED INDEX [idx01_server_info]
  324. ON [pj_server_info] (
  325. [gmt_modified] ASC
  326. )
  327. GO
  328. -- ----------------------------
  329. -- Uniques structure for table pj_server_info
  330. -- ----------------------------
  331. ALTER TABLE [pj_server_info] ADD CONSTRAINT [uidx01_server_info] UNIQUE NONCLUSTERED ([ip] ASC)
  332. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  333. ON [PRIMARY]
  334. GO
  335. -- ----------------------------
  336. -- Primary Key structure for table pj_server_info
  337. -- ----------------------------
  338. ALTER TABLE [pj_server_info] ADD CONSTRAINT [PK__pj_serve__3213E83F75246E89] PRIMARY KEY CLUSTERED ([id])
  339. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  340. ON [PRIMARY]
  341. GO
  342. -- ----------------------------
  343. -- Indexes structure for table pj_user_info
  344. -- ----------------------------
  345. CREATE NONCLUSTERED INDEX [uidx01_user_info]
  346. ON [pj_user_info] (
  347. [username] ASC
  348. )
  349. GO
  350. CREATE NONCLUSTERED INDEX [uidx02_user_info]
  351. ON [pj_user_info] (
  352. [email] ASC
  353. )
  354. GO
  355. -- ----------------------------
  356. -- Primary Key structure for table pj_user_info
  357. -- ----------------------------
  358. ALTER TABLE [pj_user_info] ADD CONSTRAINT [PK__pj_user___3213E83FB78DE8FD] PRIMARY KEY CLUSTERED ([id])
  359. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  360. ON [PRIMARY]
  361. GO
  362. -- ----------------------------
  363. -- Indexes structure for table pj_workflow_info
  364. -- ----------------------------
  365. CREATE NONCLUSTERED INDEX [idx01_workflow_info]
  366. ON [pj_workflow_info] (
  367. [app_id] ASC,
  368. [status] ASC,
  369. [time_expression_type] ASC,
  370. [next_trigger_time] ASC
  371. )
  372. GO
  373. -- ----------------------------
  374. -- Primary Key structure for table pj_workflow_info
  375. -- ----------------------------
  376. ALTER TABLE [pj_workflow_info] ADD CONSTRAINT [PK__pj_workf__3213E83F790DC98A] PRIMARY KEY CLUSTERED ([id])
  377. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  378. ON [PRIMARY]
  379. GO
  380. -- ----------------------------
  381. -- Indexes structure for table pj_workflow_instance_info
  382. -- ----------------------------
  383. CREATE NONCLUSTERED INDEX [idx01_wf_instance]
  384. ON [pj_workflow_instance_info] (
  385. [workflow_id] ASC,
  386. [status] ASC,
  387. [app_id] ASC,
  388. [expected_trigger_time] ASC
  389. )
  390. GO
  391. -- ----------------------------
  392. -- Uniques structure for table pj_workflow_instance_info
  393. -- ----------------------------
  394. ALTER TABLE [pj_workflow_instance_info] ADD CONSTRAINT [uidx01_wf_instance] UNIQUE NONCLUSTERED ([wf_instance_id] ASC)
  395. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  396. ON [PRIMARY]
  397. GO
  398. -- ----------------------------
  399. -- Primary Key structure for table pj_workflow_instance_info
  400. -- ----------------------------
  401. ALTER TABLE [pj_workflow_instance_info] ADD CONSTRAINT [PK__pj_workf__3213E83F5AF8A72D] PRIMARY KEY CLUSTERED ([id])
  402. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  403. ON [PRIMARY]
  404. GO
  405. -- ----------------------------
  406. -- Indexes structure for table pj_workflow_node_info
  407. -- ----------------------------
  408. CREATE NONCLUSTERED INDEX [idx01_workflow_node_info]
  409. ON [pj_workflow_node_info] (
  410. [workflow_id] ASC,
  411. [gmt_create] ASC
  412. )
  413. GO
  414. -- ----------------------------
  415. -- Primary Key structure for table pj_workflow_node_info
  416. -- ----------------------------
  417. ALTER TABLE [pj_workflow_node_info] ADD CONSTRAINT [PK__pj_workf__3213E83FD000EE6D] PRIMARY KEY CLUSTERED ([id])
  418. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  419. ON [PRIMARY]
  420. GO