SaasOrderDetail.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. namespace app\model\saas;
  3. use app\extra\basic\Model;
  4. use think\model\relation\HasOne;
  5. /**
  6. * @property integer $id (主键)
  7. * @property string $order_sn
  8. * @property integer $uuid
  9. * @property integer $shop_id
  10. * @property string $name 文件名称
  11. * @property integer $total_page
  12. * @property integer $page 页数
  13. * @property integer $start_page 起始页
  14. * @property integer $end_page 结束页面
  15. * @property integer $color 颜色
  16. * @property string $paper_size 纸张
  17. * @property integer $duplex 单双面1单面2双面
  18. * @property integer $direction 1
  19. * @property integer $number 打印份数
  20. * @property integer $money 金额
  21. * @property string $path 文件
  22. * @property string $old_path
  23. * @property string $extension
  24. * @property float $discount 折扣
  25. * @property integer $source 1文档2复印
  26. * @property integer $extra_money 额外加价
  27. * @property integer $single_money 单价
  28. * @property integer $single_id 单价ID
  29. * @property string $icon
  30. * @property integer $status
  31. * @property integer $pay_status 支付状态
  32. * @property integer $refund_status 退款状态
  33. * @property mixed $refund_at
  34. * @property string $print_name
  35. * @property string $view_key
  36. * @property string $job
  37. * @property mixed $create_at
  38. */
  39. class SaasOrderDetail extends Model
  40. {
  41. /**
  42. * The connection name for the model.
  43. *
  44. * @var string|null
  45. */
  46. protected $connection = 'mysql';
  47. /**
  48. * The table associated with the model.
  49. *
  50. * @var string
  51. */
  52. protected string $table = "saas_order_detail";
  53. /**
  54. * The primary key associated with the table.
  55. *
  56. * @var string
  57. */
  58. protected string $primaryKey = "id";
  59. /**
  60. * Indicates if the model should be timestamped.
  61. *
  62. * @var bool
  63. */
  64. public bool $timestamps = false;
  65. public function orders(): HasOne
  66. {
  67. return $this->hasOne("app\model\saas\SaasOrder","order_sn",'order_sn');
  68. }
  69. }