| Current Path : /var/www/html/ebookingdbkl/console/models/ |
| Current File : /var/www/html/ebookingdbkl/console/models/TimeTriggerEvent.php |
<?php
namespace console\models;
use Yii;
/**
* This is the model class for table "time_trigger_event".
*
* @property int $event_id
* @property string|null $name
* @property string|null $path
* @property string $start
* @property string|null $end
* @property int|null $status
* @property string|null $errors
*/
class TimeTriggerEvent extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'time_trigger_event';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['start', 'end'], 'safe'],
[['status'], 'integer'],
[['name', 'path', 'errors'], 'string', 'max' => 500],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'event_id' => Yii::t('app', 'Event ID'),
'name' => Yii::t('app', 'Name'),
'path' => Yii::t('app', 'Path'),
'start' => Yii::t('app', 'Start'),
'end' => Yii::t('app', 'End'),
'status' => Yii::t('app', 'Status'),
'errors' => Yii::t('app', 'Errors'),
];
}
}