archives_utilization.sql 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. Navicat MariaDB Data Transfer
  3. Source Server : archives
  4. Source Server Version : 100032
  5. Source Host : 192.168.1.124:3307
  6. Source Database : archives_utilization
  7. Target Server Type : MariaDB
  8. Target Server Version : 100032
  9. File Encoding : 65001
  10. Date: 2018-02-02 16:30:10
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for utilization_apply
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `utilization_apply`;
  17. CREATE TABLE `utilization_apply` (
  18. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  19. `enable` tinyint(4) DEFAULT NULL,
  20. `remark` varchar(1024) DEFAULT NULL,
  21. `create_time` datetime DEFAULT NULL,
  22. `create_by` varchar(20) DEFAULT NULL,
  23. `update_time` datetime DEFAULT NULL,
  24. `update_by` varchar(20) DEFAULT NULL,
  25. `property` varchar(50) NOT NULL,
  26. `name` varchar(50) NOT NULL,
  27. `phone` varchar(20) DEFAULT NULL,
  28. `idcard_number` varchar(50) DEFAULT NULL,
  29. `credentials_file` varchar(255) NOT NULL,
  30. `company_name` varchar(255) DEFAULT NULL,
  31. `archives_name` varchar(255) NOT NULL,
  32. `apply_time` datetime NOT NULL,
  33. `apply_purpose` varchar(255) NOT NULL,
  34. PRIMARY KEY (`id`)
  35. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  36. -- ----------------------------
  37. -- Table structure for utilization_audit
  38. -- ----------------------------
  39. DROP TABLE IF EXISTS `utilization_audit`;
  40. CREATE TABLE `utilization_audit` (
  41. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  42. `enable` tinyint(4) DEFAULT NULL,
  43. `remark` varchar(1024) DEFAULT NULL,
  44. `create_time` datetime DEFAULT NULL,
  45. `create_by` varchar(20) DEFAULT NULL,
  46. `update_time` datetime DEFAULT NULL,
  47. `update_by` varchar(20) DEFAULT NULL,
  48. `name` varchar(50) NOT NULL,
  49. `position` varchar(50) DEFAULT NULL,
  50. `result` varchar(50) DEFAULT NULL,
  51. `time` datetime NOT NULL,
  52. PRIMARY KEY (`id`)
  53. -- CONSTRAINT `utilization_audit_ibfk_1` FOREIGN KEY (`id`) REFERENCES `utilization_apply` (`id`)
  54. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  55. -- ----------------------------
  56. -- Table structure for utilization_borrow
  57. -- ----------------------------
  58. DROP TABLE IF EXISTS `utilization_borrow`;
  59. CREATE TABLE `utilization_borrow` (
  60. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  61. `enable` tinyint(4) DEFAULT NULL,
  62. `remark` varchar(1024) DEFAULT NULL,
  63. `create_time` datetime DEFAULT NULL,
  64. `create_by` varchar(20) DEFAULT NULL,
  65. `update_time` datetime DEFAULT NULL,
  66. `update_by` varchar(20) DEFAULT NULL,
  67. `borrow_time` datetime NOT NULL,
  68. `duration` varchar(50) DEFAULT NULL,
  69. `deadline` datetime DEFAULT NULL,
  70. `status` varchar(50) DEFAULT NULL,
  71. PRIMARY KEY (`id`)
  72. -- CONSTRAINT `utilization_borrow_ibfk_1` FOREIGN KEY (`id`) REFERENCES `utilization_apply` (`id`)
  73. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  74. -- ----------------------------
  75. -- Table structure for utilization_evaluation
  76. -- ----------------------------
  77. DROP TABLE IF EXISTS `utilization_evaluation`;
  78. CREATE TABLE `utilization_evaluation` (
  79. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  80. `enable` tinyint(4) DEFAULT NULL,
  81. `remark` varchar(1024) DEFAULT NULL,
  82. `create_time` datetime DEFAULT NULL,
  83. `create_by` varchar(20) DEFAULT NULL,
  84. `update_time` datetime DEFAULT NULL,
  85. `update_by` varchar(20) DEFAULT NULL,
  86. `evaluate_score` varchar(10) NOT NULL,
  87. `evaluate_content` varchar(255) DEFAULT NULL,
  88. `evaluate_time` datetime NOT NULL,
  89. PRIMARY KEY (`id`)
  90. -- CONSTRAINT `utilization_evaluation_ibfk_1` FOREIGN KEY (`id`) REFERENCES `utilization_borrow` (`id`)
  91. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  92. -- ----------------------------
  93. -- Table structure for utilization_remind
  94. -- ----------------------------
  95. DROP TABLE IF EXISTS `utilization_remind`;
  96. CREATE TABLE `utilization_remind` (
  97. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  98. `enable` tinyint(4) DEFAULT NULL,
  99. `remark` varchar(1024) DEFAULT NULL,
  100. `create_time` datetime DEFAULT NULL,
  101. `create_by` varchar(20) DEFAULT NULL,
  102. `update_time` datetime DEFAULT NULL,
  103. `update_by` varchar(20) DEFAULT NULL,
  104. `extra_time` datetime DEFAULT NULL,
  105. `remind` varchar(50) NOT NULL,
  106. PRIMARY KEY (`id`)
  107. -- CONSTRAINT `utilization_remind_ibfk_1` FOREIGN KEY (`id`) REFERENCES `utilization_borrow` (`id`)
  108. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  109. -- ----------------------------
  110. -- Table structure for utilization_rules
  111. -- ----------------------------
  112. DROP TABLE IF EXISTS `utilization_rules`;
  113. CREATE TABLE `utilization_rules` (
  114. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  115. `enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '逻辑删标识,0表示删除',
  116. `remark` varchar(1024) DEFAULT NULL COMMENT '备注',
  117. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  118. `create_by` varchar(20) DEFAULT NULL COMMENT '创建人',
  119. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  120. `update_by` varchar(20) DEFAULT NULL COMMENT '更新人',
  121. `borrow_time` datetime DEFAULT NULL,
  122. PRIMARY KEY (`id`)
  123. ) ENGINE=InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET=utf8;