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

56 lines
1.3 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_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',
];
}
}