<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "LabPriceCt".
 *
 * @property string $CustID
 * @property string $LabID
 * @property float|null $LabNorUPrice
 * @property float|null $LabSpPrice
 * @property string|null $LabUpdLstDate
 * @property string|null $UserIDEntry
 * @property string|null $UserDate
 */
class LabPriceCt extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'LabPriceCt';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['CustID', 'LabID'], 'required'],
            [['LabNorUPrice', 'LabSpPrice'], 'number'],
            [['LabUpdLstDate', 'UserDate'], 'safe'],
            [['CustID'], 'string', 'max' => 4],
            [['LabID'], 'string', 'max' => 20],
            [['UserIDEntry'], 'string', 'max' => 50],
            [['CustID', 'LabID'], 'unique', 'targetAttribute' => ['CustID', 'LabID']],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'CustID' => 'Cust ID',
            'LabID' => 'Lab ID',
            'LabNorUPrice' => 'Lab Nor U Price',
            'LabSpPrice' => 'Lab Sp Price',
            'LabUpdLstDate' => 'Lab Upd Lst Date',
            'UserIDEntry' => 'User Id Entry',
            'UserDate' => 'User Date',
        ];
    }
}
