56 lines
1.3 KiB
PHP
56 lines
1.3 KiB
PHP
<?php
|
||
|
||
namespace app\models;
|
||
|
||
use Yii;
|
||
|
||
/**
|
||
* This is the model class for table "cx_qrcode_record".
|
||
*
|
||
* @property string $unionid 球车或场地id
|
||
* @property string $data 数据
|
||
* @property int $type 类型,1.场地码,2.球车码
|
||
* @property int $created_at 创建实际
|
||
* @property int $is_delete
|
||
* @property int $deleted_at
|
||
*/
|
||
class QrcodeRecord extends \yii\db\ActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return 'cx_qrcode_record';
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['unionid', 'data', 'type', 'created_at', 'is_delete', 'deleted_at'], 'required'],
|
||
[['type', 'created_at', 'is_delete', 'deleted_at'], 'integer'],
|
||
[['data'], 'string'],
|
||
[['unionid'], 'string', 'max' => 255],
|
||
[['id'], 'unique'],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'unionid' => 'Unionid',
|
||
'data' => 'Data',
|
||
'type' => 'Type',
|
||
'created_at' => 'Created At',
|
||
'is_delete' => 'Is Delete',
|
||
'deleted_at' => 'Deleted At',
|
||
];
|
||
}
|
||
}
|