UserBill.php 909 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace app\model\user;
  3. use app\extra\basic\Model;
  4. use app\model\cutter\CutterApply;
  5. use app\model\cutter\CutterOrder;
  6. use think\model\relation\HasMany;
  7. use think\model\relation\HasOne;
  8. /**
  9. * 用户
  10. */
  11. class UserBill extends Model
  12. {
  13. /**
  14. * The connection name for the model.
  15. *
  16. * @var string|null
  17. */
  18. protected $connection = 'mysql';
  19. /**
  20. * The table associated with the model.
  21. *
  22. * @var string
  23. */
  24. protected string $table = "user_bill";
  25. /**
  26. * The primary key associated with the table.
  27. *
  28. * @var string
  29. */
  30. protected string $primaryKey = "id";
  31. /**
  32. * Indicates if the model should be timestamped.
  33. *
  34. * @var bool
  35. */
  36. public bool $timestamps = false;
  37. // public function cutterApply(): HasOne
  38. // {
  39. // return $this->hasOne(CutterApply::class,"uid","uid");
  40. // }
  41. }