Kefu.php 826 B

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