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

58 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "yii_pharmacist".
*
* @property int $id
* @property string $username
* @property int $hospital_id 医院id
* @property int $department_id 科室id
* @property int $title_id 职称id
* @property int $signature_style 签章样式 1电子签章2手写签名
* @property int $created_at
* @property int $updated_at
*/
class Pharmacist extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_pharmacist';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['username'], 'required'],
[['hospital_id', 'department_id', 'title_id', 'signature_style', 'created_at', 'updated_at'], 'integer'],
[['username'], 'string', 'max' => 30],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'username' => 'Username',
'hospital_id' => '医院id',
'department_id' => '科室id',
'title_id' => '职称id',
'signature_style' => '签章样式 1电子签章2手写签名',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}