56 lines
1.1 KiB
PHP
56 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_region".
|
|
*
|
|
* @property int $id
|
|
* @property string|null $name
|
|
* @property int|null $pid
|
|
* @property int|null $level
|
|
* @property float $express_fee 快递费用
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
*/
|
|
class Region extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_region';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['pid', 'level', 'created_at', 'updated_at'], 'integer'],
|
|
[['express_fee'], 'number'],
|
|
[['name'], 'string', 'max' => 200],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'name' => 'Name',
|
|
'pid' => 'Pid',
|
|
'level' => 'Level',
|
|
'express_fee' => 'Express Fee',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|