prolab-api/common/models/ConstCriticalReport.php

50 lines
908 B
PHP
Raw Normal View History

2025-09-24 06:24:52 +00:00
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "const_critical_report".
*
* @property int $id
* @property string|null $code
* @property int $name
* @property int $status
*/
class ConstCriticalReport extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'const_critical_report';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['name', 'status'], 'required'],
[['status'], 'integer'],
[['name'], 'string'],
[['code'], 'string', 'max' => 20],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'code' => 'Code',
'name' => 'Name',
'status' => 'Status',
];
}
}