You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.5 KiB

4 years ago
4 years ago
4 years ago
  1. <?php
  2. declare (strict_types=1);
  3. namespace App\Model\v3;
  4. use Hyperf\DbConnection\Model\Model;
  5. /**
  6. * @property int $id
  7. * @property int $order_main_id
  8. * @property string $main_ordr_no
  9. * @property string $pymd_cd
  10. * @property string $clrg_dt
  11. * @property string $sub_appid
  12. * @property string $sub_openid
  13. * @property string $py_ordr_tpcd
  14. * @property float $ordr_tamt
  15. * @property float $txn_tamt
  16. * @property string $orderlist
  17. * @property string $py_trn_no
  18. * @property string $prim_ordr_no
  19. * @property string $ordr_gen_tm
  20. * @property string $cshdk_url
  21. * @property string $rtn_par_data
  22. * @property string $ordr_stcd
  23. * @property string $rtn_orderlist
  24. * @property string $pay_time
  25. * @property string $pay_type
  26. * @property string $pay_channel
  27. * @property string $debit_credit_type
  28. * @property \Carbon\Carbon $created_at
  29. * @property \Carbon\Carbon $updated_at
  30. */
  31. class CcbPayment extends Model
  32. {
  33. /**
  34. * The table associated with the model.
  35. *
  36. * @var string
  37. */
  38. protected $table = 'lanzu_ccb_payment';
  39. /**
  40. * The attributes that are mass assignable.
  41. *
  42. * @var array
  43. */
  44. protected $fillable = [];
  45. /**
  46. * The attributes that should be cast to native types.
  47. *
  48. * @var array
  49. */
  50. protected $casts = [
  51. 'id' => 'integer',
  52. 'order_main_id' => 'integer',
  53. 'created_at' => 'datetime',
  54. 'updated_at' => 'datetime',
  55. ];
  56. public function orderMain()
  57. {
  58. return $this->belongsTo(OrderMain::class, 'order_main_id', 'global_order_id');
  59. }
  60. }