<?php

namespace modules\cors\models;


use Yii;
use yii\behaviors\BlameableBehavior;
use yii\behaviors\TimestampBehavior;

/**
 * This is the model class For table "vehicleservicing".
 *
 * @property string $id
 * @property integer $created_at
 * @property integer $updated_at
 * @property string $created_by
 * @property string $updated_by
 * @property string $deleted_by
 * @property integer $deleted_at
 * @property integer $deleted
 * @property string $actid
 * @property string $status
 * @property string $padno
 * @property integer $jobno
 * @property string $relatedid
 * @property string $description
 * @property integer $sequence
 * @property integer $mileage
 * @property integer $remindermileage
 * @property integer $date
 * @property integer $reminderdate
 */
class Vehicleservicingbe extends \common\models\Base {
	
    public $dates = ['created_at', 'updated_at', 'deleted_at', 'date', 'reminderdate'];
	public $uniqueidentifiers = ['actid', 'relatedid'];
    public $securefields = [];

    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'vehicleservicing';
    }

    /**
     * @inheritdoc
     */
    public function rules(): array
    {
        return [
            [['id', 'created_by', 'updated_by', 'deleted_by', 'actid', 'status', 'padno', 'relatedid', 'description'], 'string'],
            [['deleted', 'jobno', 'sequence', 'mileage', 'remindermileage', ], 'integer'],
            [['created_at', 'updated_at', 'deleted_at', 'date', 'reminderdate'], 'safe'],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels(): array
    {
        return [
            'id' => 'ID',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'created_by' => 'Created By',
            'updated_by' => 'Updated By',
            'deleted_by' => 'Deleted By',
            'deleted_at' => 'Deleted At',
            'deleted' => 'Deleted',
            'actid' => 'Actid',
            'status' => 'Status',
            'padno' => 'Padno',
            'jobno' => 'Jobno',
            'relatedid' => 'Relatedid',
            'description' => 'Description',
            'sequence' => 'Sequence',
            'mileage' => 'Mileage',
            'remindermileage' => 'Remindermileage',
            'date' => 'Date',
            'reminderdate' => 'Reminderdate',
        ];
    }
    

}
