company_device_data 1.3 KB

12345678910111213141516171819202122
  1. <?php return array (
  2. 'time' => 1449934220,
  3. 'table' => 'company_device_data',
  4. 'create' => 'DROP TABLE IF EXISTS `company_device_data`;CREATE TABLE `company_device_data`(`id` INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL COMMENT \'ID\',`park_id` INT(11) NOT NULL DEFAULT \'-1\' COMMENT \'园区ID\',`device_id` INT(11) NOT NULL DEFAULT 0 COMMENT \'设备ID\',`system_id` INT(11) NOT NULL DEFAULT 0 COMMENT \'系统ID\',`name` VARCHAR(32) NOT NULL DEFAULT \'\' COMMENT \'名称\',`code_id` INT(11) NOT NULL DEFAULT 0 COMMENT \'命令码ID\',`key` INT(11) NOT NULL DEFAULT 0 COMMENT \'命令码索引值\',`value` TEXT(255) COMMENT \'当前记录值\',`dw` VARCHAR(100) NOT NULL DEFAULT \'\' COMMENT \'单位\',`receive` VARCHAR(255) NOT NULL DEFAULT \'\' COMMENT \'接收到的指令\',`reorder` INT(11) NOT NULL DEFAULT \'1\' COMMENT \'排序-数值越大越靠前\',`state` TINYINT(1) NOT NULL DEFAULT \'1\' COMMENT \'状态\',`cdate` INT(11) NOT NULL DEFAULT 0 COMMENT \'时间\')',
  5. 'struct' =>
  6. array (
  7. 'id' => 0,
  8. 'park_id' => 1,
  9. 'device_id' => 2,
  10. 'system_id' => 3,
  11. 'name' => 4,
  12. 'code_id' => 5,
  13. 'key' => 6,
  14. 'value' => 7,
  15. 'dw' => 8,
  16. 'receive' => 9,
  17. 'reorder' => 10,
  18. 'type' => 11,
  19. 'state' => 12,
  20. 'cdate' => 13,
  21. ),
  22. );