53 lines
1.1 KiB
PHP
53 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_inquiry_refuse_reason".
|
|
*
|
|
* @property int $id
|
|
* @property string $reason 拒绝原因
|
|
* @property string $reason_message 拒绝后消息内容
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
*/
|
|
class InquiryRefuseReason extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_inquiry_refuse_reason';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['reason'], 'required'],
|
|
[['created_at', 'updated_at'], 'integer'],
|
|
[['reason'], 'string', 'max' => 50],
|
|
[['reason_message'], 'string', 'max' => 255],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'reason' => 'Reason',
|
|
'reason_message' => 'Reason Message',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|