| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- namespace addons\Area\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_area_community".
- *
- * @property int $id 主键
- * @property int $status 状态[-1:删除;0:禁用;1启用]
- * @property int $created_at 创建时间
- * @property int $updated_at 修改时间
- * @property int $mall_id 所属商城
- * @property string $community_name 小区名称
- * @property int $province_id 身份ID
- * @property int $city_id 城市ID
- * @property int $district_id 地区ID
- * @property int $town_id 乡镇ID
- * @property int $parent_is_district 乡镇ID
- * @property float $lat 纬度
- * @property float $lng 经度
- * @property string $fully_address 完整地址
- * @property string $street 街道地址
- * @property string $area 省市区
- */
- class AreaCommunity extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_area_community';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['status', 'created_at', 'updated_at', 'mall_id', 'province_id', 'city_id', 'district_id', 'town_id', 'parent_is_district'], 'integer'],
- [['lat', 'lng'], 'number'],
- [['community_name'], 'string', 'max' => 50],
- [['fully_address', 'street', 'area'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'status' => 'Status',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'mall_id' => 'Mall ID',
- 'community_name' => 'Community Name',
- 'province_id' => 'Province ID',
- 'city_id' => 'City ID',
- 'district_id' => 'District ID',
- 'town_id' => 'Town ID',
- 'lat' => 'Lat',
- 'lng' => 'Lng',
- 'fully_address' => 'Fully Address',
- 'street' => 'Street',
- 'area' => 'Area',
- ];
- }
- }
|