| Current Path : /var/www/html/protegev2/frontend/models/chat/ |
| Current File : /var/www/html/protegev2/frontend/models/chat/ChatSuggestion.php |
<?php
namespace frontend\models\chat;
use Yii;
/**
* This is the model class for table "chat_suggestion".
*
* @property int $suggestion_id
* @property string $suggestion_description
* @property string $suggestion_status A=Active, X=Not Active
* @property string $create_dttm
*/
class ChatSuggestion extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'chat_suggestion';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['suggestion_description'], 'string'],
[['create_dttm'], 'safe'],
[['suggestion_status'], 'string', 'max' => 3],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'suggestion_id' => Yii::t('app', 'Suggestion ID'),
'suggestion_description' => Yii::t('app', 'Suggestion Description'),
'suggestion_status' => Yii::t('app', 'Suggestion Status'),
'create_dttm' => Yii::t('app', 'Create Dttm'),
];
}
}