代理企业及电子放行条.sql 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. SET FOREIGN_KEY_CHECKS=0;
  2. CREATE TABLE `tb_goods_config` (
  3. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id' ,
  4. `orgId` int(11) NULL DEFAULT NULL COMMENT '项目Id' ,
  5. `type` int(11) NULL DEFAULT NULL COMMENT '1 企业审核 2物业审核' ,
  6. `roleId` int(11) NULL DEFAULT NULL COMMENT '角色Id' ,
  7. `sort` int(11) NULL DEFAULT NULL COMMENT '排序' ,
  8. PRIMARY KEY (`id`)
  9. )
  10. ENGINE=InnoDB
  11. DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
  12. ROW_FORMAT=Dynamic
  13. ;
  14. ALTER TABLE `tb_goods_release` ADD COLUMN `type` int(11) NULL DEFAULT NULL COMMENT '审批类型' AFTER `userId`;
  15. ALTER TABLE `tb_goods_release` ADD COLUMN `roleId` int(11) NULL DEFAULT NULL COMMENT '审批角色' AFTER `type`;
  16. ALTER TABLE `tb_goods_release` ADD COLUMN `sort` int(11) NULL DEFAULT NULL COMMENT '审批排序' AFTER `roleId`;
  17. CREATE TABLE `tb_servicetypeinfo_child` (
  18. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '服务二级id' ,
  19. `service_id` int(11) NULL DEFAULT NULL COMMENT '服务Id' ,
  20. `child_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '服务二级权限' ,
  21. `code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编号' ,
  22. PRIMARY KEY (`id`)
  23. )
  24. ENGINE=InnoDB
  25. DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
  26. ROW_FORMAT=Dynamic
  27. ;
  28. ALTER TABLE `tb_virtualarchitecture` ADD COLUMN `level` int(2) NULL DEFAULT 1 COMMENT '1.普通 2.代理' AFTER `meal_card`;
  29. CREATE TABLE `tb_virtualarchitecture_agent` (
  30. `pd` bigint(11) NOT NULL AUTO_INCREMENT ,
  31. `id` int(11) NOT NULL COMMENT '企业id' ,
  32. `agent_id` int(11) NOT NULL COMMENT '代理企业id' ,
  33. PRIMARY KEY (`pd`)
  34. )
  35. ENGINE=InnoDB
  36. DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
  37. ROW_FORMAT=Dynamic
  38. ;
  39. CREATE TABLE `tb_virtualarchitecture_range` (
  40. `pd` bigint(11) NOT NULL AUTO_INCREMENT ,
  41. `id` int(11) NOT NULL COMMENT '企业id' ,
  42. `room_id` int(11) NOT NULL COMMENT '房间号id' ,
  43. `floor_id` int(11) NULL DEFAULT NULL COMMENT '楼层Id' ,
  44. `build_id` int(11) NULL DEFAULT NULL COMMENT '楼栋Id' ,
  45. PRIMARY KEY (`pd`)
  46. )
  47. ENGINE=InnoDB
  48. DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
  49. ROW_FORMAT=Dynamic
  50. ;
  51. ALTER TABLE `tb_vir_perm_config` ADD COLUMN `checkRole` int(11) NULL DEFAULT 0 COMMENT '审核放行员 0不是 1是' AFTER `virId`;
  52. CREATE TABLE `tr_vir_service_child` (
  53. `id` bigint(20) NOT NULL AUTO_INCREMENT ,
  54. `virPermId` int(11) NULL DEFAULT NULL COMMENT '企业权限类型ID' ,
  55. `serviceChildId` int(11) NULL DEFAULT NULL COMMENT '服务功能二级ID' ,
  56. PRIMARY KEY (`id`)
  57. )
  58. ENGINE=InnoDB
  59. DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
  60. ROW_FORMAT=Dynamic;
  61. SET FOREIGN_KEY_CHECKS=1;
  62. INSERT INTO `tb_servicetypeinfo_child` (`id`, `service_id`, `child_name`, `code`) VALUES ('1', '111', '审核', '1000');