WechatVideoShopAddress.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. namespace addons\WechatVideoShop\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_wechat_video_shop_address".
  6. *
  7. * @property int $id
  8. * @property int $mall_id
  9. * @property int $status 状态[1启用 0禁用 -1删除]
  10. * @property int $created_at 创建时间
  11. * @property int $updated_at 更新事件
  12. * @property int $shop_id 店铺ID
  13. * @property int $address_id 店铺ID
  14. * @property string $province 省份
  15. * @property string $city 城市
  16. * @property string $district 地区
  17. * @property string $address 详细地址
  18. * @property string $name 姓名
  19. * @property string $mobile 电话
  20. * @property string|null $req 请求信息
  21. * @property string $req_hash 请求hash值
  22. */
  23. class WechatVideoShopAddress extends \common\models\base\BaseActiveRecord
  24. {
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public static function tableName()
  29. {
  30. return 'qimall_addons_wechat_video_shop_address';
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['mall_id', 'status', 'created_at', 'updated_at', 'shop_id', 'address_id'], 'integer'],
  39. [['req'], 'safe'],
  40. [['province', 'city', 'district'], 'string', 'max' => 50],
  41. [['address'], 'string', 'max' => 255],
  42. [['name', 'mobile'], 'string', 'max' => 20],
  43. [['req_hash'], 'string', 'max' => 32],
  44. ];
  45. }
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public function attributeLabels()
  50. {
  51. return [
  52. 'id' => 'ID',
  53. 'mall_id' => 'Mall ID',
  54. 'status' => 'Status',
  55. 'created_at' => 'Created At',
  56. 'updated_at' => 'Updated At',
  57. 'shop_id' => 'Shop ID',
  58. 'province' => 'Province',
  59. 'city' => 'City',
  60. 'district' => 'District',
  61. 'address' => 'Address',
  62. 'name' => 'Name',
  63. 'mobile' => 'Mobile',
  64. 'req' => 'Req',
  65. 'req_hash' => 'Req Hash',
  66. ];
  67. }
  68. }