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

59 lines
1.3 KiB
PHP

<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "yii_user_patient_record".
*
* @property int $id
* @property int $up_id 就诊人id
* @property float $height 身高
* @property float $weight 体重
* @property string $region 选择地区
* @property string $address 详细地址
* @property int $created_at
* @property int $updated_at
*/
class UserPatientRecord extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_user_patient_record';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['up_id', 'height', 'weight'], 'required'],
[['up_id', 'created_at', 'updated_at'], 'integer'],
[['height', 'weight'], 'number'],
[['region', 'address'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'up_id' => 'Up ID',
'height' => 'Height',
'weight' => 'Weight',
'region' => 'Region',
'address' => 'Address',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}