| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- namespace addons\WechatVideoShop\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_wechat_video_shop_address".
- *
- * @property int $id
- * @property int $mall_id
- * @property int $status 状态[1启用 0禁用 -1删除]
- * @property int $created_at 创建时间
- * @property int $updated_at 更新事件
- * @property int $shop_id 店铺ID
- * @property int $address_id 店铺ID
- * @property string $province 省份
- * @property string $city 城市
- * @property string $district 地区
- * @property string $address 详细地址
- * @property string $name 姓名
- * @property string $mobile 电话
- * @property string|null $req 请求信息
- * @property string $req_hash 请求hash值
- */
- class WechatVideoShopAddress extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_wechat_video_shop_address';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'status', 'created_at', 'updated_at', 'shop_id', 'address_id'], 'integer'],
- [['req'], 'safe'],
- [['province', 'city', 'district'], 'string', 'max' => 50],
- [['address'], 'string', 'max' => 255],
- [['name', 'mobile'], 'string', 'max' => 20],
- [['req_hash'], 'string', 'max' => 32],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'status' => 'Status',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'shop_id' => 'Shop ID',
- 'province' => 'Province',
- 'city' => 'City',
- 'district' => 'District',
- 'address' => 'Address',
- 'name' => 'Name',
- 'mobile' => 'Mobile',
- 'req' => 'Req',
- 'req_hash' => 'Req Hash',
- ];
- }
- }
|