<?php

namespace modules\cors\models;


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

/**
 * This is the model class For table "licenseendorsements".
 *
 * @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 string $fine
 * @property integer $duration
 * @property integer $offencedate
 * @property integer $issuedate
 * @property integer $expirydate
 * @property integer $pointsawarded
 * @property integer $inwork
 */
class Licenseendorsementsbe extends \common\models\Base
{
	public $dates = ['offencedate', 'issuedate', 'expirydate'];
	public $uniqueidentifiers = ['relatedid','actid'];
	public $securefields = [];
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'licenseendorsements';
    }

    /**
     * @inheritdoc
     */
    public function rules(): array
    {
        return [
            [['id', 'created_by', 'updated_by', 'deleted_by', 'actid', 'status', 'padno', 'relatedid', 'description'], 'string'],
            [['created_at', 'updated_at', 'deleted_at', 'deleted', 'jobno', 'duration', 'pointsawarded', ], 'integer'],
            [['offencedate', 'issuedate', 'expirydate'] ,'safe'],
            [['inwork'], 'boolean'],
            [['fine'], 'number'],
            [['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',
            'fine' => 'Fine',
            'duration' => 'Duration',
            'offencedate' => 'Offencedate',
            'issuedate' => 'Issuedate',
            'expirydate' => 'Expirydate',
            'pointsawarded' => 'Pointsawarded',
            'inwork' => 'Inwork',
        ];
    }
}
