| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- namespace addons\WechatVideoShop\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_wechat_video_shop_refund".
- *
- * @property int $id
- * @property int $mall_id
- * @property int $status 状态[1启用 0禁用 -1删除]
- * @property int $created_at 创建时间
- * @property int $updated_at 更新事件
- * @property int $order_id 本地订单ID
- * @property int $third_order_id 第三方ORDERID
- * @property int $refund_id 退款ID
- * @property int $third_refund_id 第三方退款ID
- * @property string $content 完整数据
- * @property string $refund_certificates 退款凭证
- * @property string $refund_desc 退款描述
- * @property int $shop_id 店铺ID
- * @property int $user_id 店铺ID
- */
- class WechatVideoShopRefund extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_wechat_video_shop_refund';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'status', 'created_at', 'updated_at', 'order_id', 'third_order_id', 'refund_id', 'third_refund_id', 'shop_id', 'user_id'], 'integer'],
- // [['content', 'refund_certificates', 'refund_desc'], 'required'],
- [['content', 'refund_certificates'], 'safe'],
- [['refund_desc'], 'string'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'status' => 'Status',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'order_id' => 'Order ID',
- 'third_order_id' => 'Third Order ID',
- 'refund_id' => 'Refund ID',
- 'third_refund_id' => 'Third Refund ID',
- 'content' => 'Content',
- 'refund_certificates' => 'Refund Certificates',
- 'refund_desc' => 'Refund Desc',
- 'shop_id' => 'Shop ID',
- ];
- }
- public function getShop()
- {
- return $this->hasOne(WechatVideoShop::class, ['id' => 'shop_id']);
- }
- }
|