company_device 1.2 KB

1234567891011121314151617181920
  1. <?php return array (
  2. 'time' => 1449933624,
  3. 'table' => 'company_device',
  4. 'create' => 'DROP TABLE IF EXISTS `company_device`;CREATE TABLE `company_device`(`id` INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL COMMENT \'ID\',`park_id` INT(11) NOT NULL DEFAULT \'-1\' COMMENT \'所属园区\',`device` VARCHAR(80) NOT NULL DEFAULT \'\' COMMENT \'设备ID\',`name` VARCHAR(32) NOT NULL DEFAULT \'\' COMMENT \'设备名\',`type` TINYINT(1) NOT NULL DEFAULT \'1\' COMMENT \'设备类型\',`system_id` INT(11) NOT NULL DEFAULT \'1\' COMMENT \'通讯码设备\',`server_id` INT(11) NOT NULL DEFAULT \'1\' COMMENT \'通讯服务器\',`sdate` INT(11) NOT NULL DEFAULT 0 COMMENT \'应用日期\',`info` VARCHAR(100) 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' => 2,
  10. 'name' => 3,
  11. 'type' => 4,
  12. 'system_id' => 5,
  13. 'server_id' => 6,
  14. 'sdate' => 7,
  15. 'info' => 8,
  16. 'reorder' => 9,
  17. 'state' => 10,
  18. 'cdate' => 11,
  19. ),
  20. );