Your IP : 216.73.216.79


Current Path : /var/www/html/dyna-hr/models/
Upload File :
Current File : /var/www/html/dyna-hr/models/ScheduleTime.php

<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "schedule_time".
 *
 * @property int $id
 * @property int $parent_id
 * @property int $user_id
 * @property string $day
 * @property string $start_time
 * @property string $end_time
 * @property int $opening_pic
 * @property int $closing_pic
 * @property string $remarks
 * @property int $rest_day
 * @property int $created_by
 * @property string $created_dt
 * @property int $updated_by
 * @property string $updated_dt
 */
class ScheduleTime extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'schedule_time';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['parent_id', 'user_id', 'opening_pic', 'closing_pic', 'rest_day', 'created_by', 'updated_by'], 'integer'],
            [['start_time', 'end_time', 'created_dt', 'updated_dt'], 'safe'],
            [['remarks'], 'string'],
            [['day'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'parent_id' => 'Parent ID',
            'user_id' => 'User ID',
            'day' => 'Day',
            'start_time' => 'Start Time',
            'end_time' => 'End Time',
            'opening_pic' => 'Opening Pic',
            'closing_pic' => 'Closing Pic',
            'remarks' => 'Remarks',
            'rest_day' => 'Rest Day',
            'created_by' => 'Created By',
            'created_dt' => 'Created Dt',
            'updated_by' => 'Updated By',
            'updated_dt' => 'Updated Dt',
        ];
    }
}