PaymentTypeRefundStatisticsLogs.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace common\models\statistics;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_payment_type_refund_statistics_logs".
  6. *
  7. * @property int $id
  8. * @property int $mall_id
  9. * @property int $status 状态[-1:删除;0:禁用;1启用]
  10. * @property int $statistics_id qimall_payment_type_refund_statistics 表的 id
  11. * @property int $refund_id 售后id
  12. * @property int $order_id 订单id
  13. * @property int $created_at
  14. * @property int $updated_at
  15. */
  16. class PaymentTypeRefundStatisticsLogs extends \common\models\base\BaseActiveRecord
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public static function tableName()
  22. {
  23. return 'qimall_payment_type_refund_statistics_logs';
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['mall_id', 'status', 'statistics_id', 'refund_id', 'order_id', 'created_at', 'updated_at'], 'integer'],
  32. ];
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function attributeLabels()
  38. {
  39. return [
  40. 'id' => 'ID',
  41. 'mall_id' => 'Mall ID',
  42. 'status' => 'Status',
  43. 'statistics_id' => 'Statistics ID',
  44. 'refund_id' => 'Refund ID',
  45. 'order_id' => 'Order ID',
  46. 'created_at' => 'Created At',
  47. 'updated_at' => 'Updated At',
  48. ];
  49. }
  50. public function getPaymentTypeRefundStatistics()
  51. {
  52. return $this->hasOne(PaymentTypeRefundStatistics::class, ['id' => 'statistics_id']);
  53. }
  54. }