2.0重构版本
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

76 行
4.3 KiB

  1. CREATE TABLE `bpm_model` (
  2. `model_id` BIGINT(20) NOT NULL,
  3. `model_full_name` VARCHAR(64) NULL DEFAULT NULL COMMENT '用.连接唯一地址:模块名+全路径名称' COLLATE 'utf8_unicode_ci',
  4. `model_name` VARCHAR(200) NOT NULL COMMENT '名称' COLLATE 'utf8_unicode_ci',
  5. `model_type` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '模型类型: 1 数据模型,2 工作流模型,3 PC界面,4 手机界面',
  6. `model_content` MEDIUMTEXT NULL DEFAULT NULL COMMENT '内容,json格式' COLLATE 'utf8_unicode_ci',
  7. `model_content_sign` VARCHAR(100) NULL DEFAULT NULL COMMENT 'sha256(内容),内容长度',
  8. `model_status` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '状态:0 启用,1 禁用',
  9. `model_version` INT(11) NOT NULL DEFAULT '0' COMMENT '版本',
  10. `model_order` INT(11) NOT NULL DEFAULT '0' COMMENT '排序',
  11. `model_site_id` BIGINT(20) NULL DEFAULT NULL COMMENT '站点ID',
  12. `model_create_time` BIGINT(20) NOT NULL DEFAULT '0' COMMENT '创建时间',
  13. `model_last_time` BIGINT(20) NOT NULL DEFAULT '0' COMMENT '更新时间',
  14. PRIMARY KEY (`model_id`) USING BTREE,
  15. UNIQUE INDEX `model_full_name` (`model_full_name`) USING BTREE
  16. )
  17. COMMENT='应用支撑平台模型定义'
  18. COLLATE='utf8_unicode_ci'
  19. ENGINE=InnoDB
  20. ROW_FORMAT=DYNAMIC
  21. ;
  22. ALTER TABLE `asp_model`
  23. CHANGE COLUMN `model_create_at` `model_create_time` BIGINT NOT NULL DEFAULT 0 COMMENT '创建时间' AFTER `model_update_uid`,
  24. CHANGE COLUMN `model_update_at` `model_last_time` BIGINT NOT NULL DEFAULT 0 COMMENT '更新时间' AFTER `model_create_time`;
  25. ALTER TABLE `asp_model_catalog`
  26. CHANGE COLUMN `mc_create_at` `mc_create_time` BIGINT NOT NULL DEFAULT 0 AFTER `mc_module`,
  27. CHANGE COLUMN `mc_update_at` `mc_last_time` BIGINT NOT NULL DEFAULT 0 AFTER `mc_create_time`;
  28. ALTER TABLE `asp_model_deploy`
  29. CHANGE COLUMN `md_create_at` `md_create_time` BIGINT NOT NULL DEFAULT 0 COMMENT '创建时间' AFTER `md_update_uid`,
  30. CHANGE COLUMN `md_update_at` `md_last_time` BIGINT NOT NULL DEFAULT 0 COMMENT '更新时间' AFTER `md_create_time`;
  31. ALTER TABLE `bpm_dyn_form_log`
  32. CHANGE COLUMN `dfl_create_at` `dfl_create_time` BIGINT NOT NULL DEFAULT 0 AFTER `dfl_lock_rev`,
  33. CHANGE COLUMN `dfl_update_at` `dfl_last_time` BIGINT NOT NULL DEFAULT 0 AFTER `dfl_create_time`;
  34. ALTER TABLE `bpm_node_log`
  35. CHANGE COLUMN `nl_create_at` `nl_create_time` BIGINT NOT NULL DEFAULT 0 COMMENT '创建时间' AFTER `nl_duration`;
  36. ALTER TABLE `bpm_process`
  37. CHANGE COLUMN `process_create_at` `process_create_time` BIGINT NOT NULL DEFAULT 0 COMMENT '创建时间' AFTER `process_route`,
  38. CHANGE COLUMN `process_update_at` `process_last_time` BIGINT NOT NULL DEFAULT 0 COMMENT '更新时间' AFTER `process_create_time`;
  39. ALTER TABLE `bpm_process_user`
  40. CHANGE COLUMN `pu_create_at` `pu_create_time` BIGINT NOT NULL DEFAULT 0 AFTER `pu_type`,
  41. CHANGE COLUMN `pu_update_at` `pu_last_time` BIGINT NOT NULL DEFAULT 0 AFTER `pu_create_time`;
  42. ALTER TABLE `bpm_task`
  43. CHANGE COLUMN `task_create_at` `task_create_time` BIGINT NOT NULL DEFAULT 0 COMMENT '创建时间' AFTER `task_due_time`,
  44. CHANGE COLUMN `task_update_at` `task_last_time` BIGINT NOT NULL DEFAULT 0 COMMENT '更新时间' AFTER `task_create_time`;
  45. ALTER TABLE `bpm_process_log`
  46. CHANGE COLUMN `pl_create_at` `pl_create_time` BIGINT NOT NULL DEFAULT 0 COMMENT '创建时间' AFTER `pl_route`;
  47. ALTER TABLE `bpm_process_attachment_log`
  48. CHANGE COLUMN `pal_create_at` `pal_create_time` BIGINT NOT NULL DEFAULT 0 COMMENT '创建时间' AFTER `pal_type`;
  49. ALTER TABLE `bpm_process_comment_log`
  50. CHANGE COLUMN `pcl_create_at` `pcl_create_time` BIGINT NOT NULL DEFAULT 0 COMMENT '创建时间' AFTER `pcl_content`;
  51. ALTER TABLE `bpm_process_detail_log`
  52. CHANGE COLUMN `pdl_create_at` `pdl_create_time` BIGINT NOT NULL DEFAULT 0 AFTER `pdl_lock_rev`,
  53. CHANGE COLUMN `pdl_update_at` `pdl_last_time` BIGINT NOT NULL DEFAULT 0 AFTER `pdl_create_time`;
  54. ALTER TABLE `bpm_task_log`
  55. CHANGE COLUMN `tl_create_at` `tl_create_time` BIGINT NOT NULL DEFAULT 0 COMMENT '创建时间' AFTER `tl_claim_time`;
  56. ALTER TABLE `bpm_variable`
  57. CHANGE COLUMN `var_create_at` `var_create_time` BIGINT NOT NULL DEFAULT 0 AFTER `var_lock_rev`,
  58. CHANGE COLUMN `var_update_at` `var_update_time` BIGINT NOT NULL DEFAULT 0 AFTER `var_create_time`;
  59. ALTER TABLE `bpm_variable_log`
  60. CHANGE COLUMN `vl_create_at` `vl_create_time` BIGINT NOT NULL DEFAULT 0 AFTER `vl_lock_rev`;