surat/common/models/ConstCancerRegistry.php

46 lines
773 B
PHP
Raw Permalink Normal View History

2025-04-02 02:13:06 +00:00
<?php
namespace common\models;
use Yii;
/**
2025-04-08 03:21:15 +00:00
* This is the model class for table "const_cancer_registry".
2025-04-02 02:13:06 +00:00
*
* @property int $id
* @property string $name
* @property int|null $status
* @property int|null $order_no
*/
class ConstCancerRegistry extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
2025-04-08 03:21:15 +00:00
return 'const_cancer_registry';
2025-04-02 02:13:06 +00:00
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['name'], 'required'],
[['name'], 'string', 'max' => 500],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'name' => 'Name',
];
}
}