<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "his_request_test_list".
 *
 * @property int $ID
 * @property int $HisRequestID
 * @property string $TestCode
 * @property string $TestName
 * @property string $TestType
 * @property string|null $SpacimenCode
 * @property string|null $SpacimenName
 * @property string $TestStatus
 * @property string $CollectionDateTime
 * @property string|null $TestRemark
 */
class HisRequestTestList extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'his_request_test_list';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['TestCode', 'TestName', 'TestType', 'TestStatus', 'CollectionDateTime'], 'required'],
            [['HisRequestID'], 'integer'],
            //[['CollectionDateTime'], 'safe'],
            [['TestCode', 'SpacimenCode', 'CollectionDateTime'], 'string', 'max' => 20],
            [['TestName', 'SpacimenName'], 'string', 'max' => 120],
            [['TestType', 'TestStatus'], 'string', 'max' => 1],
            [['TestRemark'], 'string', 'max' => 4000],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'ID' => 'ID',
            'HisRequestID' => 'His Request ID',
            'TestCode' => 'Test Code',
            'TestName' => 'Test Name',
            'TestType' => 'Test Type',
            'SpacimenCode' => 'Spacimen Code',
            'SpacimenName' => 'Spacimen Name',
            'TestStatus' => 'Test Status',
            'CollectionDateTime' => 'Collection Date Time',
            'TestRemark' => 'Test Remark',
        ];
    }
}