76 lines
2.2 KiB
PHP
76 lines
2.2 KiB
PHP
<?php
|
|
|
|
namespace app\models;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "cx_user_information".
|
|
*
|
|
* @property int $id
|
|
* @property int $user_id 用户ID
|
|
* @property int $store_id 门店ID
|
|
* @property string|null $height 身高
|
|
* @property string|null $weight 体重
|
|
* @property string|null $age 年龄
|
|
* @property string|null $territory 所属地
|
|
* @property string $college 学院
|
|
* @property string|null $ball_age 球龄
|
|
* @property string $address 地址
|
|
* @property string|null $arm_length 臂长
|
|
* @property string|null $glove 手套尺寸
|
|
* @property string|null $palm_size 手掌大小
|
|
* @property string $shoes_size 鞋子大小
|
|
* @property int $created_at 添加时间
|
|
* @property int $updated_at 修改时间
|
|
*/
|
|
class UserInformation extends \yii\db\ActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'cx_user_information';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['user_id', 'store_id'], 'required'],
|
|
[['user_id', 'store_id', 'created_at', 'updated_at', 'member_status','end_time','begin_time'], 'integer'],
|
|
[['height', 'weight', 'age', 'college', 'ball_age', 'arm_length', 'glove', 'palm_size', 'shoes_size'], 'string', 'max' => 50],
|
|
[['territory', 'address'], 'string', 'max' => 100],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'user_id' => 'User ID',
|
|
'store_id' => 'Store ID',
|
|
'height' => 'Height',
|
|
'weight' => 'Weight',
|
|
'age' => 'Age',
|
|
'territory' => 'Territory',
|
|
'college' => 'College',
|
|
'ball_age' => 'Ball Age',
|
|
'address' => 'Address',
|
|
'arm_length' => 'Arm Length',
|
|
'glove' => 'Glove',
|
|
'palm_size' => 'Palm Size',
|
|
'shoes_size' => 'Shoes Size',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
'member_status' => 'Member Status'
|
|
];
|
|
}
|
|
}
|