52 lines
1.1 KiB
PHP
52 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace app\models;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "cx_device_unique_config".
|
|
*
|
|
* @property int $id
|
|
* @property int $user_id 用户ID
|
|
* @property string|null $config 用户配置
|
|
* @property int $created_at 添加时间
|
|
* @property int $updated_at 修改时间
|
|
*/
|
|
class DeviceUniqueConfig extends \yii\db\ActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'cx_device_unique_config';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['user_id', 'created_at', 'updated_at'], 'integer'],
|
|
[['config'], 'string'],
|
|
[['created_at'], 'required'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'user_id' => 'User ID',
|
|
'config' => 'Config',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|