| Current Path : /var/www/html/helpdesk/models/ |
| Current File : /var/www/html/helpdesk/models/Messages.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "messages".
*
* @property int $id
* @property int $ticket_id
* @property int $user_id
* @property string $msg
* @property string $send_at
*/
class Messages extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'messages';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['ticket_id', 'user_id'], 'integer'],
[['msg'], 'string'],
[['send_at'], 'safe'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'ticket_id' => 'Ticket ID',
'user_id' => 'User ID',
'msg' => 'Msg',
'send_at' => 'Send At',
];
}
}