install.sql 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_archive` (
  2. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  3. `model` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备型号',
  4. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备名称',
  5. `parameter` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '设备参数',
  6. `amount` smallint(6) NOT NULL DEFAULT 0 COMMENT '设备数量',
  7. `supplier_id` bigint(20) NULL DEFAULT 0 COMMENT '供应商',
  8. `purchasetime` bigint(16) NULL DEFAULT 0 COMMENT '购置日期',
  9. `region` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '所在区域',
  10. `responsible_uid` bigint(20) NULL DEFAULT 0 COMMENT '负责人',
  11. `document` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '设备文档',
  12. `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '备注',
  13. `status` enum('normal','hidden') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal' COMMENT '状态',
  14. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  15. `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间',
  16. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  17. PRIMARY KEY (`id`) USING BTREE
  18. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '设备档案表';
  19. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_equipment` (
  20. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  21. `archive_id` bigint(20) NULL DEFAULT 0 COMMENT '设备档案ID',
  22. `coding` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '唯一编码',
  23. `equipment_code` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备编号',
  24. `work_status` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal' COMMENT '设备状态',
  25. `status` enum('normal','hidden') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal' COMMENT '状态',
  26. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  27. `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间',
  28. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  29. PRIMARY KEY (`id`) USING BTREE
  30. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '设备明细表';
  31. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_supplier` (
  32. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  33. `supplier_code` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '供应商编号',
  34. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '供应商名称',
  35. `relationship` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '合作关系',
  36. `bank` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '开户银行',
  37. `bank_account` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '银行账号',
  38. `contact` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '联系人',
  39. `contact_mobile` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '联系电话',
  40. `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '备注',
  41. `status` enum('normal','hidden') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal' COMMENT '状态',
  42. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  43. `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间',
  44. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  45. PRIMARY KEY (`id`) USING BTREE
  46. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '供应商管理表';
  47. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_repair` (
  48. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  49. `archive_id` bigint(20) UNSIGNED NOT NULL COMMENT '档案ID',
  50. `equipment_id` bigint(20) UNSIGNED NOT NULL COMMENT '设备ID',
  51. `register_uid` bigint(20) NULL DEFAULT 0 COMMENT '报修人员',
  52. `registertime` bigint(16) NULL DEFAULT 0 COMMENT '报修日期',
  53. `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '报修登记',
  54. `register_image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '报修配图',
  55. `repair_uid` bigint(20) NULL DEFAULT 0 COMMENT '维修人员',
  56. `repairtime` bigint(16) NULL DEFAULT 0 COMMENT '维修日期',
  57. `repair_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '维修登记',
  58. `repair_image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '维修配图',
  59. `failure_cause_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '故障原因ID',
  60. `consuming` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '维修耗时',
  61. `status` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '维修状态',
  62. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  63. `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间',
  64. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  65. PRIMARY KEY (`id`) USING BTREE
  66. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '设备维修表';
  67. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_department` (
  68. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  69. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '部门名称',
  70. `equipment_manage` tinyint(1) NOT NULL DEFAULT 0 COMMENT '设备管理权限',
  71. `status` enum('normal','hidden') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal' COMMENT '状态',
  72. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  73. `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间',
  74. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  75. PRIMARY KEY (`id`) USING BTREE
  76. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '部门管理表';
  77. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_staff` (
  78. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  79. `user_id` bigint(20) NULL DEFAULT 0 COMMENT '用户ID',
  80. `department_id` bigint(20) NULL DEFAULT 0 COMMENT '部门ID',
  81. `workno` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '工号',
  82. `position` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '职位',
  83. `openid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT 'OPENID',
  84. `status` enum('normal','hidden') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal' COMMENT '状态',
  85. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  86. `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间',
  87. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  88. PRIMARY KEY (`id`) USING BTREE
  89. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '员工管理表';
  90. -- ----------------------------
  91. -- 2.0.0 BEGIN
  92. -- ----------------------------
  93. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_plan` (
  94. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  95. `coding` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '唯一编码',
  96. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '计划名称',
  97. `type` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '计划类型',
  98. `periodicity` bigint(16) UNSIGNED NOT NULL DEFAULT 1 COMMENT '计划周期',
  99. `first_duetime` bigint(16) DEFAULT NULL COMMENT '首次执行日期',
  100. `last_duetime` bigint(16) DEFAULT NULL COMMENT '计划结束日期',
  101. `status` enum('normal','hidden') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal' COMMENT '状态',
  102. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  103. `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间',
  104. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  105. PRIMARY KEY (`id`) USING BTREE
  106. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '设备计划表';
  107. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_plan_archive` (
  108. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  109. `plan_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '计划ID',
  110. `archive_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '档案ID',
  111. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  112. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  113. PRIMARY KEY (`id`) USING BTREE
  114. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '设备计划设备关联表';
  115. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_plan_field` (
  116. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  117. `plan_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '计划ID',
  118. `label` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字段名称',
  119. `name` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字段命名',
  120. `type` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字段类型',
  121. `default` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '默认值',
  122. `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '选项',
  123. `attributes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '属性',
  124. `require` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否必填',
  125. `sort` tinyint(2) NOT NULL DEFAULT 99 COMMENT '排序',
  126. `status` enum('normal','hidden') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal' COMMENT '状态',
  127. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  128. `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间',
  129. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  130. PRIMARY KEY (`id`) USING BTREE
  131. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '设备计划字段表';
  132. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_plan_task` (
  133. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  134. `coding` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '唯一编码',
  135. `plan_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '计划ID',
  136. `equipment_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '设备ID',
  137. `task_uid` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '处理人ID',
  138. `status` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending' COMMENT '状态',
  139. `starttime` bigint(16) DEFAULT NULL COMMENT '开始时间',
  140. `duetime` bigint(16) DEFAULT NULL COMMENT '到期时间',
  141. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  142. `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间',
  143. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  144. PRIMARY KEY (`id`) USING BTREE
  145. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '设备计划任务表';
  146. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_plan_user` (
  147. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  148. `plan_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '计划ID',
  149. `user_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户ID',
  150. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  151. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  152. PRIMARY KEY (`id`) USING BTREE
  153. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '设备计划用户关联表';
  154. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_record` (
  155. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  156. `equipment_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '设备ID',
  157. `relate_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关联ID',
  158. `add_uid` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加用户ID',
  159. `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '记录名称',
  160. `type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '记录类型',
  161. `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '记录内容',
  162. `status` enum('normal','hidden') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal' COMMENT '状态',
  163. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  164. `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间',
  165. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  166. PRIMARY KEY (`id`) USING BTREE
  167. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '设备记录表';
  168. -- 【设备档案表】添加'设备参数'字段parameter
  169. ALTER TABLE `__PREFIX__equipment_archive` ADD COLUMN `parameter` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '设备参数' AFTER `name`;
  170. -- ----------------------------
  171. -- 2.0.0 END
  172. -- ----------------------------
  173. -- ----------------------------
  174. -- 2.2.0 BEGIN
  175. -- ----------------------------
  176. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_failure_cause` (
  177. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  178. `name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '故障原因',
  179. `status` enum('normal','hidden') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal' COMMENT '状态',
  180. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  181. `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间',
  182. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  183. PRIMARY KEY (`id`) USING BTREE
  184. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '设备故障原因表';
  185. -- 【设备维修表】添加'故障原因ID'字段failure_cause_id;'维修耗时'字段consuming
  186. ALTER TABLE `__PREFIX__equipment_repair` ADD COLUMN `failure_cause_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '故障原因ID' AFTER `repair_image`;
  187. ALTER TABLE `__PREFIX__equipment_repair` ADD COLUMN `consuming` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '维修耗时' AFTER `failure_cause_id`;
  188. -- ----------------------------
  189. -- 2.2.0 END
  190. -- ----------------------------
  191. -- ----------------------------
  192. -- 2.3.0 BEGIN
  193. -- ----------------------------
  194. -- 【部门管理表】添加'设备管理权限'字段equipment_manage
  195. ALTER TABLE `__PREFIX__equipment_department` ADD COLUMN `equipment_manage` tinyint(1) NOT NULL DEFAULT 0 COMMENT '设备管理权限' AFTER `name`;
  196. -- ----------------------------
  197. -- 2.3.0 END
  198. -- ----------------------------
  199. -- ----------------------------
  200. -- 2.5.0 BEGIN
  201. -- ----------------------------
  202. CREATE TABLE IF NOT EXISTS `__PREFIX__equipment_reminder_users` (
  203. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  204. `staff_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '员工ID',
  205. `type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '类型',
  206. `status` enum('normal','hidden') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal' COMMENT '状态',
  207. `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间',
  208. `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间',
  209. `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间',
  210. PRIMARY KEY (`id`) USING BTREE
  211. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '提醒人员表';
  212. -- 【维修工单表】添加'工单编号'字段repair_code
  213. ALTER TABLE `__PREFIX__equipment_repair` ADD COLUMN `repair_code` varchar(20) NULL DEFAULT '' COMMENT '工单编号' AFTER `id`;
  214. ALTER TABLE `__PREFIX__equipment_repair` ADD COLUMN `assigntime` bigint(16) NULL DEFAULT 0 COMMENT '派单时间' AFTER `repair_uid`;
  215. -- ----------------------------
  216. -- 2.5.0 END
  217. -- ----------------------------