初始化仓库
This commit is contained in:
53
common/modelsgii/DoctorService.php
Normal file
53
common/modelsgii/DoctorService.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "{{%doctor_service}}".
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $su_id 关联服务用户id
|
||||
* @property int $register_status 是否开启挂号服务0否1是
|
||||
* @property float $register_price 挂号价格
|
||||
* @property int $created_at
|
||||
* @property int $updated_at
|
||||
*/
|
||||
class DoctorService extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return '{{%doctor_service}}';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['su_id'], 'required'],
|
||||
[['su_id', 'created_at', 'updated_at','register_status'], 'integer'],
|
||||
[['register_price'], 'number'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'su_id' => '关联服务用户id',
|
||||
'register_status' => '是否开通挂号',
|
||||
'register_price' => '挂号金额',
|
||||
'created_at' => 'Created At',
|
||||
'updated_at' => 'Updated At',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user