WechatVideoShopRefund.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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_refund".
  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 $order_id 本地订单ID
  13. * @property int $third_order_id 第三方ORDERID
  14. * @property int $refund_id 退款ID
  15. * @property int $third_refund_id 第三方退款ID
  16. * @property string $content 完整数据
  17. * @property string $refund_certificates 退款凭证
  18. * @property string $refund_desc 退款描述
  19. * @property int $shop_id 店铺ID
  20. * @property int $user_id 店铺ID
  21. */
  22. class WechatVideoShopRefund extends \common\models\base\BaseActiveRecord
  23. {
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public static function tableName()
  28. {
  29. return 'qimall_addons_wechat_video_shop_refund';
  30. }
  31. /**
  32. * {@inheritdoc}
  33. */
  34. public function rules()
  35. {
  36. return [
  37. [['mall_id', 'status', 'created_at', 'updated_at', 'order_id', 'third_order_id', 'refund_id', 'third_refund_id', 'shop_id', 'user_id'], 'integer'],
  38. // [['content', 'refund_certificates', 'refund_desc'], 'required'],
  39. [['content', 'refund_certificates'], 'safe'],
  40. [['refund_desc'], 'string'],
  41. ];
  42. }
  43. /**
  44. * {@inheritdoc}
  45. */
  46. public function attributeLabels()
  47. {
  48. return [
  49. 'id' => 'ID',
  50. 'mall_id' => 'Mall ID',
  51. 'status' => 'Status',
  52. 'created_at' => 'Created At',
  53. 'updated_at' => 'Updated At',
  54. 'order_id' => 'Order ID',
  55. 'third_order_id' => 'Third Order ID',
  56. 'refund_id' => 'Refund ID',
  57. 'third_refund_id' => 'Third Refund ID',
  58. 'content' => 'Content',
  59. 'refund_certificates' => 'Refund Certificates',
  60. 'refund_desc' => 'Refund Desc',
  61. 'shop_id' => 'Shop ID',
  62. ];
  63. }
  64. public function getShop()
  65. {
  66. return $this->hasOne(WechatVideoShop::class, ['id' => 'shop_id']);
  67. }
  68. }