123456789101112131415161718 |
- <?php
- namespace App\Model;
- use Illuminate\Database\Eloquent\Model;
- class DeviceData extends Model
- {
- protected $table = "device_data"; //指定表
- const CREATED_AT = 'crt_time';
- const UPDATED_AT = 'upd_time';
- protected $dateFormat = 'U';
- const type_one = 1; //温度传感器
- const type_two = 2; //压力传感器
- const type_three = 3; //有人云设备数据
- const type_four = 4; //温度湿度传感器
- }
|