PaymentInfoModel.php 751 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace App\Models;
  3. use App\Models\BaseModel;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. /**
  6. * @description 支付列表
  7. * @author system;
  8. * @version 1.0
  9. * @date 2018-07-11 06:53:04
  10. *
  11. */
  12. class PaymentInfoModel extends BaseModel
  13. {
  14. use SoftDeletes;
  15. /**
  16. * 数据表名
  17. *
  18. * @var string
  19. *
  20. */
  21. protected $table = 'payment_info';
  22. /**
  23. * 主键
  24. */
  25. protected $primaryKey = 'id';
  26. //分页
  27. protected $perPage = PAGE_NUMS;
  28. /**
  29. * 可以被集体附值的表的字段
  30. *
  31. * @var string
  32. */
  33. protected $fillable = [
  34. 'site_id',
  35. 'user_id',
  36. 'openid',
  37. 'out_trade_no',
  38. 'price',
  39. 'type',
  40. 'msg_id'
  41. ];
  42. }