Files
xk-api-yii/common/modelsgii/oldDb/HospitalYard.php

53 lines
1.1 KiB
PHP

<?php
namespace common\modelsgii\oldDb;
/**
* This is the model class for table "yii_hospital_yard".
*
* @property int $id
* @property string $name 院区名称
* @property string $position 院区位置
* @property int $hospital_id 医院id
* @property int $created_at
* @property int $updated_at
*/
class HospitalYard extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_hospital_yard';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['name', 'hospital_id'], 'required'],
[['hospital_id', 'created_at', 'updated_at'], 'integer'],
[['name'], 'string', 'max' => 100],
[['position'], 'string', 'max' => 200],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'name' => '院区名称',
'position' => '院区位置',
'hospital_id' => '医院id',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}