You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
6.0 KiB

  1. CREATE TABLE `cim_production_details` (
  2. `id` bigint(20) NOT NULL,
  3. `factory_no` varchar(50) DEFAULT '' COMMENT '工厂编号',
  4. `factory_name` varchar(50) DEFAULT '' COMMENT '工厂名称',
  5. `nature` varchar(1) DEFAULT '' COMMENT '性质',
  6. `expected_quantity` decimal(15,3) DEFAULT NULL COMMENT '预计产量',
  7. `expected_commencement_date` datetime DEFAULT NULL COMMENT '预计开工日期',
  8. `estimated_completion_date` datetime DEFAULT NULL COMMENT '预计完工日期',
  9. `production_management_person` varchar(50) DEFAULT '' COMMENT '生管人员',
  10. `production_management_department` varchar(50) DEFAULT '' COMMENT '生管部门',
  11. `work_no` varchar(50) DEFAULT '' COMMENT '工单单号',
  12. `production_status` varchar(32) DEFAULT '' COMMENT '状态',
  13. `batch_no` varchar(32) DEFAULT '' COMMENT '生产批号',
  14. `sku_code` varchar(32) DEFAULT '' COMMENT '品号',
  15. `sku_name` varchar(32) DEFAULT '' COMMENT '品名',
  16. `sku_spec` varchar(32) DEFAULT '' COMMENT '规格',
  17. `unit` varchar(32) DEFAULT '' COMMENT '单位',
  18. `produce_boss` varchar(32) DEFAULT '' COMMENT '生产主管',
  19. `overdue_days` varchar(32) DEFAULT '' COMMENT '逾期天数',
  20. `tenantsid` bigint(20) DEFAULT NULL COMMENT '租户sid',
  21. `tenant_id` varchar(20) DEFAULT NULL,
  22. `create_by` varchar(50) DEFAULT NULL,
  23. `create_date` datetime DEFAULT NULL,
  24. `modified_by` varchar(50) DEFAULT NULL,
  25. `modified_date` datetime DEFAULT NULL,
  26. `version` int(11) DEFAULT NULL,
  27. `deleted` tinyint(255) DEFAULT NULL,
  28. PRIMARY KEY (`id`)
  29. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  30. CREATE TABLE `cim_receivables_detail` (
  31. `id` bigint(20) NOT NULL,
  32. `receivable_no` varchar(100) DEFAULT '' COMMENT '应收单号',
  33. `receivable_non` varchar(100) DEFAULT '' COMMENT '应收单序号',
  34. `customer_no` varchar(100) DEFAULT '' COMMENT '客户编号',
  35. `customer_name` varchar(100) DEFAULT '' COMMENT '客户名称',
  36. `status` varchar(1) DEFAULT '' COMMENT '状态',
  37. `sales_order` varchar(32) DEFAULT '' COMMENT '销售单号',
  38. `sales_order_number` varchar(32) DEFAULT '' COMMENT '销售单序号',
  39. `contract_no` varchar(100) DEFAULT '' COMMENT '合同编号',
  40. `amount_tax` decimal(15,3) DEFAULT NULL COMMENT '含税金额',
  41. `sku_code` varchar(50) DEFAULT '' COMMENT '品号',
  42. `sku_name` varchar(50) DEFAULT '' COMMENT '品名',
  43. `sku_spec` varchar(50) DEFAULT '' COMMENT '规格',
  44. `price_tax` decimal(15,3) DEFAULT NULL COMMENT '含税单价',
  45. `quantity` decimal(15,3) DEFAULT NULL COMMENT '数量',
  46. `receivable_date` datetime DEFAULT NULL COMMENT '应收日期',
  47. `contacts` varchar(50) DEFAULT '' COMMENT '联系人',
  48. `contact_information` varchar(100) DEFAULT '' COMMENT '联系方式',
  49. `salesman_assistant` varchar(100) DEFAULT '' COMMENT '业务助理',
  50. `salesman` varchar(100) DEFAULT '' COMMENT '业务员',
  51. `salesman_boss` varchar(100) DEFAULT '' COMMENT '业务主管',
  52. `work_no` varchar(100) DEFAULT '' COMMENT '工单单号',
  53. `overdue_days` varchar(50) DEFAULT '' COMMENT '逾期天数',
  54. `tenantsid` bigint(20) DEFAULT NULL COMMENT '租户sid',
  55. `tenant_id` varchar(20) DEFAULT NULL,
  56. `create_by` varchar(50) DEFAULT NULL,
  57. `create_date` datetime DEFAULT NULL,
  58. `modified_by` varchar(50) DEFAULT NULL,
  59. `modified_date` datetime DEFAULT NULL,
  60. `version` int(11) DEFAULT NULL,
  61. `deleted` tinyint(255) DEFAULT NULL,
  62. PRIMARY KEY (`id`)
  63. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  64. CREATE TABLE `cim_collection_detail` (
  65. `id` bigint(20) NOT NULL,
  66. `receivable_no` varchar(100) DEFAULT '' COMMENT '应收单号',
  67. `receivable_non` varchar(100) DEFAULT '' COMMENT '应收单序号',
  68. `customer_no` varchar(100) DEFAULT '' COMMENT '客户编号',
  69. `customer_name` varchar(100) DEFAULT '' COMMENT '客户名称',
  70. `status` varchar(1) DEFAULT '' COMMENT '状态',
  71. `sales_order` varchar(32) DEFAULT '' COMMENT '销售单号',
  72. `sales_order_number` varchar(32) DEFAULT '' COMMENT '销售单序号',
  73. `contract_no` varchar(100) DEFAULT '' COMMENT '合同编号',
  74. `amount_tax` decimal(15,3) DEFAULT NULL COMMENT '含税金额',
  75. `sku_code` varchar(50) DEFAULT '' COMMENT '品号',
  76. `sku_name` varchar(50) DEFAULT '' COMMENT '品名',
  77. `sku_spec` varchar(50) DEFAULT '' COMMENT '规格',
  78. `price_tax` decimal(15,3) DEFAULT NULL COMMENT '含税单价',
  79. `quantity` decimal(15,3) DEFAULT NULL COMMENT '数量',
  80. `receivable_date` datetime DEFAULT NULL COMMENT '应收日期',
  81. `contacts` varchar(50) DEFAULT '' COMMENT '联系人',
  82. `contact_information` varchar(100) DEFAULT '' COMMENT '联系方式',
  83. `salesman_assistant` varchar(100) DEFAULT '' COMMENT '业务助理',
  84. `salesman` varchar(100) DEFAULT '' COMMENT '业务员',
  85. `salesman_boss` varchar(100) DEFAULT '' COMMENT '业务主管',
  86. `work_no` varchar(100) DEFAULT '' COMMENT '工单单号',
  87. `overdue_days` varchar(50) DEFAULT '' COMMENT '逾期天数',
  88. `tenantsid` bigint(20) DEFAULT NULL COMMENT '租户sid',
  89. `tenant_id` varchar(20) DEFAULT NULL,
  90. `create_by` varchar(50) DEFAULT NULL,
  91. `create_date` datetime DEFAULT NULL,
  92. `modified_by` varchar(50) DEFAULT NULL,
  93. `modified_date` datetime DEFAULT NULL,
  94. `version` int(11) DEFAULT NULL,
  95. `deleted` tinyint(255) DEFAULT NULL,
  96. PRIMARY KEY (`id`)
  97. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  98. CREATE TABLE `cim_limit_credit` (
  99. `id` bigint(20) NOT NULL,
  100. `customer_no` varchar(100) DEFAULT '' COMMENT '客户编号',
  101. `customer_name` varchar(100) DEFAULT '' COMMENT '客户名称',
  102. `limit_amount` decimal(15,3) DEFAULT NULL COMMENT '信用额度',
  103. `tenantsid` bigint(20) DEFAULT NULL COMMENT '租户sid',
  104. `tenant_id` varchar(20) DEFAULT NULL,
  105. `create_by` varchar(50) DEFAULT NULL,
  106. `create_date` datetime DEFAULT NULL,
  107. `modified_by` varchar(50) DEFAULT NULL,
  108. `modified_date` datetime DEFAULT NULL,
  109. `version` int(11) DEFAULT NULL,
  110. `deleted` tinyint(255) DEFAULT NULL,
  111. PRIMARY KEY (`id`)
  112. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  113. -- 修改问题明细长度
  114. ALTER TABLE `cim_chat_file` MODIFY COLUMN `question` varchar (500);
  115. -- 催收表新增处理人
  116. alter table cim_collection_detail Add column processed_by varchar(32) null default '' COMMENT '处理人';