v0001_pasture_mqtt.sql 1.1 KB

1234567891011121314151617181920
  1. CREATE TABLE `sub_msg_log` (
  2. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键Id自增',
  3. `soft_ver` int(11) unsigned NOT NULL COMMENT '版本号',
  4. `uuid` varchar(255) NOT NULL COMMENT 'uuid',
  5. `frame_id` bigint(20) unsigned NOT NULL COMMENT '牧场Id',
  6. `cow_id` varchar(255) NOT NULL COMMENT '牛号',
  7. `csq` int(11) unsigned NOT NULL,
  8. `temp` int(11) unsigned NOT NULL COMMENT '体温',
  9. `imei` varchar(255) NOT NULL COMMENT '设备号',
  10. `active` int(11) unsigned NOT NULL,
  11. `in_active` int(11) unsigned NOT NULL COMMENT '静止时间',
  12. `re_main` int(11) unsigned NOT NULL COMMENT '脖环存储数据剩余量',
  13. `intake` int(11) unsigned NOT NULL COMMENT '采食时间',
  14. `gasp` int(11) unsigned NOT NULL,
  15. `other` int(11) unsigned NOT NULL COMMENT '其他时间',
  16. `ru_mina` int(11) unsigned NOT NULL COMMENT '反刍时间',
  17. `created_at` bigint(20) unsigned NOT NULL COMMENT '创建时间',
  18. `updated_at` bigint(20) unsigned NOT NULL COMMENT '更新时间',
  19. PRIMARY KEY (`id`)
  20. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='脖环数据日志'