| Current Path : /var/www/html/dyna-hr/models/ |
| Current File : /var/www/html/dyna-hr/models/Schedule.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "schedule".
*
* @property int $id
* @property string $uuid
* @property string $name
* @property string $start_dt
* @property string $end_dt
* @property int $created_by
* @property string $created_dt
* @property int $updated_by
* @property string $updated_dt
*/
class Schedule extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'schedule';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['name', 'start_dt', 'end_dt'], 'required'],
[['start_dt', 'end_dt', 'created_dt', 'updated_dt', 'uuid'], 'safe'],
[['created_by', 'updated_by'], 'integer'],
[['name'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'uuid' => 'Uuid',
'name' => 'Name',
'start_dt' => 'Start Date',
'end_dt' => 'End Date',
'created_by' => 'Created By',
'created_dt' => 'Created Dt',
'updated_by' => 'Updated By',
'updated_dt' => 'Updated Dt',
];
}
}