45 lines
692 B
PHP
45 lines
692 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace common\models;
|
||
|
|
|
||
|
|
use Yii;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This is the model class for table "autopsybody_type".
|
||
|
|
*
|
||
|
|
* @property integer $id
|
||
|
|
* @property string $status
|
||
|
|
*/
|
||
|
|
class AutopsybodyType extends \yii\db\ActiveRecord
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @inheritdoc
|
||
|
|
*/
|
||
|
|
public static function tableName()
|
||
|
|
{
|
||
|
|
return 'autopsybody_type';
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @inheritdoc
|
||
|
|
*/
|
||
|
|
public function rules()
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
[['status'], 'required'],
|
||
|
|
[['status'], 'string'],
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @inheritdoc
|
||
|
|
*/
|
||
|
|
public function attributeLabels()
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'id' => 'ID',
|
||
|
|
'status' => 'Status',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|