prolab-api/common/models/LabPriceCt.php

60 lines
1.4 KiB
PHP
Raw Normal View History

2025-11-21 04:04:39 +00:00
<?php
2026-01-11 14:51:52 +00:00
namespace common\models;
use Yii;
/**
* This is the model class for table "LabPriceCt".
*
2025-11-21 04:04:39 +00:00
* @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
2026-01-11 14:51:52 +00:00
*/
2025-11-21 04:04:39 +00:00
class LabPriceCt extends \yii\db\ActiveRecord
2026-01-11 14:51:52 +00:00
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'LabPriceCt';
}
/**
* {@inheritdoc}
*/
public function rules()
{
2025-11-21 04:04:39 +00:00
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']],
2026-01-11 14:51:52 +00:00
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
2025-11-21 04:04:39 +00:00
'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',
2026-01-11 14:51:52 +00:00
];
}
}