| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- namespace addons\QiShangTong\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_qi_shang_tong_region".
- *
- * @property int $id ID
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- * @property string $name 地区名称
- * @property int $province_id 省份ID
- * @property int $city_id 城市ID
- * @property int $district_id 地区ID
- * @property string $province 省份
- * @property string $city 城市
- * @property string $district 地区
- * @property int $level 级别
- * @property int $local_id 本地ID
- * @property int $local_province_id 本地省份ID
- * @property int $local_city_id 本地城市ID
- * @property int $local_district_id 本地地区ID
- * @property string $local_province 本地省份
- * @property string $local_city 本地城市
- * @property string $local_district 本地地区
- * @property string $local_name 本地名称
- * @property string $region 完整名称 省市区镇
- */
- class QiShangTongRegion extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_qi_shang_tong_region';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['id'], 'required'],
- [['id', 'created_at', 'updated_at', 'province_id', 'city_id', 'district_id', 'level', 'local_id', 'local_province_id', 'local_city_id', 'local_district_id'], 'integer'],
- [['name', 'province', 'city', 'district', 'local_province', 'local_city', 'local_district', 'local_name'], 'string', 'max' => 50],
- [['region'], 'string', 'max' => 255],
- [['id'], 'unique'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'name' => 'Name',
- 'province_id' => 'Province ID',
- 'city_id' => 'City ID',
- 'district_id' => 'District ID',
- 'province' => 'Province',
- 'city' => 'City',
- 'district' => 'District',
- 'level' => 'Level',
- 'local_id' => 'Local ID',
- 'local_province_id' => 'Local Province ID',
- 'local_city_id' => 'Local City ID',
- 'local_district_id' => 'Local District ID',
- 'local_province' => 'Local Province',
- 'local_city' => 'Local City',
- 'local_district' => 'Local District',
- 'local_name' => 'Local Name',
- 'region' => 'Region',
- ];
- }
- }
|