重新初始化环境的房间和楼层.sql 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '1', SYSDATE(), '454', 1);
  2. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '2', SYSDATE(), '454', 1);
  3. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '3', SYSDATE(), '454', 0);
  4. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '4', SYSDATE(), '454', 1);
  5. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '5', SYSDATE(), '454', 1);
  6. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '6', SYSDATE(), '454', 1);
  7. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '7', SYSDATE(), '454', 0);
  8. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '8', SYSDATE(), '454', 0);
  9. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '9', SYSDATE(), '454', 1);
  10. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '10', SYSDATE(), '454', 1);
  11. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '12', SYSDATE(), '454', 1);
  12. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '11', SYSDATE(), '454', 1);
  13. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '13', SYSDATE(), '454', 1);
  14. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '14', SYSDATE(), '454', 1);
  15. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '15', SYSDATE(), '454', 1);
  16. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '16', SYSDATE(), '454', 1);
  17. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '17', SYSDATE(), '454', 1);
  18. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '18', SYSDATE(), '454', 1);
  19. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '19', SYSDATE(), '454', 1);
  20. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '20', SYSDATE(), '454', 1);
  21. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '21', SYSDATE(), '454', 1);
  22. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '22', SYSDATE(), '454', 1);
  23. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '23', SYSDATE(), '454', 1);
  24. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '24', SYSDATE(), '454', 1);
  25. INSERT INTO tb_floor(organizationId,name,createTime,creator,isEnabled) VALUES (10, '25', SYSDATE(), '454', 1);
  26. CREATE TABLE `tb_floor` (
  27. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  28. `organizationId` int(11) DEFAULT NULL COMMENT '楼宇',
  29. `name` varchar(20) DEFAULT '' COMMENT '楼层号',
  30. `createTime` datetime DEFAULT NULL COMMENT '创建时间',
  31. `creator` varchar(20) DEFAULT '' COMMENT '创建人',
  32. `modifier` varchar(20) DEFAULT '' COMMENT '修改人',
  33. `modifyTime` datetime DEFAULT NULL COMMENT '修改时间',
  34. `isEnabled` int(11) DEFAULT '1',
  35. PRIMARY KEY (`id`)
  36. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='楼层';
  37. CREATE TABLE `tb_roomno` (
  38. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  39. `floorId` int(11) DEFAULT NULL COMMENT '楼层Id',
  40. `name` varchar(20) DEFAULT '' COMMENT '房间号',
  41. `createTime` datetime DEFAULT NULL COMMENT '创建时间',
  42. `creator` varchar(20) DEFAULT '' COMMENT '创建人',
  43. `modifier` varchar(20) DEFAULT '' COMMENT '修改人',
  44. `modifyTime` datetime DEFAULT NULL COMMENT '修改时间',
  45. `isEnabled` int(11) DEFAULT '1',
  46. PRIMARY KEY (`id`)
  47. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='房间';