cxfoot/models/DeviceUniqueData.php
2023-10-27 14:25:12 +08:00

60 lines
1.6 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "cx_device_unique_data".
*
* @property int $id
* @property int $bind_id 设备绑定id
* @property string $data 数据
* @property int $created_at 创建时间
* @property int $is_delete 是否删除1删除0没有删除
* @property int $deleted_at 删除时间
* @property int $uid 用户id
* @property int $pole_type 球杆类型,木杆或者铁杆,使用英文
* @property int $pole_class 球杆种类各种类型仅2个字符
* @property int $pole_class_all 球杆种类,各种型号,所有
*/
class DeviceUniqueData extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'cx_device_unique_data';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['bind_id', 'data', 'created_at', 'is_delete', 'deleted_at', 'uid'], 'required'],
[['bind_id', 'created_at', 'is_delete', 'deleted_at', 'uid'], 'integer'],
[['data','pole_type','pole_class','pole_class_all'], 'string'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'bind_id' => '设备绑定id',
'data' => '数据',
'created_at' => '创建时间',
'is_delete' => '是否删除1删除0没有删除',
'deleted_at' => '删除时间',
'uid' => '用户id',
];
}
}