SsNodePing.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Builder;
  4. use Illuminate\Database\Eloquent\Model;
  5. /**
  6. * 节点定时Ping测速
  7. *
  8. * @property int $id
  9. * @property int $node_id 对应节点id
  10. * @property int $ct 电信
  11. * @property int $cu 联通
  12. * @property int $cm 移动
  13. * @property int $hk 香港
  14. * @property \Illuminate\Support\Carbon $created_at
  15. * @property \Illuminate\Support\Carbon $updated_at
  16. * @property-read \App\Models\SsNode|null $node
  17. * @method static Builder|SsNodePing newModelQuery()
  18. * @method static Builder|SsNodePing newQuery()
  19. * @method static Builder|SsNodePing query()
  20. * @method static Builder|SsNodePing whereCm($value)
  21. * @method static Builder|SsNodePing whereCreatedAt($value)
  22. * @method static Builder|SsNodePing whereCt($value)
  23. * @method static Builder|SsNodePing whereCu($value)
  24. * @method static Builder|SsNodePing whereHk($value)
  25. * @method static Builder|SsNodePing whereId($value)
  26. * @method static Builder|SsNodePing whereNodeId($value)
  27. * @method static Builder|SsNodePing whereUpdatedAt($value)
  28. * @mixin \Eloquent
  29. */
  30. class SsNodePing extends Model {
  31. protected $table = 'ss_node_ping';
  32. protected $primaryKey = 'id';
  33. public function node() {
  34. return $this->hasOne(SsNode::class, 'id', 'node_id');
  35. }
  36. }