Files
xk-api-yii/common/modelsgii/DoctorTitle.php
2024-09-19 11:32:39 +08:00

50 lines
911 B
PHP

<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "yii_doctor_title".
*
* @property int $id
* @property string $name 职称
* @property int $created_at
* @property int $updated_at
*/
class DoctorTitle extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_doctor_title';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['name'], 'required'],
[['created_at', 'updated_at'], 'integer'],
[['name'], 'string', 'max' => 30],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'name' => '职称',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}