You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.6 KiB
51 lines
2.6 KiB
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Dcat\Admin\Traits\HasDateTimeFormatter;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* App\Models\Equip
|
|
*
|
|
* @property int $id
|
|
* @property string $title 设备名称
|
|
* @property string $desc 设备描述
|
|
* @property string $tags 设备标签,字符串数组
|
|
* @property string $protocol 接入协议,这里只能是LwM2M
|
|
* @property mixed $location 设备位置(“纬度”,“经度”,“高度”)
|
|
* @property int $private 设备私密性(默认true)
|
|
* @property mixed $auth_info NBIOT设备:{“imei码”:“imsi码”},imei、imsi规则见说明
|
|
* @property string $auth Auth_Code,由数字或字母组成,不超过16位
|
|
* @property int $obsv 是否订阅设备资源(默认为true)
|
|
* @property mixed $other 其他信息(JSON格式,可自定义)
|
|
* @property int $chip 测试设备与芯片类型对应关系(取值1-6),详情见说明
|
|
* @property string $psk DTLS加密所使用的PSK,长度8-16个字节,字母或数字组成
|
|
* @property \Illuminate\Support\Carbon|null $created_at
|
|
* @property \Illuminate\Support\Carbon|null $updated_at
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereAuth($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereAuthInfo($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereChip($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereDesc($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereLocation($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereObsv($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereOther($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip wherePrivate($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereProtocol($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip wherePsk($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereTags($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereTitle($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Equip whereUpdatedAt($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class Equip extends Model
|
|
{
|
|
use HasDateTimeFormatter;
|
|
protected $table = 'equips';
|
|
}
|
|
|