AreaCommunity.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. namespace addons\Area\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_area_community".
  6. *
  7. * @property int $id 主键
  8. * @property int $status 状态[-1:删除;0:禁用;1启用]
  9. * @property int $created_at 创建时间
  10. * @property int $updated_at 修改时间
  11. * @property int $mall_id 所属商城
  12. * @property string $community_name 小区名称
  13. * @property int $province_id 身份ID
  14. * @property int $city_id 城市ID
  15. * @property int $district_id 地区ID
  16. * @property int $town_id 乡镇ID
  17. * @property int $parent_is_district 乡镇ID
  18. * @property float $lat 纬度
  19. * @property float $lng 经度
  20. * @property string $fully_address 完整地址
  21. * @property string $street 街道地址
  22. * @property string $area 省市区
  23. */
  24. class AreaCommunity extends \common\models\base\BaseActiveRecord
  25. {
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public static function tableName()
  30. {
  31. return 'qimall_addons_area_community';
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function rules()
  37. {
  38. return [
  39. [['status', 'created_at', 'updated_at', 'mall_id', 'province_id', 'city_id', 'district_id', 'town_id', 'parent_is_district'], 'integer'],
  40. [['lat', 'lng'], 'number'],
  41. [['community_name'], 'string', 'max' => 50],
  42. [['fully_address', 'street', 'area'], 'string', 'max' => 255],
  43. ];
  44. }
  45. /**
  46. * {@inheritdoc}
  47. */
  48. public function attributeLabels()
  49. {
  50. return [
  51. 'id' => 'ID',
  52. 'status' => 'Status',
  53. 'created_at' => 'Created At',
  54. 'updated_at' => 'Updated At',
  55. 'mall_id' => 'Mall ID',
  56. 'community_name' => 'Community Name',
  57. 'province_id' => 'Province ID',
  58. 'city_id' => 'City ID',
  59. 'district_id' => 'District ID',
  60. 'town_id' => 'Town ID',
  61. 'lat' => 'Lat',
  62. 'lng' => 'Lng',
  63. 'fully_address' => 'Fully Address',
  64. 'street' => 'Street',
  65. 'area' => 'Area',
  66. ];
  67. }
  68. }